pmd: verify #956 PMD Parse Exception
This commit is contained in:
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;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user