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 24344] New: - NPE in JDependTask if forked
Date Mon, 03 Nov 2003 08:22:28 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=24344>.
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=24344

NPE in JDependTask if forked

           Summary: NPE in JDependTask if forked
           Product: Ant
           Version: 1.6Beta
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: stein@xtramind.com


When forked, the jdepend task produces an NPE if either
classespath or sourcespath are not specfied, i.e. always :-)
executeAsForked should check for null in lines 519 and 532:

        // This is deprecated - use classespath in the future
        String[] sourcesPath = getSourcespath().list();

        // This is the new way - use classespath - code is the same for now
        String[] classesPath = getClassespath().list();

BUILD FAILED
java.lang.NullPointerException
        at
org.apache.tools.ant.taskdefs.optional.jdepend.JDependTask.executeAsForked(JDependTask.java:519)
        at
org.apache.tools.ant.taskdefs.optional.jdepend.JDependTask.execute(JDependTask.java:350)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:302)
        at org.apache.tools.ant.Task.perform(Task.java:401)
        at org.apache.tools.ant.Target.execute(Target.java:338)
        at org.apache.tools.ant.Target.performTasks(Target.java:365)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1237)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1094)
        at org.apache.tools.ant.Main.runBuild(Main.java:669)
        at org.apache.tools.ant.Main.startAnt(Main.java:220)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)

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


Mime
View raw message