Community
Participate
Working Groups
- create this class X. <-----------------------------> public class X { public class Y extends X {} public class Z extends Y {} } <-----------------------------> - do a build. there is an error : Cannot use this in a static context same test case with javac 1.3 : OK javac 1.2.2 : X.java:2: No constructor matching X() found in class X. public class Y extends X { ^ X.java:5: Can't reference this before the superclass constructor has been called. public class Z extends Y { ^ 2 errors
Problem was due to inner path emulation not preventing usage of implicit this inside explicit constructor calls. Fixed