You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Phil Hanna <ph...@ipass.net> on 2000/07/16 05:55:24 UTC
Bug in org.apache.jasper.compiler.TagBeginGenerator
TagBeginGenerator emits servlet code to handle custom tags. In its generateServiceMethodStatements() method, it generates a call to the constructor of the custom tag, using the tag handler's fully qualified class name:
pkg.Foo foo = new pkg.Foo();
this works fine if Foo is in a package, but fails for tag handler classes in the unnamed package:
Foo foo = new Foo();
because there is no
import Foo;
at the top of the class. The generated servlet does not compile, since it itself is in a package, and thinks that Foo must be in the same package.