Summary: | Bogus potential null pointer access warning (regression; works with 3.6) | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Markus Schorn <mschorn.eclipse> | ||||
Component: | Core | Assignee: | Ayushman Jain <amj87.iitr> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | CC: | amj87.iitr, daniel_megert, Olivier_Thomann, stephan.herrmann | ||||
Version: | 3.7 | ||||||
Target Milestone: | 3.7 M6 | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Markus Schorn
2010-12-17 07:24:26 EST
I'll investigate Ayush, please fix this for M6. Created attachment 188421 [details]
proposed fix v1.0 + regression tests
The problem is in the incorrect merging of null info when the option "include null info from asserts" is disabled.
This has been corrected in the above fix.
This also now gives a NPE warning instead of pot. NPE warning for the case:
for (final Info info : infos) {
if (info == null) {
assert info.checkSomething();
info.doSomething(); // NPE
}
}
Released in HEAD for 3.7 M6 Verified for 3.7M6. |