Skip to content

[java] Parse error on rare extra dimensions on method return type on annotation methods #3642

@oowekyala

Description

@oowekyala

Affects PMD Version: 6.40.0

Make sure, to test with the latest PMD version.

Description: title. Found in checkstyle sources in #3640

Code Sample demonstrating the issue:

@interface Foo {
    String v1()[]; // parse error
    // equivalent to String[] v1();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    a:bugPMD crashes or fails to analyse a file.in:grammarAbout the grammar of a lexer or parser, eg, a parse/lex exception

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions