Skip to content

feat(core): Adds a module opener to support Java 9+ environments#1813

Open
xzhaoxz wants to merge 1 commit intosermant-io:developfrom
DobestTech:develop
Open

feat(core): Adds a module opener to support Java 9+ environments#1813
xzhaoxz wants to merge 1 commit intosermant-io:developfrom
DobestTech:develop

Conversation

@xzhaoxz
Copy link

@xzhaoxz xzhaoxz commented Jan 14, 2026

  • Added the ModuleOpener class to open the necessary module access in the Java 9+ environment
  • Implement unified management of module open permissions through the Instrumentation API
  • Configure access to java.net and sun.net packages in the java.base module
  • Automatically call the module opening function when the agent starts to ensure that the plugin works properly
  • Upgraded Byte Buddy version from 1.12.19 to 1.14.3 to improve compatibility
  • Added detailed logging and exception handling mechanisms

What type of PR is this?

Feature/Bug/Refactor etc.

What this PR does / why we need it?

Describe it.

Which issue(s) this PR fixes?

Fixes #

Does this PR introduce a user-facing change?

No

Checklist

  • Make sure there is a GitHub_issue related with this PR before you start working on it.
  • Make sure you have squashed your change to one single commit.
  • GitHub Actions works fine in this PR.

- Added the ModuleOpener class to open the necessary module access in the Java 9+ environment
- Implement unified management of module open permissions through the Instrumentation API
- Configure access to java.net and sun.net packages in the java.base module
- Automatically call the module opening function when the agent starts to ensure that the plugin works properly
- Upgraded Byte Buddy version from 1.12.19 to 1.14.3 to improve compatibility
- Added detailed logging and exception handling mechanisms
@codecov
Copy link

codecov bot commented Jan 14, 2026

Codecov Report

❌ Patch coverage is 0% with 90 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
.../main/java/io/sermant/core/utils/ModuleOpener.java 0.00% 89 Missing ⚠️
...c/main/java/io/sermant/core/AgentCoreEntrance.java 0.00% 1 Missing ⚠️
Flag Coverage Δ Complexity Δ
unittests 27.52% <0.00%> (-0.11%) 375.00 <0.00> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ Complexity Δ
...c/main/java/io/sermant/core/AgentCoreEntrance.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
.../main/java/io/sermant/core/utils/ModuleOpener.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)

... and 3 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

1 participant