ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 21497] New: - javac succeeds when it should fail
Date Fri, 11 Jul 2003 11:37:29 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=21497>.
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=21497

javac succeeds when it should fail

           Summary: javac succeeds when it should fail
           Product: Ant
           Version: 1.5.2
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: ts@appliedgenerics.com


This behaviour is observed:

1. Run Ant, and javac fails due to a bug in the source code being compiled. Fair
enough.
2. Run Ant again and it appears to succeed even though the buggy class was not
compiled (so the software will not work).

The particular problem is that if you tell the Ant javac task to compile a class
Top which imports Middle, which in turn imports Bottom, and Bottom has compile
time errors that do not affect its method signature, then Top and Middle will be
built successfully but Bottom will not be. On a subsequent run, the javac task
only tries to build Top, which checks only Middle and so Bottom is never rebuilt.

It looks as though bug 13409 could have been the same thing, but the reporter
gave insufficent detail and the bug was marked as in valid.
http://issues.apache.org/bugzilla/show_bug.cgi?id=13409

It's unlikely, but http://issues.apache.org/bugzilla/show_bug.cgi?id=14808 just
might be related, since it's about javac being happy when an output file is missing.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message