Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 149595

Summary: Incorrect handling of assert statement with JDK 1.4 compliance level
Product: [Eclipse Project] JDT Reporter: Dmitry Shport <dmitry.shport>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED INVALID QA Contact:
Severity: major    
Priority: P3    
Version: 3.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Dmitry Shport CLA 2006-07-04 12:14:43 EDT
I have upgraded from Eclipse 3.1.2 to Eclipse 3.2
In Preferences I used the following Java Compiler Settings:

* Compiler compliance level = 1.4
* Generated .class files compatibility = 1.4
* Source compatibility = 1.4

With these settings compiler reports errors for the following line in my code:

assert var != null;

error1: "assert cannot be resolved to a type"
error2: "Duplicate local variable var"
error3: "Syntax error on token "!=", = expected"

Please, advise.
Comment 1 Dmitry Shport CLA 2006-07-04 12:20:12 EDT
Sorry, my fault. 
Comment 2 Dmitry Shport CLA 2006-07-04 12:21:59 EDT
Problem "disappear", sorry for false request.