Skip to content

fix: clarify parent delegation core-class example#2817

Open
buyua9 wants to merge 1 commit intoSnailclimb:mainfrom
buyua9:fix/classloader-parent-delegation-buyua9
Open

fix: clarify parent delegation core-class example#2817
buyua9 wants to merge 1 commit intoSnailclimb:mainfrom
buyua9:fix/classloader-parent-delegation-buyua9

Conversation

@buyua9
Copy link
Copy Markdown

@buyua9 buyua9 commented Apr 7, 2026

Clarify the class loader example in the parent delegation section.

The previous wording implied java.lang.Object is loaded through the normal delegation path all the way to a bootstrap lookup. This update makes the security boundary explicit: core classes are prioritized by BootstrapClassLoader, but ClassLoader#preDefineClass still rejects user-defined java.* classes, so the example no longer suggests that a custom loader can forge core classes.

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