Summary: | NPE in ProblemReporter.missingDeprecatedAnnotationForMethod():3923 | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Theodora Yeung <tyeung> | ||||||
Component: | Core | Assignee: | JDT-Core-Inbox <jdt-core-inbox> | ||||||
Status: | VERIFIED DUPLICATE | QA Contact: | |||||||
Severity: | normal | ||||||||
Priority: | P3 | ||||||||
Version: | 3.1.1 | ||||||||
Target Milestone: | 3.1.2 | ||||||||
Hardware: | PC | ||||||||
OS: | Windows XP | ||||||||
Whiteboard: | |||||||||
Attachments: |
|
Description
Theodora Yeung
2005-11-17 18:52:47 EST
Created attachment 30195 [details]
The source code that caused the reported NPE
Created attachment 30196 [details]
Proposed Patch to the NPE
*** This bug has been marked as a duplicate of 110593 *** Thanks Theodora, your patch is right. Simpler testcase: 2 files X.java & Y.java, compile X and Y on command line, X being first. Needs to be in 1.5 mode, with diagnostic for missing @Deprecated annotation enabled. public class X { void foo(Y y) { y.initialize(null, null, null); } } public class Y { /** * @deprecated */ public void initialize(Zork z, String s) { } public void initialize(Zork z, String s, Thread t) { } } Verified in M20060109-0800 for 3.1.2 |