commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 19030] - [lang] EnumTest fails on Linux Sun JDK 1.3.0
Date Mon, 04 Aug 2003 20:24:04 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19030>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19030

[lang] EnumTest fails on Linux Sun JDK 1.3.0





------- Additional Comments From scolebourne@joda.org  2003-08-04 20:24 -------
OK, I finally understand the problem.

static final OperationEnum PLUS = new OperationEnum("Plus") {
};
is defining a new anonymous class. However, because it is assigned to a static 
field and declared in a static context, the class must be a static nested class 
instead of an inner class. (inner classes reference their owning object, nested 
classes don't)

Obviously Sun improved the spec between 1.2 and 1.3 to allow for this unusual 
case by generating a nested class instead of an inner. 1.2 just objects that it 
can't create an inner class here.

So...we either find a way around the problem, or declare this particular piece 
of functionality broken if compiled using 1.2.

Mime
View raw message