[jbosstools-issues] [JBoss JIRA] (JBIDE-26336) Upgrade jacoco version to 0.8.2+ to be compatible with Java 11

Ondrej Dockal (Jira) issues at jboss.org
Tue Feb 26 11:02:01 EST 2019


     [ https://issues.jboss.org/browse/JBIDE-26336?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ondrej Dockal closed JBIDE-26336.
---------------------------------


> Upgrade jacoco version to 0.8.2+ to be compatible with Java 11
> --------------------------------------------------------------
>
>                 Key: JBIDE-26336
>                 URL: https://issues.jboss.org/browse/JBIDE-26336
>             Project: Tools (JBoss Tools)
>          Issue Type: Task
>          Components: build
>    Affects Versions: 4.9.0.AM3
>            Reporter: Aurélien Pupier
>            Assignee: Aurélien Pupier
>            Priority: Major
>             Fix For: 4.9.0.Final
>
>
> https://github.com/jacoco/jacoco/releases/tag/v0.8.2
> {quote}Experimental support for Java 11 and Java 12 class files, including JEP 12 "preview features" (GitHub #719, #738, #743).{quote}
> for now for SAp Tooling, I got 
> {noformat}
> 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
> {noformat}



--
This message was sent by Atlassian Jira
(v7.12.1#712002)



More information about the jbosstools-issues mailing list