-
Notifications
You must be signed in to change notification settings - Fork 136
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
Record patterns exhaustiveness check problems #455
Comments
I just re-tested with ECJ 4.26 RC2. The issue persists. |
Here is an additional finding: When adding redundant
As you can see, it compiles fine after adding the default clauses, but the byte code generated seems to be wrong. Please note that I tried the latest integration build I20221220-1800. I also tried moving the inner classes and records out of the class, but it does not help either, only the class name in the error message is slightly different, of course:
So this issue is not just about faulty exhaustiveness checks but about byte code generation as well. |
This seems to be fixed, closing issue. |
This might be related to #450 (not sure). The following code compiles fine with Javac:
But with ECJ it says (from my AspectJ Maven build):
The negative test:
ECJ says:
I am not sure if ECJ gets it right by chance or accidentally. Better double-check, please. Ideally, the error message should be adjusted to be similar to Javac's, too.
The text was updated successfully, but these errors were encountered: