RFR: 8328874: Class::forName0 should validate the class name length early [v5]

Guanqiang Han ghan at openjdk.org
Sat Aug 23 06:29:51 UTC 2025


On Fri, 22 Aug 2025 20:00:13 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

>> Guanqiang Han has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Update Class.java
>>   
>>   updates the class name length validation logic on the Java side
>
> What tests validate the behavior is the same both with and without the shortcut?  Tnx.

@RogerRiggs I added a test function. Please take a look.

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

PR Comment: https://git.openjdk.org/jdk/pull/26802#issuecomment-3216404357


More information about the core-libs-dev mailing list