-
Bug
-
Resolution: Fixed
-
P4
-
21
-
None
An out-of-spec class file can contain circular references which cause SOE, as seen with the "--validate" option of the jar tool.
% jar --version
jar 22.0.1
% jar --validate --file=SOE.jar
java.lang.StackOverflowError
..
at java.base/jdk.internal.classfile.impl.ClassReaderImpl.readEntry(ClassReaderImpl.java:390)
at java.base/jdk.internal.classfile.impl.ClassReaderImpl.readClassEntry(ClassReaderImpl.java:431)
% jar --version
jar 22.0.1
% jar --validate --file=SOE.jar
java.lang.StackOverflowError
..
at java.base/jdk.internal.classfile.impl.ClassReaderImpl.readEntry(ClassReaderImpl.java:390)
at java.base/jdk.internal.classfile.impl.ClassReaderImpl.readClassEntry(ClassReaderImpl.java:431)