Menu ▾ ▴

#28 internal Pizza compiler error

open
nobody
5
2002-09-09
2002-09-09
No

The Pizza compiler chokes on the following javac
regression test.

/**
* @test @(#)NewBeforeOuterConstructed3.java 1.1
02/06/24
* @bug 4704371
* @summary compiler generates unverifiable code for
implicit reference to uninit'd this
*
* @compile/fail NewBeforeOuterConstructed3.java
*/

class NewBeforeOuterConstructed3 {
class Two extends NewBeforeOuterConstructed3 {
{

System.out.println(NewBeforeOuterConstructed3.this);
}
}
class Three extends Two {
// Three() { this.super(); }
{
new Two();
}
}
public static void main(String[] args) {
NewBeforeOuterConstructed3 o = new
NewBeforeOuterConstructed3();
System.out.println(o + " " + o.new Three());
}
}

Discussion


Log in to post a comment.