Skip to content

[Hotspot] Restore superclass validation during class loading in CVM - #181

Merged
luchsh merged 1 commit into
jdk17u-target8from
upstream/bugfix/remove-unnecessary-cvm-macro-for-classloadverify
Oct 8, 2026
Merged

luchsh merged 1 commit into
jdk17u-target8from
upstream/bugfix/remove-unnecessary-cvm-macro-for-classloadverify

Conversation

@superajun-wsj

Copy link
Copy Markdown
Collaborator

No description provided.

@superajun-wsj
superajun-wsj force-pushed the upstream/bugfix/remove-unnecessary-cvm-macro-for-classloadverify branch from 057a3b5 to 24daa5c Compare September 29, 2026 07:17
@superajun-wsj
superajun-wsj requested review from luchsh and a balanced review from Copilot September 29, 2026 08:35

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The focused implementation correctly restores validation and includes an appropriate regression test.

Review effort: Balanced
Findings: None

What changed in this PR

Restores superclass accessibility validation for CVM’s JDK 8 class library.

Changes:

  • Enables superclass access checks for all class-library targets.
  • Adds a split-class-loader regression test.
File Description
src/​hotspot/​share/​classfile/​classFileParser.cpp Removes the JDK 9+ guard.
cvm/​test/​hotspot/​runtime/​classFileParser/​SuperclassAccessCheckTest.java Verifies inaccessible superclass rejection.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@superajun-wsj
superajun-wsj force-pushed the upstream/bugfix/remove-unnecessary-cvm-macro-for-classloadverify branch from 24daa5c to ac12a70 Compare September 29, 2026 13:19
@luchsh
luchsh merged commit 0352448 into jdk17u-target8 Oct 8, 2026
29 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.

3 participants