RFR: 8276241: JVM does not flag constant class entries ending in '/'
Harold Seigel
hseigel at openjdk.java.net
Thu Dec 2 19:29:45 UTC 2021
Please review this small fix for JDK-8276241. The fix ensures that a ClassFormatError exception gets thrown for classes whose name ends in a '/' and are class file version less than 49 (JDK 1.5). (A CFE already gets thrown for newer class file versions.) The regression test class was written using a byte array because neither jcod nor jasm could handle a class name ending in '/'.
The fix was tested by running JCK lang and VM tests on Linux x64, Mach5 tiers 1-2 on Linux, Mac OS, and Windows, and Mach5 tiers 3-5 on Linux x64.
Thanks, Harold
-------------
Commit messages:
- 8276241: JVM does not flag constant class entries ending in '/'
Changes: https://git.openjdk.java.net/jdk/pull/6678/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=6678&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8276241
Stats: 87 lines in 2 files changed: 84 ins; 1 del; 2 mod
Patch: https://git.openjdk.java.net/jdk/pull/6678.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/6678/head:pull/6678
PR: https://git.openjdk.java.net/jdk/pull/6678
More information about the hotspot-runtime-dev
mailing list