Skip to content

fix: clarify parent delegation core-class example#2817

Merged
Snailclimb merged 1 commit intoSnailclimb:mainfrom
buyua9:fix/classloader-parent-delegation-buyua9
Apr 8, 2026
Merged

fix: clarify parent delegation core-class example#2817
Snailclimb merged 1 commit intoSnailclimb:mainfrom
buyua9:fix/classloader-parent-delegation-buyua9

Conversation

@buyua9
Copy link
Copy Markdown
Contributor

@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.

@Snailclimb Snailclimb added the perfect content improve the content label Apr 8, 2026
@Snailclimb Snailclimb merged commit ae512a6 into Snailclimb:main Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

perfect content improve the content

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants