Summary: | Bug7 (and counting ;-): hundretAssignmentsToFinalVariable() | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | markusle <mle> | ||||
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | CC: | mle | ||||
Version: | 3.0 | ||||||
Target Milestone: | 2.1.3 | ||||||
Hardware: | PC | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
markusle
2003-10-23 07:39:02 EDT
Jikes 1.18 reports: Found 1 semantic error compiling "D:/temp/X.java": 13. iCount = i; ^----^ *** Semantic Error: The blank final variable "iCount" cannot be assigned within the body of a loop that may execute more than once. javac 1.4.2 reports: X.java:13: variable iCount might be assigned in loop iCount = i; ^ 1 error I will attach the test case. Created attachment 6529 [details]
Compile fine using Eclipse compiler. It should report an error
Good find. Flow analysis was checking loop assignment before merging init information from continue branch. Fixed in latest. Regression test added: InitializationTest#test170 Verified. Backported to 2.1.x stream Verified for 2.1.3 with build M200402251535. |