GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Exclude the ProcessHandle stub from Surefire in common and buffer by franz1981 · Pull Request #17949 · netty/netty

Conversation

@franz1981

@franz1981 franz1981 commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Motivation:

#17873 added a java.lang.ProcessHandle stub to netty-varhandle-stub and
excluded it from the Surefire classpath only in transport. common and buffer
also depend on the stub, so on Java 8 their forked test JVM fails to start
with "SecurityException: Prohibited package name: java.lang".

Modifications:

Exclude netty-varhandle-stub from the Surefire classpath of common and buffer,
as transport does.

Result:

The tests of common and buffer run on Java 8 again.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@franz1981
Exclude the ProcessHandle stub from Surefire in common and buffer
93fbe06
Motivation:

netty#17873 added a java.lang.ProcessHandle stub to netty-varhandle-stub and
excluded it from the Surefire classpath only in transport. common and buffer
also depend on the stub, so on Java 8 their forked test JVM fails to start
with "SecurityException: Prohibited package name: java.lang".

Modifications:

Exclude netty-varhandle-stub from the Surefire classpath of common and buffer,
as transport does.

Result:

The tests of common and buffer run on Java 8 again.
@franz1981
franz1981 requested review from chrisvest and normanmaurer October 20, 2026 14:05
@franz1981
franz1981 force-pushed the 4.2_varhandle_stub_surefire branch from ce16619 to 93fbe06 Compare October 20, 2026 14:05
@franz1981
franz1981 requested a balanced review from Copilot October 20, 2026 14:15
Copilot started reviewing on behalf of franz1981 October 20, 2026 14:20
View session
Copilot AI reviewed Oct 20, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

🟢 Approval recommended

Both narrowly scoped exclusions follow the existing transport configuration, with no blocking issues identified.

No open issues 🎉

What changed in this PR

Restores Java 8 test startup in common and buffer by keeping the compile-time ProcessHandle stub out of Surefire’s runtime classpath.

Changes:

  • Excludes netty-varhandle-stub from Surefire in both modules, matching transport’s configuration.
  • Preserves the dependency for compilation.
File Description
common/​pom.xml Adds the Surefire stub exclusion for common tests.
buffer/​pom.xml Adds the Surefire stub exclusion for buffer tests.

Review effort: Balanced

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@normanmaurer normanmaurer added this to the 4.2.20.Final milestone Oct 20, 2026
@testlens-app

testlens-app Bot commented Oct 20, 2026

Copy link
Copy Markdown

✅ All tests passed ✅

🏷️ Commit: 93fbe06
▶️ Tests: 151200 executed
⚪️ Checks: 26/26 completed


Learn more about TestLens at testlens.app/docs.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@normanmaurer
normanmaurer merged commit 154e87c into netty:4.2 Oct 20, 2026
27 checks passed

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@chrisvest chrisvest Awaiting requested review from chrisvest
@normanmaurer normanmaurer Awaiting requested review from normanmaurer

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

4.2.20.Final

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@franz1981 @normanmaurer
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.