Regression in Mustang b70 : throws java.lang.IllegalAccessError
was working till b69 and with Tiger .
To reproduce the issue :
--------------------------
use Mustang b70
Please see attached - Test.java , entref01gold.out and Tidy.jar( this is a testutil jar file )
in Test.java - update 'String docURI' to the location where entref01gold.out is saved .
setenv CLASSPATH .:./Tidy.jar
javac Test.java
java Test
error message :
---------------
java Test
fatal error : org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference.
line 1 column 1 - Error: <out> is not recognized!
Exception in thread "main" java.lang.IllegalAccessError: tried to access field org.w3c.tidy.ParserImpl._parseHead from class org.w3c.tidy.ParserImpl$ParseHTML
at org.w3c.tidy.ParserImpl$ParseHTML.parse(ParserImpl.java)
at org.w3c.tidy.ParserImpl.parseDocument(ParserImpl.java)
at org.w3c.tidy.Tidy.parse(Tidy.java)
at org.w3c.tidy.Tidy.parseDOM(Tidy.java)
at Test.parse(Test.java:69)
at Test.main(Test.java:17)
the fatal error part in error message can be ignored here - part of the test .
was working till b69 and with Tiger .
To reproduce the issue :
--------------------------
use Mustang b70
Please see attached - Test.java , entref01gold.out and Tidy.jar( this is a testutil jar file )
in Test.java - update 'String docURI' to the location where entref01gold.out is saved .
setenv CLASSPATH .:./Tidy.jar
javac Test.java
java Test
error message :
---------------
java Test
fatal error : org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference.
line 1 column 1 - Error: <out> is not recognized!
Exception in thread "main" java.lang.IllegalAccessError: tried to access field org.w3c.tidy.ParserImpl._parseHead from class org.w3c.tidy.ParserImpl$ParseHTML
at org.w3c.tidy.ParserImpl$ParseHTML.parse(ParserImpl.java)
at org.w3c.tidy.ParserImpl.parseDocument(ParserImpl.java)
at org.w3c.tidy.Tidy.parse(Tidy.java)
at org.w3c.tidy.Tidy.parseDOM(Tidy.java)
at Test.parse(Test.java:69)
at Test.main(Test.java:17)
the fatal error part in error message can be ignored here - part of the test .
- duplicates
-
JDK-6383849 Relax access checks by default for older classfiles
-
- Closed
-