You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tibor Digana (JIRA)" <ji...@apache.org> on 2019/08/07 15:19:00 UTC

[jira] [Updated] (MNG-6729) StringSearchModelInterpolator introspects objects from Java API

     [ https://issues.apache.org/jira/browse/MNG-6729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tibor Digana updated MNG-6729:
------------------------------
    Description: 
The current implementation of {{StringSearchModelInterpolator}} introspects Java objects, e.g. {{java.io.File}}. This fix stops introspecting such objects. See the unit test {{testNotInterpolateFile}}.

We found this issue when our build process failed with this warning on the console output:

junit.framework.AssertionFailedError: expected:<[]> but was:<[WARNING: An illegal reflective access operation has occurred, WARNING: Illegal reflective access by org.apache.maven.model.interpolation.StringSearchModelInterpolator$InterpolateObjectAction$CacheField (file:/home/jenkins/jenkins-slave/workspace/ven-box_maven_removed-java-tools/test/core-it-suite/target/apache-maven/lib/maven-model-builder-3.6.2-SNAPSHOT.jar) to field java.io.File.fs, WARNING: Please consider reporting this to the maintainers of org.apache.maven.model.interpolation.StringSearchModelInterpolator$InterpolateObjectAction$CacheField, 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]>
	at org.apache.maven.it.MavenITmng4387QuietLoggingTest.testit(MavenITmng4387QuietLoggingTest.java:71)

  was:
The current implementation of {{StringSearchModelInterpolator}} introspects Java objects, e.g. {{java.io.File}}. This fix stops introspecting such objects. See the unit test {{testNotInterpolateFile}}.

We found this bug when our build process failed with this warning on the console output:

junit.framework.AssertionFailedError: expected:<[]> but was:<[WARNING: An illegal reflective access operation has occurred, WARNING: Illegal reflective access by org.apache.maven.model.interpolation.StringSearchModelInterpolator$InterpolateObjectAction$CacheField (file:/home/jenkins/jenkins-slave/workspace/ven-box_maven_removed-java-tools/test/core-it-suite/target/apache-maven/lib/maven-model-builder-3.6.2-SNAPSHOT.jar) to field java.io.File.fs, WARNING: Please consider reporting this to the maintainers of org.apache.maven.model.interpolation.StringSearchModelInterpolator$InterpolateObjectAction$CacheField, 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]>
	at org.apache.maven.it.MavenITmng4387QuietLoggingTest.testit(MavenITmng4387QuietLoggingTest.java:71)


> StringSearchModelInterpolator introspects objects from Java API
> ---------------------------------------------------------------
>
>                 Key: MNG-6729
>                 URL: https://issues.apache.org/jira/browse/MNG-6729
>             Project: Maven
>          Issue Type: Improvement
>          Components: Inheritance and Interpolation
>            Reporter: Tibor Digana
>            Assignee: Tibor Digana
>            Priority: Major
>             Fix For: 3.6.2, 3.6.x-candidate
>
>
> The current implementation of {{StringSearchModelInterpolator}} introspects Java objects, e.g. {{java.io.File}}. This fix stops introspecting such objects. See the unit test {{testNotInterpolateFile}}.
> We found this issue when our build process failed with this warning on the console output:
> junit.framework.AssertionFailedError: expected:<[]> but was:<[WARNING: An illegal reflective access operation has occurred, WARNING: Illegal reflective access by org.apache.maven.model.interpolation.StringSearchModelInterpolator$InterpolateObjectAction$CacheField (file:/home/jenkins/jenkins-slave/workspace/ven-box_maven_removed-java-tools/test/core-it-suite/target/apache-maven/lib/maven-model-builder-3.6.2-SNAPSHOT.jar) to field java.io.File.fs, WARNING: Please consider reporting this to the maintainers of org.apache.maven.model.interpolation.StringSearchModelInterpolator$InterpolateObjectAction$CacheField, 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]>
> 	at org.apache.maven.it.MavenITmng4387QuietLoggingTest.testit(MavenITmng4387QuietLoggingTest.java:71)



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)