Summary: | JACKS - Blank final instance must be assigned before the end of constructor | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Olivier Thomann <Olivier_Thomann> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | RESOLVED WONTFIX | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 2.1 | ||
Target Milestone: | 2.1 M4 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
Olivier Thomann
2002-11-13 12:50:17 EST
Another test cases: class A { final int i; A(boolean b) { if (b) return; i = 1; } } class A { final int i; A(boolean b) { try { if (b) return; } finally { } i = 1; } } Change summary. Won't change, we keep compatibility with javac. This behavior derives from considering constant expressions during flow analysis (which clearly Jikes doesn't consider). Second example on chapter 16 (p.408) involving a 'while (true)' demonstrates we should consider constant expressions. Closing. |