You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by jk...@apache.org on 2001/06/02 01:45:45 UTC

cvs commit: xml-xalan/java/src/org/apache/xpath/objects XString.java

jkesselm    01/06/01 16:45:45

  Modified:    java/src/org/apache/xpath/objects Tag: DTM_EXP XString.java
  Log:
  Was invoking a Java 1.2 method...
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.6.2.8   +11 -4     xml-xalan/java/src/org/apache/xpath/objects/XString.java
  
  Index: XString.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xpath/objects/XString.java,v
  retrieving revision 1.6.2.7
  retrieving revision 1.6.2.8
  diff -u -r1.6.2.7 -r1.6.2.8
  --- XString.java	2001/05/29 22:17:02	1.6.2.7
  +++ XString.java	2001/06/01 23:45:45	1.6.2.8
  @@ -535,11 +535,18 @@
      * @see     java.text.Collator#compare(String, String)
      * @since   1.2
      */
  -  public int compareToIgnoreCase(XMLString str)
  +  public int compareToIgnoreCase1(XMLString str)
     {
  -    // %REVIEW% This method may not exist in earlier versions of Java --
  -    // Microsoft VJ++, for example, has never heard of it.
  -    return str().compareToIgnoreCase(str.toString());
  +	// %REVIEW%  Like it says, @since 1.2. Doesn't exist in earlier
  +	// versions of Java, hence we can't yet shell out to it. We can implement
  +	// it as character-by-character compare, but doing so efficiently
  +    // is likely to be (ahem) interesting.
  +	//  
  +	// However, since nobody is actually _using_ this method yet:
  +    //    return str().compareToIgnoreCase(str.toString());
  +	  
  +	throw new  java.lang.NoSuchMethodException("Java 1.2 method, not yet implemented");
  +  
     }
   
     /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org