pmd: verify #956 PMD Parse Exception

This commit is contained in:
Andreas Dangel committed 2013-01-26 15:34:20 +01:00
1 parent 45e2caae20
commit ddb5c23926
1 file changed
+18
@@ -139,3 +139,21 @@ class TestParseAnnototation {
}
}
/*
* Test case for bug #956 PMD Parse Exception
*/
class FooBlock {}
class MyFoo {
MyFoo(FooBlock b) {
}
}
class Foo extends MyFoo {
public Foo() {
super(new FooBlock() {
public Object valueOf(Object object) {
String fish = "salmon";
return fish;
}
});
}
}