You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by ga...@apache.org on 2001/04/29 10:00:28 UTC

cvs commit: xml-xalan/java/src/org/apache/xpath/functions FuncExtFunction.java

garyp       01/04/29 01:00:28

  Modified:    java/src/org/apache/xpath/functions FuncExtFunction.java
  Log:
  Resolve bugzilla bug 1373 <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1373>.
  Added code to support return of Integer or Long by an external function.
  Code was contributed by Patrick Moore <pa...@ieee.org>.
  
  Revision  Changes    Path
  1.8       +8 -0      xml-xalan/java/src/org/apache/xpath/functions/FuncExtFunction.java
  
  Index: FuncExtFunction.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xpath/functions/FuncExtFunction.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- FuncExtFunction.java	2001/01/02 03:47:16	1.7
  +++ FuncExtFunction.java	2001/04/29 08:00:28	1.8
  @@ -168,6 +168,14 @@
         {
           result = new XNumber(((Double) val).doubleValue());
         }
  +      else if (val instanceof Long)
  +      {
  +        result = new XNumber(((Long)val).doubleValue());
  +      }
  +      else if (val instanceof Integer)
  +      {
  +        result = new XNumber(((Integer)val).doubleValue());
  +      }
         else if (val instanceof DocumentFragment)
         {
           result = new XRTreeFrag((DocumentFragment) val);
  
  
  

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