https://issues.apache.org/bugzilla/show_bug.cgi?id=51000
Summary: <depend> may leave orphaned nested classes -> NPE in
javac.jvm.ClassReader.findMethod
Product: Ant
Version: 1.8.2
Platform: PC
OS/Version: Linux
Status: NEW
Severity: major
Priority: P2
Component: Optional Tasks
AssignedTo: [email protected]
ReportedBy: [email protected]
https://netbeans.org/bugzilla/show_bug.cgi?id=196556#c10 for background. It is
possible after running <depend> to be left with Something$1$1.class but no
Something$1.class or Something.class. If an annotation processor is then run
which calls PackageElement.getEnclosedElements, JDK 6 javac will crash with a
stack trace; JDK 7 javac (as currently developed) will print a helpful message
but still fail.
Anyway there is no reason for Something$1$1.class to be there. Something.java
is destined to be recompiled, in which case this class file will be regenerated
- or will be stale, if the code block with the nested class was deleted.
Depend.deleteAffectedFiles does seem to delete Something.class if
Something$Else.class is deleted, but it needs to also do the reverse.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.