JDK-8080353 : JShell: Better error message on attempting to add default method
  • Type: Bug
  • Component: tools
  • Sub-Component: jshell
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-05-14
  • Updated: 2020-05-06
  • Resolved: 2019-06-01
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 13 JDK 14
11.0.8Fixed 13 b24Fixed 14Fixed
Related Reports
Relates :  
Relates :  
Description
-> default void m() { }
|  Error:
|  illegal start of statement
|  default void m() { }
|  ^

-> 

Comments
11u Fix Request: I would like to backport this patch to 11u. It is a pre-requisition of JDK-8200701 which I would like to backport also, as it fixed a test on Windows. The original patch applies cleanly.
19-03-2020

Out for review -- Please review... Bug: https://bugs.openjdk.java.net/browse/JDK-8080353 Webrev: http://cr.openjdk.java.net/~rfield/8080353.webrev/ Thanks, Robert
24-05-2019

Same behaviour in current jdk10
19-08-2017