<div style="line-height: 1.43; font-family: -apple-system, system-ui; font-size: 14px; color: rgb(0, 0, 0);">As a long-time Java developer, I’ve observed that some internal APIs within java.base provide functionality needed by third-party libraries. However, since these APIs are not exported, libraries only reimplement similar logic, leading to redundant bytecode and increased class-loading overhead. This duplication impacts runtime efficiency and maintenance.</div><div style="line-height: 1.43; font-family: -apple-system, system-ui; font-size: 14px; color: rgb(0, 0, 0);">I propose exporting some <b>non-sensitive</b> APIs from java.base to a public package, provided they:</div><ul data-editing-info="{"applyListStyleFromLevel":true}" style="margin-block: 0px; padding-inline-start: 42px; list-style-type: disc; line-height: 1.43;"><li style="font-family: -apple-system, system-ui; font-size: 14px; color: rgb(0, 0, 0);"><div>Preserve JDK <b>integrity/security</b> (e.g., avoid exposing critical internals).</div></li><li style="font-family: -apple-system, system-ui; font-size: 14px; color: rgb(0, 0, 0);"><div>Some methods annotated with <b>@IntrinsicCandidate</b></div></li></ul><div style="line-height: 1.43; font-family: -apple-system, system-ui; font-size: 14px; color: rgb(0, 0, 0);"><br  /></div><div style="line-height: 1.43; font-family: -apple-system, system-ui; font-size: 14px; color: rgb(0, 0, 0);">Some APIs I consider it is non-sensitive and exports-valuable:</div><ol start="1" data-editing-info="{"applyListStyleFromLevel":true}" style="margin-block: 0px; padding-inline-start: 44px; list-style-type: decimal; line-height: 1.43;"><li style="font-family: -apple-system, system-ui; font-size: 14px; color: rgb(0, 0, 0);"><div style="line-height: 1.43;">class: java.lang.StringCoding</div></li><li style="font-family: -apple-system, system-ui; font-size: 14px; color: rgb(0, 0, 0);"><div style="line-height: 1.43;">method: java.lang.StringLatin1.inflate(byte[], int, char[], int, int)</div></li></ol><div style="line-height: 1.43; font-family: -apple-system, system-ui; font-size: 14px; color: rgb(0, 0, 0);"><br  /></div><div style="line-height: 1.43; font-family: -apple-system, system-ui; font-size: 14px; color: rgb(0, 0, 0);">Expected Benefits:</div><ol start="1" data-editing-info="{"applyListStyleFromLevel":true}" style="margin-block: 0px; padding-inline-start: 44px; list-style-type: decimal; line-height: 1.43;"><li style="font-family: -apple-system, system-ui; font-size: 14px; color: rgb(0, 0, 0);"><div style="line-height: 1.43;">Reduce bytecode duplication → Smaller footprint and fewer loaded classes.</div></li><li style="font-family: -apple-system, system-ui; font-size: 14px; color: rgb(0, 0, 0);"><div>Leverage JDK intrinsics → Better runtime performance.</div></li><li style="font-family: -apple-system, system-ui; font-size: 14px; color: rgb(0, 0, 0);"><div>Simplify library code</div></li></ol><div style="font-family: -apple-system, system-ui; font-size: 14px; color: rgb(0, 0, 0); line-height: 1.43;"><br  /></div><div style="font-family: -apple-system, system-ui; font-size: 14px; color: rgb(0, 0, 0); line-height: 1.43;">Some API could moved to a new package(e.g. java.misc) to export to thrid-party libiaries, and we could consider move some new APIs to this package in the next step of development.</div><div style="font-family: -apple-system, system-ui; font-size: 14px; color: rgb(0, 0, 0); line-height: 1.43;"><br  /></div><div style="font-family: -apple-system, system-ui; font-size: 14px; color: rgb(0, 0, 0); line-height: 1.43;"><i><s>Feel sorry about my bad English</s></i></div><div style="text-align: left; font-family: -apple-system, system-ui; font-size: 14px; color: rgb(0, 0, 0); line-height: 1.43;"><br  /></div><div style="text-align: left; font-family: -apple-system, system-ui; font-size: 14px; color: rgb(0, 0, 0); line-height: 1.43;">Thank you for considering this proposal!</div><div style="text-align: left; font-family: -apple-system, system-ui; font-size: 14px; color: rgb(0, 0, 0); line-height: 1.43;">Best regards,</div><div style="text-align: right; font-family: -apple-system, system-ui; font-size: 14px; color: rgb(0, 0, 0); line-height: 1.43;">OblivRuinDev</div><div style="text-align: right; font-family: -apple-system, system-ui; font-size: 14px; color: rgb(0, 0, 0); line-height: 1.43;">2025.08.02.</div>