Summary: | NPE in MethodScope.createMethod | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Dani Megert <daniel_megert> |
Component: | Core | Assignee: | David Audel <david_audel> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | eclipse |
Version: | 3.0 | ||
Target Milestone: | 3.0 M9 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Dani Megert
2004-01-27 11:10:00 EST
I can reproduce the bug in build I20040120. Test case: 1) create a test.jar with the following content. X.class public interface X { public class Y { public void foo(Object o) { System.out.println(); } } } 2) create a testsrc.zip file with the X.java. 3) create a java project P. 4) add test.jar on the classpath and attach testsrc.zip. 5) create Test.java. public class Test { public static void main(String[] args) { X x = new X(){}; new X.Y().foo(null);//breakpoint } } 6) place a breakpoint. 7) execute Test as application in debug mode. 8) step inside foo() method. 9) place cursor in the Display view. 10) do ctrl+space. .log contain the NPE. *** Bug 62201 has been marked as a duplicate of this bug. *** Fixed and test added SnippetCompletionTests#testCodeSnippetAssistForClassFileInInterface() Verified in 200405180816 |