Skip to content

JDK15 - Illegal reflective access by com.google.errorprone.util.ErrorProneTokens$CommentSavingTokenizer #2271

@jorisgeer

Description

@jorisgeer

Description of the problem / feature request:

Compiling josm.openstreetmap.de with ant and JDK 15 shows :

[javac] WARNING: An illegal reflective access operation has occurred
[javac] WARNING: Illegal reflective access by com.google.errorprone.util.ErrorProneTokens$CommentSavingTokenizer (file:/../com.google.errorprone/error_prone_check_api/jars/error_prone_check_api-2.5.1.jar) to field com.sun.tools.javac.parser.JavaTokenizer.reader
[javac] WARNING: Please consider reporting this to the maintainers of com.google.errorprone.util.ErrorProneTokens$CommentSavingTokenizer
[javac] WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
[javac] WARNING: All illegal access operations will be denied in a future release

Feature requests: what underlying problem are you trying to solve with this feature?

Replace this line with your answer.

Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

Compile with javac 15.0.2

What version of Error Prone are you using?

2.5.1

Have you found anything relevant by searching the web?

no

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions