-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Sealed types] Broken program crashes the compiler #3039
Comments
@srikanth-sankaran during your work on sealed types, you may want to check if the following has any impact for ecj: https://bugs.openjdk.org/browse/JDK-8338981 Thanks, and sorry for hijacking this issue :) |
Thanks for the pointer. I'll follow up. |
Smaller test case:
Stack trace:
|
The relevant code has completely overhauled and this program doesn't crash anymore - I will add a regression test and close this. |
We compile the program fine! This slightly modified program draws one error from ECJ:
while javac complains:
|
This one compiles too - so we seem not to have a problem with |
While experimenting I found the following program to crash ECJ:
Notice that
I2
's declaration is syntactically flawed. Nevertheless the compiler should not crash.The text was updated successfully, but these errors were encountered: