diff --git a/pmd-java/etc/grammar/Java.jjt b/pmd-java/etc/grammar/Java.jjt index 991335622f..6045a4d59a 100644 --- a/pmd-java/etc/grammar/Java.jjt +++ b/pmd-java/etc/grammar/Java.jjt @@ -1854,7 +1854,7 @@ void ConstructorDeclaration(int modifiers) : Token t;} { [ TypeParameters() ] - FormalParameters() [ "throws" NameList() ] + t= {jjtThis.setImage(t.image);} FormalParameters() [ "throws" NameList() ] "{" [ LOOKAHEAD(ExplicitConstructorInvocation()) ExplicitConstructorInvocation() ] ( BlockStatement() )*