RFR: 8305671: javac rejects semicolons in compilation units with no imports

Man Cao manc at openjdk.org
Mon Apr 17 22:28:41 UTC 2023


On Wed, 5 Apr 2023 18:37:05 GMT, Archie L. Cobbs <duke at openjdk.org> wrote:

> The fix for [JDK-8027682](https://bugs.openjdk.org/browse/JDK-8027682) created a new bug in which a program like this:
> 
> package p;;
> 
> would be rejected.
> 
> This is due to the previous fix swallowing all the semicolons. Instead, in the case of semicolons followed by EOF, it needs to swallow all but the last one.

Could any Reviewer from compiler-dev@ review this change?

-------------

PR Comment: https://git.openjdk.org/jdk/pull/13361#issuecomment-1512167384


More information about the compiler-dev mailing list