question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does this library work with JVM 11, 17, etc? For example, with corretto-17.0.3 and stacktrace-decoroutinator-jvm:2.2.1 I get

Exception in thread "main" java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.findLoadedClass(java.lang.String) accessible: module java.base does not "opens java.lang" to unnamed module @1c20c684
	at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
	at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
	at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)
	at java.base/java.lang.reflect.Method.setAccessible(Method.java:193)
	at dev.reformator.stacktracedecoroutinator.utils.Utils_jvmKt.getClassIfLoaded(utils-jvm.kt:11)
	at dev.reformator.stacktracedecoroutinator.runtime.DecoroutinatorRuntime.getState(runtime-jvm.kt:42)
	at dev.reformator.stacktracedecoroutinator.runtime.DecoroutinatorRuntime.load(runtime-jvm.kt:52)
	at dev.reformator.stacktracedecoroutinator.runtime.DecoroutinatorRuntime.load$default(runtime-jvm.kt:51)
	at MainKt.main(Main.kt:14)
	at MainKt.main(Main.kt)

when I launch the example from README. With 1.8 it works fine.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ov7acommented, May 19, 2022

Awesome, thanks!

1reaction
Anamorphoseecommented, May 19, 2022

I’m agree with you that just existence of the dependency shouldn’t change the app behaviour. It will be fixed in #8.

Read more comments on GitHub >

github_iconTop Results From Across the Web

JDK 11 Release Notes, Important Changes, and Information
In Java SE 11, the Java Virtual Machine supports the arrangement of classes and interfaces into a new access control context, called a...
Read more >
Java™ 11 Support - Eclipse
Eclipse support for Java™ 11, Java™ 11 is here, and JDT supports it completely. The Eclipse compiler for Java (ECJ) implements the new...
Read more >
Java/OpenJDK - endoflife.date
Release Released Active Support 19 2 months and 4 weeks ago. (20 Sep 2022) Ends in 3 months. (21 Mar 2023) 18 9 months ago....
Read more >
Apache Flink 1.10 Documentation: Release Notes
Java 11 Support (FLINK-10725). Beginning from this release, Flink can be compiled and run with Java 11. All Java 8 artifacts can be...
Read more >
Compatibility Matrix - Gradle User Manual
Table 1. Java Compatibility. Java version. First Gradle version to support it. 8. 2.0. 9. 4.3. 10. 4.7. 11. 5.0. 12. 5.4. 13....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found