Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.3
-
None
-
None
Description
for example, init the DocumentBuilderFactory with classloader1 by
parserFactory = DocumentBuilderFactory.newInstance(); //here use classloader1 is used
but invoke getParser() with classloader2
when parserFactory.newDocumentBuilder(); will get ClassCastException
we can't cast same class prototype with different classloader