You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This program compiles with ECJ but javac rejects it with: error: invalid canonical constructor in record R (type and arity must match that of the corresponding record component)
I believe javac behavior is correct since we won't be able to invoke the explicitly declared constructor with multiple int arguments.
Found by JLS review and black-box testing:
This program compiles with ECJ but javac rejects it with:
error: invalid canonical constructor in record R (type and arity must match that of the corresponding record component)
I believe javac behavior is correct since we won't be able to invoke the explicitly declared constructor with multiple int arguments.
The text was updated successfully, but these errors were encountered: