Classpath mode class loading question

Mandy Chung mandy.chung at oracle.com
Wed Jun 13 13:51:29 PDT 2012


On 6/13/2012 12:51 PM, Sean Mullan wrote:
> In classpath mode, I need to find out if a class has been loaded from the system
> library, as opposed to from the CLASSPATH. Is there an easy way to find that out?

Would the classloader be adequate for your use (null vs non-null)?  A 
class on CLASSPATH is loaded by the system class loader.    What do you 
want to do with this check?

Just to be clear: The current prototype puts all modules in the 
bootclasspath in classpath mode as a temporary hack.  Karen and I are 
working on the classpath mode support to replace the -Xbootclasspath hack.

Mandy

> It's probably a simple question for someone, so thought I would ask it while I
> continue experimenting with different solutions.
>
> Thanks,
> Sean



More information about the jigsaw-dev mailing list