ClassLoader API to look up class files
Eirik Bjørsnøs
eirbjo at gmail.com
Sun Sep 22 15:42:01 UTC 2024
On Sun, Sep 22, 2024 at 12:14 PM Alan Bateman <alan.bateman at oracle.com>
wrote:
> On 21/09/2024 22:14, Rafael Winterhalter wrote:
> > Hello,
> > It is a quite common need for Java agents to resolve class files for
> > Java classes by their name. Normally, this is done by requesting a
> > resource from the class loader.
>
> I agree that the scalability issue with MR JARs deserves attention. JEP
> 238 pre-dates the 6 month cadence where we now add two additional
> versions to search each year.
Alan,
JarFile.getVersionedEntry no longer searches the full historical version
range, but only tries the specific versions actually present in the JAR
file. So this probably isn't as bad as it sounds, assuming most
multi-release JARs only have entries for a low number of versions.
See https://bugs.openjdk.org/browse/JDK-8242596
Eirik.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20240922/29bf63f0/attachment.htm>
More information about the core-libs-dev
mailing list