-
Notifications
You must be signed in to change notification settings - Fork 566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
4.x: Use System.Logger instead of JUL where applicable #7792 #8791
Conversation
Signed-off-by: Jorge Bescos Gascon <jorge.bescos.gascon@oracle.com>
Signed-off-by: Jorge Bescos Gascon <jorge.bescos.gascon@oracle.com>
There are some leftovers where I was not able to remove because of any of the next reasons:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, there are still a couple of problems to be fixed.
Thanks
@@ -279,40 +276,6 @@ void testNullRejectionPolicy() { | |||
), "rejectionPolicy is null"); | |||
} | |||
|
|||
@Test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please return the test, it will work when you run it from Maven.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So the problem comes from compiler plugin, as the tests seem to be compile with module path.
To fix the problem, add this section to maven-compiler-plugin
in pom.xml
of the module:
<executions>
<execution>
<id>default-testCompile</id>
<configuration>
<!--
We use JUL from tests, need this for compilation
-->
<compilerArgs>
<compilerArg>--add-modules</compilerArg>
<compilerArg>java.logging</compilerArg>
</compilerArgs>
</configuration>
</execution>
</executions>
and re-introduce the test as it was
Signed-off-by: Jorge Bescos Gascon <jorge.bescos.gascon@oracle.com>
@@ -279,40 +276,6 @@ void testNullRejectionPolicy() { | |||
), "rejectionPolicy is null"); | |||
} | |||
|
|||
@Test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So the problem comes from compiler plugin, as the tests seem to be compile with module path.
To fix the problem, add this section to maven-compiler-plugin
in pom.xml
of the module:
<executions>
<execution>
<id>default-testCompile</id>
<configuration>
<!--
We use JUL from tests, need this for compilation
-->
<compilerArgs>
<compilerArg>--add-modules</compilerArg>
<compilerArg>java.logging</compilerArg>
</compilerArgs>
</configuration>
</execution>
</executions>
and re-introduce the test as it was
048a5b1
to
c221473
Compare
Signed-off-by: Jorge Bescos Gascon <jorge.bescos.gascon@oracle.com>
Description
#7792
Documentation
N/A