-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
6
-
x86
-
windows_xp
FULL PRODUCT VERSION :
java version "1.6.0-rc"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-rc-b65)
Java HotSpot(TM) Client VM (build 1.6.0-rc-b65, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
I have seen this on Win XP and Solaris x64.
A DESCRIPTION OF THE PROBLEM :
Basically whenever I am starting any application that has a Hibernate 3.1
(http://www.hibernate.org) XML mapping. I get the following output to the console at runtime:
XMLScanner#scanComment#c == 60
XMLScanner#scanComment#text.toString() == Hibernate Mapping DTD
for every mapped class.
This behavior is not present on 1.5, and it completely goes away on 1.6 if I override the XML parse with the latest version of Xerces through "endorsed" directory.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Look in the source of
com.sun.org.apache.xerces.internal.impl.XMLScanner
Lines 748, 749 contain:
System.out.println( "XMLScanner#scanComment#text.toString() == " + text.toString() );
System.out.println( "XMLScanner#scanComment#c == " + c );
Those should obviously be removed. :-)
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
No console output.
ACTUAL -
XMLScanner#scanComment#c == 60
XMLScanner#scanComment#text.toString() == Hibernate Mapping DTD
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER SUBMITTED WORKAROUND :
change the XML parser through supplying a new one in the jre/lib/endorsed dir.
java version "1.6.0-rc"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-rc-b65)
Java HotSpot(TM) Client VM (build 1.6.0-rc-b65, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
I have seen this on Win XP and Solaris x64.
A DESCRIPTION OF THE PROBLEM :
Basically whenever I am starting any application that has a Hibernate 3.1
(http://www.hibernate.org) XML mapping. I get the following output to the console at runtime:
XMLScanner#scanComment#c == 60
XMLScanner#scanComment#text.toString() == Hibernate Mapping DTD
for every mapped class.
This behavior is not present on 1.5, and it completely goes away on 1.6 if I override the XML parse with the latest version of Xerces through "endorsed" directory.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Look in the source of
com.sun.org.apache.xerces.internal.impl.XMLScanner
Lines 748, 749 contain:
System.out.println( "XMLScanner#scanComment#text.toString() == " + text.toString() );
System.out.println( "XMLScanner#scanComment#c == " + c );
Those should obviously be removed. :-)
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
No console output.
ACTUAL -
XMLScanner#scanComment#c == 60
XMLScanner#scanComment#text.toString() == Hibernate Mapping DTD
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER SUBMITTED WORKAROUND :
change the XML parser through supplying a new one in the jre/lib/endorsed dir.
- duplicates
-
JDK-6404891 debug printout left in XMLParser.java
-
- Resolved
-