Skip to content

Allow defining jul helper classes without using temp directory#15682

Merged
trask merged 1 commit intoopen-telemetry:mainfrom
laurit:jul-lookup
Dec 18, 2025
Merged

Allow defining jul helper classes without using temp directory#15682
trask merged 1 commit intoopen-telemetry:mainfrom
laurit:jul-lookup

Conversation

@laurit
Copy link
Copy Markdown
Contributor

@laurit laurit commented Dec 17, 2025

Resolves #15666
On jdk 23+ we don't use unsafe to define classes in boot loader. We can either provide a MethodHandles.Lookup for the desired package or fall back to using Instrumentation.appendToBootstrapClassLoaderSearch. The latter needs to create a temporary jar which won't work when the temp directory isn't writable.

@laurit laurit requested a review from a team as a code owner December 17, 2025 11:45
@trask trask merged commit b0f07db into open-telemetry:main Dec 18, 2025
85 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.

Errors at startup in read-only filesystems environment

3 participants