Submitted By: Joshua Nichols (nichoj)
Assigned to: Nobody/Anonymous (nobody)
Summary: errors when compiling jetty-4.2.19, jetty-4.2.24 with jikes
I'm working on packaging Jetty for Gentoo Linux. The
new Java policy is to build from source when possible,
and we offer the ability to compile using jikes.
So, when I attempt to run with jetty-4.2.19 (most
recent packaged in Portage), or the most recent 4.2.24:
ant -Dbuild.compiler=jikes clean classes
I get many warnings to the effect of:
Lexical Warning: The use of "enum" as an identifier is
deprecated, as it will be a keyword once -source 1.5 is
In addition to one build error:
50: Semantic Error: The static type
must use a qualified name to access the non-static
"org.mortbay.http.HttpServer$ComponentEvent" of the
enclosing type "org.mortbay.http.HttpServer".
Both of these are very simple to fix. For the enum
warning, the variable just needs to be named something
else. For the semantic error, the reference to
ComponentEvent needs to be changed to
I also forgot to mention that were also warnings like:
9:73:32: Semantic Warning: This switch block can fall
through to the next case. Did you forget a break statement?
But I was not sure if this was the desired behavior, so
didn't attempt to fix it.