santiagopg    2002/07/18 10:24:43

  Modified:    java/src/org/apache/xalan/xsltc/compiler FunctionCall.java
  Log:
  Fixed problem in error reporting code.
  
  Revision  Changes    Path
  1.19      +7 -2      
xml-xalan/java/src/org/apache/xalan/xsltc/compiler/FunctionCall.java
  
  Index: FunctionCall.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/FunctionCall.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- FunctionCall.java 15 Jul 2002 15:57:38 -0000      1.18
  +++ FunctionCall.java 18 Jul 2002 17:24:43 -0000      1.19
  @@ -257,7 +257,12 @@
                }
            } 
            catch (TypeCheckError e) {
  -             getParser().reportError(ERROR, e.getErrorMsg());
  +             ErrorMsg errorMsg = e.getErrorMsg();
  +             if (errorMsg == null) {
  +                 final String name = _fname.getLocalPart();
  +                 errorMsg = new ErrorMsg(ErrorMsg.METHOD_NOT_FOUND_ERR, 
name);
  +             }
  +             getParser().reportError(ERROR, errorMsg);
                return _type = Type.Void;
            }
   
  
  
  

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

Reply via email to