Community
Participate
Working Groups
I20061205-0800 package test; public class E1 { public E1(String label) {} public E1() { String s= "foo"; System.out.println(s); this(s); System.out.println(s); } } => "s" in "this(s)" does not have a binding. => Expected: Binding for "s", like in "System.out.println(s)".
The problem comes from the compiler that doesn't resolve the this(s) call when this is not the first statement of the constructor declaration.
Fault-tolerance issue. When ill-positionned, the compiler doesn't resolve subparts of an explicit constructor call, e.g. public class X { public X() { System.out.println(); this(zork); Zork.this.this(); <Zork>this(); } } could diagnose all 'zork' issues. Added GenericTypeTest#test1120.
Created attachment 62641 [details] Proposed patch
Olivier - do you want to add a DOM test?
Released for 3.3M7 Fixed
Added org.eclipse.jdt.core.tests.dom.ASTConverter15Test#test0262 and org.eclipse.jdt.core.tests.dom.ASTConverterTestAST3_2#test0675
Verified for 3.3M7 with I20070427-0010