Skip to content
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

upadate forbiddenapis to latest version as it not looks like runnig on jdk 11 #274

Closed
romani opened this issue Jan 21, 2020 · 1 comment · Fixed by #275
Closed

upadate forbiddenapis to latest version as it not looks like runnig on jdk 11 #274

romani opened this issue Jan 21, 2020 · 1 comment · Fixed by #275
Labels
Milestone

Comments

@romani
Copy link
Member

romani commented Jan 21, 2020

right now:

[INFO] --- forbiddenapis:2.2:check (default) @ checkstyle-sonar-plugin ---
[WARNING] Bundled version of ASM cannot parse bytecode of java.lang.Object class; marking runtime as not suppported.
[WARNING] Your Java runtime (OpenJDK Runtime Environment 12+32) is not supported by the forbiddenapis MOJO. Please run the checks with a supported JDK!
[INFO] 

after update to latest version 2.7:

[INFO] --- forbiddenapis:2.7:testCheck (default) @ checkstyle-sonar-plugin ---
[INFO] Scanning for classes to check...
[INFO] Reading bundled API signatures: jdk-unsafe-11
[INFO] Reading bundled API signatures: jdk-deprecated-11
[INFO] Reading bundled API signatures: jdk-system-out
[INFO] Reading bundled API signatures: jdk-non-portable
[INFO] Loading classes to check...
[INFO] Scanning classes for violations...
[ERROR] Forbidden method invocation: java.lang.String#format(java.lang.String,java.lang.Object[]) [Uses default locale]
[ERROR]   in org.checkstyle.plugins.sonar.RunPluginTest (RunPluginTest.java:244)
[ERROR] Forbidden method invocation: java.lang.String#format(java.lang.String,java.lang.Object[]) [Uses default locale]
[ERROR]   in org.checkstyle.plugins.sonar.RunPluginTest (RunPluginTest.java:257)
[ERROR] Forbidden method invocation: java.lang.String#format(java.lang.String,java.lang.Object[]) [Uses default locale]
[ERROR]   in org.checkstyle.plugins.sonar.RunPluginTest (RunPluginTest.java:275)
[ERROR] Forbidden method invocation: java.lang.reflect.AccessibleObject#isAccessible() [Deprecated in Java 11]
[ERROR]   in org.sonar.plugins.checkstyle.CheckstyleConstantsTest (CheckstyleConstantsTest.java:34)
[ERROR] Forbidden method invocation: java.lang.reflect.AccessibleObject#isAccessible() [Deprecated in Java 11]
[ERROR]   in org.sonar.plugins.checkstyle.CheckstyleSeverityUtilsTest (CheckstyleSeverityUtilsTest.java:74)
[ERROR] Scanned 21 class file(s) for forbidden API invocations (in 0.11s), 5 error(s).
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE

@romani
Copy link
Member Author

romani commented Jan 21, 2020

@muhlba91 , this is bad side effect of jdk update

muhlba91 pushed a commit that referenced this issue Jan 21, 2020
romani pushed a commit that referenced this issue Jan 22, 2020
@romani romani added this to the 4.28 milestone Jan 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant