Skip to content

Skip burningwave initialization in JDK26#19

Merged
daniel-mohedano merged 2 commits intomasterfrom
daniel.mohedano/jdk26-burningwave
Apr 1, 2026
Merged

Skip burningwave initialization in JDK26#19
daniel-mohedano merged 2 commits intomasterfrom
daniel.mohedano/jdk26-burningwave

Conversation

@daniel-mohedano
Copy link
Copy Markdown
Contributor

@daniel-mohedano daniel-mohedano commented Mar 31, 2026

What Does This Do

  • Skips the initialization of burningwave in JDK26, which will fail. Although the issue has been solved on the agent side, it still logs the following stacktrace:
io.github.toolfactory.jvm.Driver$InitializeException: Could not initialize DynamicDriver
	at io.github.toolfactory.jvm.DriverAbst.refresh(DriverAbst.java:257)
	at io.github.toolfactory.jvm.DriverAbst.getDeclaredFields(DriverAbst.java:1057)
	at org.burningwave.core.jvm.BufferHandler.init(BufferHandler.java:98)
	at org.burningwave.core.jvm.BufferHandler.<init>(BufferHandler.java:88)
	at org.burningwave.core.jvm.BufferHandler.create(BufferHandler.java:164)
	at org.burningwave.core.assembler.StaticComponentContainer.<clinit>(StaticComponentContainer.java:374)
	at datadog.compiler.CompilerModuleOpener.setup(CompilerModuleOpener.java:24)
	at datadog.compiler.DatadogCompilerPlugin.<clinit>(DatadogCompilerPlugin.java:16)
    ...
Caused by: io.github.toolfactory.jvm.util.ObjectProvider$BuildingException: Exception occurred while retrieving the implementation of class io.github.toolfactory.jvm.function.catalog.GetClassByNameFunction (jvm architecture: x64, jvm version: 26, jvm vendor: Amazon.com Inc.)
	at io.github.toolfactory.jvm.util.ObjectProvider.getOrBuildObject(ObjectProvider.java:95)
	at io.github.toolfactory.jvm.DriverAbst.getOrBuildClassByNameRetriever(DriverAbst.java:430)
	at io.github.toolfactory.jvm.DriverAbst.refresh(DriverAbst.java:226)
	... 53 more
Caused by: java.lang.reflect.InvocationTargetException
	at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:74)
	at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:483)
	at io.github.toolfactory.jvm.util.ObjectProvider.getOrBuildObjectInternal(ObjectProvider.java:144)
	at io.github.toolfactory.jvm.util.ObjectProvider.getOrBuildObject(ObjectProvider.java:92)
	... 55 more
Caused by: java.lang.NoSuchMethodException: no such method: java.lang.Class.forName0(String,boolean,ClassLoader,Class)Class/invokeStatic
	at java.base/java.lang.invoke.MemberName.makeAccessException(MemberName.java:910)
	at java.base/java.lang.invoke.MemberName$Factory.resolveOrFail(MemberName.java:989)
	at java.base/java.lang.invoke.MethodHandles$Lookup.resolveOrFail(MethodHandles.java:3599)
	at java.base/java.lang.invoke.MethodHandles$Lookup.findStatic(MethodHandles.java:2522)
	at io.github.toolfactory.jvm.function.catalog.GetClassByNameFunction$ForJava7.retrieveClassFinder(GetClassByNameFunction.java:62)
	at io.github.toolfactory.jvm.function.catalog.GetClassByNameFunction$Abst.<init>(GetClassByNameFunction.java:45)
	at io.github.toolfactory.jvm.function.catalog.GetClassByNameFunction$ForJava7.<init>(GetClassByNameFunction.java:55)
	at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62)
	... 59 more
Caused by: java.lang.NoSuchMethodError: method resolution failed
	at java.base/java.lang.invoke.MethodHandleNatives.resolve(Native Method)
	at java.base/java.lang.invoke.MemberName$Factory.resolve(MemberName.java:957)
	at java.base/java.lang.invoke.MemberName$Factory.resolveOrFail(MemberName.java:986)

This is caused by org.burningwave.core.assembler.StaticComponentContainer.<clinit>

Motivation

Reported in DataDog/dd-trace-java#10921

Additional Notes

Tested locally together with JDK26 and the stacktrace is no longer logged.

@daniel-mohedano daniel-mohedano marked this pull request as ready for review March 31, 2026 12:35
@daniel-mohedano daniel-mohedano requested a review from a team as a code owner March 31, 2026 12:35
@daniel-mohedano daniel-mohedano merged commit bd1d6ee into master Apr 1, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants