Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Update jacoco version#650

Open
StefRe wants to merge 1 commit intoopacapp:masterfrom
StefRe:fix/jacoco
Open

Update jacoco version#650
StefRe wants to merge 1 commit intoopacapp:masterfrom
StefRe:fix/jacoco

Conversation

@StefRe
Copy link
Contributor

@StefRe StefRe commented May 16, 2022

to be able to run the tests under JDK11 / Android Studio 2021.

to be able to run the tests under JDK11 / Android Studio 2021.
@StefRe
Copy link
Contributor Author

StefRe commented May 16, 2022

Hm, I just saw that I can run the libopac tests now, but the opacapp tests still fail with:

> Task :opacapp:testFossDebugUnitTest
Exception in thread "main" java.lang.reflect.InvocationTargetException
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:513)
	at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:525)
Caused by: java.lang.RuntimeException: Class java/util/UUID could not be instrumented.
	at org.jacoco.agent.rt.internal_773e439.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:139)
	at org.jacoco.agent.rt.internal_773e439.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:100)
	at org.jacoco.agent.rt.internal_773e439.PreMain.createRuntime(PreMain.java:55)
	at org.jacoco.agent.rt.internal_773e439.PreMain.premain(PreMain.java:47)
	... 6 more
Caused by: java.lang.NoSuchFieldException: $jacocoAccess
	at java.base/java.lang.Class.getField(Class.java:1999)
	at org.jacoco.agent.rt.internal_773e439.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:137)
	... 9 more
*** java.lang.instrument ASSERTION FAILED ***: "result" with message agent load/premain call failed at ./src/java.instrument/share/native/libinstrument/JPLISAgent.c line: 422
FATAL ERROR in native method: processing of -javaagent failed, processJavaStart failed

etc.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant