You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2005/06/05 05:46:00 UTC

DO NOT REPLY [Bug 35224] New: - java.lang.ClassCastException: org.apache.xerces.dom.DeferredCommentImpl

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35224>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35224

           Summary: java.lang.ClassCastException:
                    org.apache.xerces.dom.DeferredCommentImpl
           Product: Xerces-J
           Version: 1.4.4
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: xerces-j-dev@xml.apache.org
        ReportedBy: jpatino@shaw.ca


java.lang.ClassCastException: org.apache.xerces.dom.DeferredCommentImpl
	at java.util.XMLUtils.load(Unknown Source)
	at java.util.Properties.loadFromXML(Unknown Source)
	at com.wi.utils.XmlResourceBundle.buildProperties(XmlResourceBundle.java:110)
	at com.wi.utils.XmlResourceBundle.<init>(XmlResourceBundle.java:33)
	at com.wi.utils.CommonResourceBundle.main(CommonResourceBundle.java:294)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


Re: Faultyness in simpleType.SimpleTypeUsage

Posted by Michael Glavassevich <mr...@ca.ibm.com>.
Hi Dave,

Good catch. Should be fixed in CVS now.

"Dave Brosius" <db...@qis.net> wrote on 06/06/2005 01:09:32 AM:

> As XSConstants.DERIVATION_NONE  is 0, the last if will never be true
> 
> 
> 
> void printFinal(short finalSet){
> 
>     System.err.println("'final' values \t\t\t: " );
> 
>     if ((finalSet & XSConstants.DERIVATION_EXTENSION ) != 0){
>         System.err.println("\t\t\t\t Extension");
>     }
>     if ((finalSet & XSConstants.DERIVATION_RESTRICTION) != 0){
>         System.err.println("\t\t\t\t Restriction");
>     }
>     if((finalSet & XSConstants.DERIVATION_LIST ) != 0){
>         System.err.println("\t\t\t\t List");
>     }
>     if((finalSet & XSConstants.DERIVATION_UNION ) != 0){
>         System.err.println("\t\t\t\t Union");
>     }
>     if((finalSet & XSConstants.DERIVATION_NONE ) != 0){
>         System.err.println("\t\t\t\t EMPTY");
>     }
> 
> }
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
> For additional commands, e-mail: j-dev-help@xerces.apache.org
> 

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


Faultyness in simpleType.SimpleTypeUsage

Posted by Dave Brosius <db...@qis.net>.
As XSConstants.DERIVATION_NONE  is 0, the last if will never be true



void printFinal(short finalSet){

    System.err.println("'final' values \t\t\t: " );

    if ((finalSet & XSConstants.DERIVATION_EXTENSION ) != 0){
        System.err.println("\t\t\t\t Extension");
    }
    if ((finalSet & XSConstants.DERIVATION_RESTRICTION) != 0){
        System.err.println("\t\t\t\t Restriction");
    }
    if((finalSet & XSConstants.DERIVATION_LIST ) != 0){
        System.err.println("\t\t\t\t List");
    }
    if((finalSet & XSConstants.DERIVATION_UNION ) != 0){
        System.err.println("\t\t\t\t Union");
    }
    if((finalSet & XSConstants.DERIVATION_NONE ) != 0){
        System.err.println("\t\t\t\t EMPTY");
    }

}


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


DO NOT REPLY [Bug 35224] New: - java.lang.ClassCastException: org.apache.xerces.dom.DeferredCommentImpl

Posted by rags <ra...@infosys.com>.
properties.loadxmlfile throws java.lang.ClassCastException: 
org.apache.xerces.dom.DeferredCommentImpl error




---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org