Skip to content

Illegal reflection warning in Java 11 #298

@eko-dylan

Description

@eko-dylan

I just upgraded Maven to 3.9.9, which bundles Jansi 2.4.1 (upgraded 2.4.0 to 2.4.1 in version 3.9.7, see release note ticket).

All maven commands now produce the following (harmless) warnings:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.fusesource.jansi.internal.MingwSupport (file<PATH-TO-MAVEN-BIN>/apache-maven-3.9.9/lib/jansi-2.4.1.jar) to constructor java.lang.ProcessBuilder$RedirectPipeImpl()
WARNING: Please consider reporting this to the maintainers of org.fusesource.jansi.internal.MingwSupport
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

My Java is Amazon Corretto 11.

This is harmless but also annoying.

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