block initializer added

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@897 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 01b81620bc
commit 693067c72a
  1. 13
      jode/test/AnonymousClass.java

@ -32,6 +32,10 @@ public class AnonymousClass {
class Hello {
int var = (int) longVar;
{
System.err.println("all constructors");
}
Hello() {
System.err.println("construct");
}
@ -53,12 +57,21 @@ public class AnonymousClass {
Hello hii = hi;
{
System.err.println("Anonymous Constructor speaking");
}
public String toString() {
this.hii.hello();
hi.hello();
return Integer.toHexString(AnonymousClass.this.hashCode()
+blah);
}
{
System.err.println("Anonymous Constructor continues");
}
};
Object p = new Object() {
public String toString() {

Loading…
Cancel
Save