tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BugRat Mail System <gjt...@gjt.org>
Subject BugRat Report #9 has been filed.
Date Tue, 01 Aug 2000 21:35:49 GMT
Bug report #9 has just been filed.

You can view the report at the following URL:

   <http://znutar.cortexity.com:8888/BugRatViewer/ShowReport/9>

REPORT #9 Details.

Project: Jasper
Category: Bug Report
SubCategory: New Bug Report
Class: swbug
State: received
Priority: medium
Severity: serious
Confidence: public
Environment: 
   Release: 3.2 beta 2
   JVM Release: 1.3
   Operating System: any
   OS Release: any
   Platform: any

Synopsis: 
TagBeginGenerator will not allow tags in unnamed package

Description:
org.apache.jasper.compiler.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.

Mime
View raw message