ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 45916] New: Depend task may remove (inner) classes without source files
Date Tue, 30 Sep 2008 11:41:37 GMT

           Summary: Depend task may remove (inner) classes without source
           Product: Ant
           Version: 1.7.1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Optional Tasks

Created an attachment (id=22647)
 --> (
Test case.

The depend task
(src/main/org/apache/tools/ant/taskdefs/optional/depend/ tries not
to delete classes for which it cannot find the source file (
When deleting an inner class, it also tries to delete the top-level class
( and further). But, in some cases, it deletes an inner classes
without either of these checks ( As the top-level class may be
preserved, the following javac task may consider the classfile to be
up-to-date, and may not compile the source, leading into a missing classfile
for the inner class after compile.

I am attaching a test case. Unpack the attachment, and execute the
"broken-depend.xml" build script in the "broken-depend" directory (default
target "test-depend"). The execution of the script fails because of a missing
inner-class file.

Tested on ant 1.7.1:
$ ant -version
Apache Ant version 1.7.1 compiled on June 27 2008

NetBeans bug:

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message