tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kin-Man Chung <Kin-Man.Ch...@Eng.Sun.COM>
Subject Re: Bug of Tomcat 4.1.8?
Date Wed, 07 Aug 2002 20:41:26 GMT
This has been reported and closed as invalid, in bugzilla 10036
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10036

The bottom line is this is tighening of Java language rules in 
jdk1.4, that a unnamed package cannot be referenced from a package.
This has nothing to do with jasper or tomcat.

> Date: Thu, 08 Aug 2002 05:17:34 +0900
> From: Jun Inamori <jun@oop-reserch.com>
> Subject: Bug of Tomcat 4.1.8?
> To: tomcat-dev@jakarta.apache.org
> Content-transfer-encoding: 7bit
> Content-disposition: inline
> X-Dispatcher: imput version 20000228(IM140)
> 
> Hi,
> 
> I tried Tomcat 4.1.8, and found some difficulty in using JSP.
> When the JSP calls the static method on the class which is not packaged, 
Tomcat fails to compile it.
> For example:
> <%
>     String hello=Foo.getHello();
> %>
> will result in the exception, which says "Foo" is not found.
> If I move "Foo" to "example.Foo" and import "example" package, there is no 
problem.
> 
> To show you this problem, I wrote some simple JSPs.
> One of them calls the static method on the class without package, another on 
the class with package.
> And only the latter one can be compiled.
> I attached them to this message.
> 
> I'm not sure, but it may be a bug of Tomcat 4.1.8.
> 
> Happy Java programming!
> ------------------------
> 
> Jun Inamori
> OOP-Reserch
> E-mail: jun@oop-reserch.com
> URL:    http://www.oop-reserch.com/


--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message