Skip to content

Fix java warnings#6936

Merged
omichel merged 12 commits intomasterfrom
fix-java-compilation-warning-with-recent-versions-of-jdk
Feb 15, 2026
Merged

Fix java warnings#6936
omichel merged 12 commits intomasterfrom
fix-java-compilation-warning-with-recent-versions-of-jdk

Conversation

@omichel
Copy link
Member

@omichel omichel commented Feb 13, 2026

Fixes warnings showing up with recent versions of Java, both at compilation (deprecation warning) and runtime.

I also updated the wiki for installing the OpenJdk on Windows.

This PR also cleans-up some obsolete file (atom related file), add an example bash command for launching VSCodium on Windows, and add a gitignore entry for the .claude folder, which is commonly used.

@omichel omichel marked this pull request as ready for review February 13, 2026 10:53
@omichel omichel requested a review from a team as a code owner February 13, 2026 10:53
Copilot AI review requested due to automatic review settings February 13, 2026 10:53
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes Java-related warnings that appear with recent Java versions, updates example configuration for Windows development environment, and removes obsolete Atom editor configuration.

Changes:

  • Replaced deprecated new Long() constructors with Long.valueOf() to eliminate Java compilation warnings
  • Added --enable-native-access=ALL-UNNAMED JVM argument to suppress runtime warnings in Java 22+
  • Updated example Python and Java paths in Windows bash profile to reflect newer versions

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/webots/control/WbLanguageTools.cpp Refactored javaArguments() to return consolidated list and added --enable-native-access flag
src/controller/java/controller.i Replaced deprecated Long constructor with Long.valueOf() in Field, Node, and Proto classes
scripts/install/bash_profile.windows Updated example Python/Java paths and added VSCodium launcher function
docs/reference/changelog-r2025.md Added changelog entry for Java warning fixes
.gitignore Added .claude folder to gitignore
.atom-build.json Removed obsolete Atom editor build configuration

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

omichel and others added 3 commits February 13, 2026 13:22
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…k' of https://github.com/cyberbotics/webots into fix-java-compilation-warning-with-recent-versions-of-jdk
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 7 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

omichel and others added 2 commits February 13, 2026 13:37
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
omichel and others added 4 commits February 14, 2026 10:24
Co-authored-by: CoolSpy3 <55305038+CoolSpy3@users.noreply.github.com>
Co-authored-by: CoolSpy3 <55305038+CoolSpy3@users.noreply.github.com>
…k' of https://github.com/cyberbotics/webots into fix-java-compilation-warning-with-recent-versions-of-jdk
@omichel omichel requested a review from CoolSpy3 February 14, 2026 09:39
Copy link
Contributor

@CoolSpy3 CoolSpy3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@omichel omichel merged commit 928cab7 into master Feb 15, 2026
20 checks passed
@omichel omichel deleted the fix-java-compilation-warning-with-recent-versions-of-jdk branch February 15, 2026 07:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants