[ 
https://issues.apache.org/jira/browse/SUREFIRE-1563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16990795#comment-16990795
 ] 

Tibor Digana edited comment on SUREFIRE-1563 at 12/8/19 9:50 AM:
-----------------------------------------------------------------

We have touched the issue reported in 
[JDK-8190341|https://bugs.openjdk.java.net/browse/JDK-8190341]. The issuer says:

{noformat}
If the patched classes have static references to classes on the class path then 
they will fail at run-time with NoClassDefFoundError.
{noformat}

After I removed *--patch-module* i got another issue as an experiment:
_ClassNotFoundException: org.eclipse.jetty.util.logging.LoggingTest_


was (Author: tibor17):
We have touched the issue reported in 
[JDK-8190341|https://bugs.openjdk.java.net/browse/JDK-8190341].
The issues says:

{noformat}
If the patched classes have static references to classes on the class path then 
they will fail at run-time with NoClassDefFoundError.
{noformat}

After I removed *--patch-module* i got another issue as an experiment:
_ClassNotFoundException: org.eclipse.jetty.util.logging.LoggingTest_

> NoClassDefFoundError for JPMS modules with "require static"
> -----------------------------------------------------------
>
>                 Key: SUREFIRE-1563
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1563
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Surefire Plugin
>    Affects Versions: 2.22.0
>            Reporter: Simone Bordet
>            Assignee: Olivier Lamy
>            Priority: Major
>         Attachments: maven-jpms.tgz
>
>
> When a Maven module has a {{module-info.java}} that contains a {{requires 
> static}}, Surefire throws {{NoClassDefFoundError}} when running the tests for 
> that Maven module.
> If the dependency is declared only as {{required}} (no {{static}}), then the 
> tests run fine.
> Attached a reproducible project.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to