Compilation fails when a user method name matches the name of a method on Object -- see JDK-8187137.
Unless and until that is fixed, a comprehensible error message should be given.
Unless and until that is fixed, a comprehensible error message should be given.
- relates to
-
JDK-8187137 JShell: user method fails when name matches method in Object.
-
- Closed
-