RFR: 8305671: javac rejects semicolons in compilation units with no imports [v2]
Archie L. Cobbs
duke at openjdk.org
Tue Apr 18 01:46:03 UTC 2023
> 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.
Archie L. Cobbs has updated the pull request incrementally with one additional commit since the last revision:
Use ToolBox and add more tests per review suggestion.
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/13361/files
- new: https://git.openjdk.org/jdk/pull/13361/files/1bb18edc..0865a257
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=13361&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=13361&range=00-01
Stats: 63 lines in 1 file changed: 34 ins; 11 del; 18 mod
Patch: https://git.openjdk.org/jdk/pull/13361.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/13361/head:pull/13361
PR: https://git.openjdk.org/jdk/pull/13361
More information about the compiler-dev
mailing list