Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-26336

Upgrade jacoco version to 0.8.2+ to be compatible with Java 11

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.9.0.AM3
    • Fix Version/s: 4.9.0.Final
    • Component/s: build
    • Labels:
      None

      Description

      https://github.com/jacoco/jacoco/releases/tag/v0.8.2

      Experimental support for Java 11 and Java 12 class files, including JEP 12 "preview features" (GitHub #719, #738, #743).

      for now for SAp Tooling, I got

      09:37:54 Exception in thread "main" java.lang.reflect.InvocationTargetException
      09:37:54 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      09:37:54 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      09:37:54 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      09:37:54 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      09:37:54 	at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:513)
      09:37:54 	at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:525)
      09:37:54 Caused by: java.lang.RuntimeException: Class java/lang/UnknownError could not be instrumented.
      09:37:54 	at org.jacoco.agent.rt.internal_c13123e.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:140)
      09:37:54 	at org.jacoco.agent.rt.internal_c13123e.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:101)
      09:37:54 	at org.jacoco.agent.rt.internal_c13123e.PreMain.createRuntime(PreMain.java:55)
      09:37:54 	at org.jacoco.agent.rt.internal_c13123e.PreMain.premain(PreMain.java:47)
      09:37:54 	... 6 more
      09:37:54 Caused by: java.lang.NoSuchFieldException: $jacocoAccess
      09:37:54 	at java.base/java.lang.Class.getField(Class.java:2000)
      09:37:54 	at org.jacoco.agent.rt.internal_c13123e.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:138)
      09:37:54 	... 9 more
      09:37:54 FATAL ERROR in native method: processing of -javaagent failed
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  aurelien.pupier Aurélien Pupier
                  Reporter:
                  aurelien.pupier Aurélien Pupier
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: