mrglavas    2005/04/07 10:37:08

  Modified:    java/src/org/apache/xerces/impl/dv/xs XSSimpleTypeDecl.java
  Log:
  Fixing a bugs related to JIRA Issue #1059:
  http://issues.apache.org/jira/browse/XERCESJ-1059
  
  In a few implementations of ValidationContext we were returning null from 
getSymbol().
  This method is not allowed to return null. It must return a unique string 
equal to the one
  passed in. We use String.intern() to accomplish this.
  
  Revision  Changes    Path
  1.68      +3 -3      
xml-xerces/java/src/org/apache/xerces/impl/dv/xs/XSSimpleTypeDecl.java
  
  Index: XSSimpleTypeDecl.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xerces/java/src/org/apache/xerces/impl/dv/xs/XSSimpleTypeDecl.java,v
  retrieving revision 1.67
  retrieving revision 1.68
  diff -u -r1.67 -r1.68
  --- XSSimpleTypeDecl.java     4 Feb 2005 03:36:57 -0000       1.67
  +++ XSSimpleTypeDecl.java     7 Apr 2005 17:37:07 -0000       1.68
  @@ -207,7 +207,7 @@
                public void addIdRef(String name) {
                }
                public String getSymbol (String symbol) {
  -                     return null;
  +            return symbol.intern();
                }
                public String getURI(String prefix) {
                        return null;
  @@ -2698,7 +2698,7 @@
                }
                
                public String getSymbol (String symbol) {
  -                     return null;
  +            return symbol.intern();
                }
                
                public String getURI(String prefix) {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to