JDK-4030374 - Java Issue Tracker
Feb 5, 1997 ... For example, the following program would fail at runtime: <pre> ... (correct) code. I have filed a bug against the verifier (4408261) but ...
Feb 5, 1997 ... For example, the following program would fail at runtime: <pre> ... (correct) code. I have filed a bug against the verifier (4408261) but ...
For example, the javac compiler places a top-level class or interface ... The reflection API of <code>java.lang.Class</code> is enhanced to support ...
It's an error in java.lang.String source code which is the same for all JDK distributions.I have created a more simple example class which demonstrates this behaviour very clearly. STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : See bug ID 4637640.
Java SE Subscribers, those using Oracle Cloud Infrastructure, those using Java to run supported Oracle products and customers using legacy Oracle Java SE products e.g Java SE Advanced, should file a Service Request which will connect you directly with Java SE Support specialists.
SUGGESTED FIX With the fix for 5089202, it's not obvious that simply changing the array growth formula to doubling powers of two would actually improve the situation-- it would seem better to detect overflow explicitly.