Skip to content

Reflective call Warning due to Weld -> ClassFileWriter #1542

@whitingjr

Description

@whitingjr

Running a build shows a Warning for reflective calls.

Running org.commonjava.indy.rest.apigen.SwaggerExportTest
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jboss.classfilewriter.ClassFile$1 (file:/home/whitingjr/.m2/repository/org/jboss/weld/se/weld-se/2.4.6.Final/weld-se-2.4.6.Final.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)
WARNING: Please consider reporting this to the maintainers of org.jboss.classfilewriter.ClassFile$1
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
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 12.27 sec - in org.commonjava.indy.rest.apigen.SwaggerExportTest

The current version of Weld uses a dependency called ClassFileWriter.
Reflective call has been fixed by replacing the offending call in PR#17.
That fix is available in tagged 1.2.4.
Weld tagged version 3.1.1.Final is the earliest version to include the classfilewriter fix.

When time permits the version of Weld should be version bumped to 3.1.1.Final.

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