ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Christmann" <p...@priorartisans.com>
Subject RE: "Unclosed comment" error with jdk1.4.1 while compiling
Date Thu, 05 Sep 2002 20:34:14 GMT
> ----- Original Message -----
> From: "Ian Zabel" <ian@ezabel.com>
> > This is just a legacy coding convention that is in about 
> 300 classes. When
> > compiling these classes with jdk1.4.1 RC from the command 
> line, they all
> > compile fine. It's only a problem when compiling through ant, while
> running
> > on jdk1.4.1 RC. If we run ant with jdk1.4.0, it works fine too.

If true (compiles with jdk1.4.1 RC on the command line), that is a
problem with *command line compilation*, not ant compilation.  Ant is
behaving *as it should* with jdk1.4.1 RC -- barfing on the
EOF-terminated comments.  This was an intentional change to jdk1.4.1.
I've encountered this same issue with some other open source projects I
use.  Eventually, we backed down from jdk1.4.1 to 1.4.0 due to this
problem (I didn't have the time to patch several hundred files),
thinking/hoping someone else would eventuall do it. :)

Buried in some docs at Suns web site
(http://java.sun.com/features/2002/08/java141.html) I found a very very
very brief reference to this:

"Probably the most interesting changes are those made to the compiler
itself. <snip/> Fixes pertain to such illegal code as doubly labeled
loops, *** single-line comments that end with end-of-file instead of
end-of-line ***, and inner superclass constructor calls. See the Release
Notes for more details about these fixes."

Side note: I've heard rumors that this change may get revoked (jdk1.4.1
may allow EOF terminated comments and the JLS updated), so I'm sitting
on 1.4.0 until the next 1.4.1 release comes out.

Paul Christmann


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


Mime
View raw message