DO NOT REPLY [Bug 36845] New: - NullPointerException in getLineNumber bei "continue" in for each

[email protected]
Newsgroups gmane.comp.jakarta.bcel.devel
Message-ID <[email protected]>
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36845>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36845

           Summary: NullPointerException in getLineNumber bei "continue" in
                    for each
           Product: BCEL
           Version: 5.1
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Hi,

I got a NullPointerException using the FindBugs GUI
I think BCEL has a problem with "continue" in the new for
loop. The source code of the problematic file is
attached as a simplified test case.

Fataler Fehler während der Analyse:
java.lang.NullPointerException:
While finding bugs in class:
de.his.test.soap.TestSOAPAnnotation
org.apache.bcel.generic.LineNumberGen.getLineNumber(LineNumberGen.java:72)
org.apache.bcel.generic.MethodGen.getLineNumberTable(MethodGen.java:474)
edu.umd.cs.findbugs.SourceLineAnnotation.fromVisitedInstruction(SourceLineAnnotation.java:312)
edu.umd.cs.findbugs.detect.FindInconsistentSync2$FieldStats.addAccess(FindInconsistentSync2.java:184)
edu.umd.cs.findbugs.detect.FindInconsistentSync2.analyzeMethod(FindInconsistentSync2.java:532)
edu.umd.cs.findbugs.detect.FindInconsistentSync2.visitClassContext(FindInconsistentSync2.java:259)
edu.umd.cs.findbugs.FindBugs.examineClass(FindBugs.java:1598)
edu.umd.cs.findbugs.FindBugs.executeAnalysisPass(FindBugs.java:1517)
edu.umd.cs.findbugs.FindBugs.execute(FindBugs.java:1171)
edu.umd.cs.findbugs.gui.AnalysisRun.execute(AnalysisRun.java:109)
edu.umd.cs.findbugs.gui.RunAnalysisDialog$1.run(RunAnalysisDialog.java:138)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.