Bug 234549 - [compiler][null] Redundant null check warning fooled by assert
Summary: [compiler][null] Redundant null check warning fooled by assert
Status: VERIFIED DUPLICATE of bug 198044
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4 M1   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-29 04:11 EDT by Olivier Lefevre CLA
Modified: 2008-09-16 10:22 EDT (History)
0 users

See Also:


Attachments
Bug8.java (141 bytes, text/plain)
2008-05-29 04:13 EDT, Olivier Lefevre CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Lefevre CLA 2008-05-29 04:11:40 EDT
Build ID: M20080221-1800

Steps To Reproduce:
ecj -warn:+null Bug8.java

More information:
assert is a runtime feature; the compiler cannot know that -ea will be specified and should conservatively treat the check as non-redundant.
Comment 1 Olivier Lefevre CLA 2008-05-29 04:13:02 EDT
Created attachment 102581 [details]
Bug8.java
Comment 2 Maxime Daniel CLA 2008-05-29 04:36:13 EDT
This is a deliberate design decision. Please see details in duplicate bug 198044.

*** This bug has been marked as a duplicate of bug 198044 ***
Comment 3 Frederic Fusier CLA 2008-09-16 10:22:20 EDT
Verified during 3.5M2 milestone verification process...