Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@slawekjaranowski
Copy link
Member

Default Guice class loading uses a terminally deprecated JDK memory-access classes.

Fix #10312

@slawekjaranowski slawekjaranowski self-assigned this Jul 23, 2025
…methods

Default Guice class loading uses a terminally deprecated JDK memory-access classes.

Fix apache#10312
@slawekjaranowski slawekjaranowski added the bug Something isn't working label Jul 25, 2025
@slawekjaranowski slawekjaranowski merged commit 335baf5 into apache:master Jul 25, 2025
37 of 38 checks passed
@slawekjaranowski slawekjaranowski deleted the gh-10312 branch July 25, 2025 12:12
@github-actions github-actions bot added this to the 4.1.0 milestone Jul 25, 2025
@kelunik
Copy link

kelunik commented Aug 8, 2025

This has been added to the 4.1.0 milestone, but will this also be included in the 3.x series?

@linghengqian
Copy link
Member

This has been added to the 4.1.0 milestone, but will this also be included in the 3.x series?

rpx99 pushed a commit to rpx99/eclipse.jdt.ls that referenced this pull request Nov 12, 2025
Add -Dguice_custom_class_loading=CHILD to avoid sun.misc.Unsafe
warnings on Java 21+. This prevents "terminally deprecated method"
warnings from Guice 5.1.0's HiddenClassDefiner.

Changes:
- Add flag to all Eclipse launch configurations
- Add flag to tycho-surefire test configuration
- Update README with Java 21+ compatibility section
- Document flag in command-line example

Based on Maven fix: apache/maven#10992
Resolves sun.misc.Unsafe::staticFieldBase deprecation warnings
rpx99 pushed a commit to rpx99/eclipse.jdt.ls that referenced this pull request Nov 14, 2025
Add -Dguice_custom_class_loading=CHILD to avoid sun.misc.Unsafe
warnings on Java 21+. This prevents "terminally deprecated method"
warnings from Guice 5.1.0's HiddenClassDefiner.

Changes:
- Add flag to all Eclipse launch configurations
- Add flag to tycho-surefire test configuration
- Update README with Java 21+ compatibility section
- Document flag in command-line example

Based on Maven fix: apache/maven#10992
Resolves sun.misc.Unsafe::staticFieldBase deprecation warnings
rpx99 pushed a commit to rpx99/eclipse.jdt.ls that referenced this pull request Nov 14, 2025
Add -Dguice_custom_class_loading=CHILD to avoid sun.misc.Unsafe
warnings on Java 21+. This prevents "terminally deprecated method"
warnings from Guice 5.1.0's HiddenClassDefiner.

Changes:
- Add flag to Eclipse launch configurations (3 files)
- Add flag to product definitions (languageServer, syntaxServer)
- Add flag to tycho-surefire test configuration

Based on Maven fix: apache/maven#10992
Resolves sun.misc.Unsafe::staticFieldBase deprecation warnings
rpx99 added a commit to rpx99/eclipse.jdt.ls that referenced this pull request Nov 14, 2025
Add -Dguice_custom_class_loading=CHILD to avoid sun.misc.Unsafe
warnings on Java 21+. This prevents "terminally deprecated method"
warnings from Guice 5.1.0's HiddenClassDefiner.

Changes:
- Add flag to Eclipse launch configurations (3 files)
- Add flag to product definitions (languageServer, syntaxServer)
- Add flag to tycho-surefire test configuration

Based on Maven fix: apache/maven#10992
Resolves sun.misc.Unsafe::staticFieldBase deprecation warnings
rpx99 added a commit to rpx99/eclipse.jdt.ls that referenced this pull request Nov 14, 2025
Add -Dguice_custom_class_loading=CHILD to avoid sun.misc.Unsafe
warnings on Java 21+. This prevents "terminally deprecated method"
warnings from Guice 5.1.0's HiddenClassDefiner.

Changes:
- Add flag to Eclipse launch configurations (3 files)
- Add flag to product definitions (languageServer, syntaxServer)
- Add flag to tycho-surefire test configuration

Based on Maven fix: apache/maven#10992
Resolves sun.misc.Unsafe::staticFieldBase deprecation warnings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[MNG-8760] WARNING: A terminally deprecated method in sun.misc.Unsafe has been called - staticFieldBase in guice

4 participants