commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dmi...@apache.org
Subject cvs commit: jakarta-commons/jxpath/src/java/org/apache/commons/jxpath/ri/compiler CoreFunction.java
Date Thu, 01 Apr 2004 02:53:45 GMT
dmitri      2004/03/31 18:53:45

  Modified:    jxpath/src/java/org/apache/commons/jxpath/ri/compiler
                        CoreFunction.java
  Log:
  Fixed the name() function
  
  Revision  Changes    Path
  1.16      +3 -3      jakarta-commons/jxpath/src/java/org/apache/commons/jxpath/ri/compiler/CoreFunction.java
  
  Index: CoreFunction.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/jxpath/src/java/org/apache/commons/jxpath/ri/compiler/CoreFunction.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- CoreFunction.java	29 Feb 2004 14:17:38 -0000	1.15
  +++ CoreFunction.java	1 Apr 2004 02:53:45 -0000	1.16
  @@ -389,7 +389,7 @@
       protected Object functionName(EvalContext context) {
           if (getArgumentCount() == 0) {
               NodePointer ptr = context.getCurrentNodePointer();
  -            return ptr.getExpandedName().toString();
  +            return ptr.getName().toString();
           }
           assertArgCount(1);
           Object set = getArg1().compute(context);
  @@ -397,7 +397,7 @@
               EvalContext ctx = (EvalContext) set;
               if (ctx.hasNext()) {
                   NodePointer ptr = (NodePointer) ctx.next();
  -                return ptr.getExpandedName().toString();
  +                return ptr.getName().toString();
               }
           }
           return "";
  
  
  

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


Mime
View raw message