Bug 45674 - Compiler should allow compound assignment to final in unreachable code
Summary: Compiler should allow compound assignment to final in unreachable code
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.0 M5   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-28 10:54 EST by Philipe Mulet CLA
Modified: 2003-11-20 10:51 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipe Mulet CLA 2003-10-28 10:54:28 EST
Build 3.0M4

Following code should compile clear:
public class X {
	public static void main(String[] args) {
		final int x;
		if (false) {
		    x *= 1;
		}
	}
}
Comment 1 Philipe Mulet CLA 2003-10-29 16:43:42 EST
Fixed (only for local variable, no change for field)
Comment 2 David Audel CLA 2003-11-20 10:51:21 EST
Verified.