ImplicitTagLibraryInfo incorrectly returned null from getFunctions(). The spec requires a FunctionInfo[0] instead. Returning null also caused Generator.generateELFunctionMap to throw a NPE in some circumstances.

Modified files:
* jasper2/src/share/org/apache/jasper/compiler/ImplicitTagLibraryInfo.java

---
Mark Roth
JSP 2.0 Specification Co-Lead
Sun Microsystems, Inc.

Index: jasper2/src/share/org/apache/jasper/compiler/ImplicitTagLibraryInfo.java
===================================================================
RCS file: 
/home/cvspublic/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/ImplicitTagLibraryInfo.java,v
retrieving revision 1.15
diff -u -r1.15 ImplicitTagLibraryInfo.java
--- jasper2/src/share/org/apache/jasper/compiler/ImplicitTagLibraryInfo.java    28 Nov 
2002 04:18:08 -0000      1.15
+++ jasper2/src/share/org/apache/jasper/compiler/ImplicitTagLibraryInfo.java    13 Dec 
+2002 05:57:59 -0000
@@ -61,6 +61,7 @@
 package org.apache.jasper.compiler;
 
 import java.util.*;
+import javax.servlet.jsp.tagext.FunctionInfo;
 import javax.servlet.jsp.tagext.TagLibraryInfo;
 import javax.servlet.jsp.tagext.TagInfo;
 import javax.servlet.jsp.tagext.TagFileInfo;
@@ -100,6 +101,9 @@
        this.pc = pc;
        this.tagFileMap = new Hashtable();
        this.vec = new Vector();
+        
+        // Implicit tag libraries have no functions:
+        this.functions = new FunctionInfo[0];
 
        tlibversion = TLIB_VERSION;
        jspversion = JSP_VERSION;

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

Reply via email to