Integrated: 8276241: JVM does not flag constant class entries ending in '/'

Harold Seigel hseigel at openjdk.java.net
Mon Dec 13 13:44:15 UTC 2021


On Thu, 2 Dec 2021 19:22:20 GMT, Harold Seigel <hseigel at openjdk.org> wrote:

> 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

This pull request has now been integrated.

Changeset: 15996e40
Author:    Harold Seigel <hseigel at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/15996e407563eda844266f1cbcdc20be74b4b4e4
Stats:     87 lines in 2 files changed: 84 ins; 1 del; 2 mod

8276241: JVM does not flag constant class entries ending in '/'

Reviewed-by: dholmes, lfoltan

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

PR: https://git.openjdk.java.net/jdk/pull/6678


More information about the hotspot-runtime-dev mailing list