Y
Yao Qi
I tried the option -verbose:class to JVM, and I am little confused by
the output.
IMO, -verbose:class will tell us what classes are loaded by JVM,
however, in the output, we find some arrays, such as,
class load: java/lang/Object
....
class load: java/io/ObjectStreamField[]
class load: java/lang/Class[]
class load: java/lang/Object[]
....
class load: java/lang/Thread[]
class load: java/lang/ThreadGroup[]
class load: java/lang/ThreadGroup$ChildrenGroupsLock
class load: java/lang/ThreadGroup$ChildrenThreadsLock
class load: java/lang/Thread$ThreadLock
class load: java/security/cert/Certificate
class load: java/security/cert/Certificate[]
class load: java/lang/System
Does this mean java.lang.Object and java.lang.Object[] are different
class? I try to use Class.forName("java.lang.Object[]") to verify my
idea, but I find that there is no such class.
Any thought on this? I get the result on IBM JDK.
--
Yao Qi <[email protected]> GNU/Linux Developer
http://duewayqi.googlepages.com/
"Of course, in Perl culture, almost nothis is prohibited. My feeling is that the rest of the world already has plenty of perfectly good prohibitions, so why invent more?"
-- Larry Wall (Open Sources, 1999 O'Reilly and Associates)
the output.
IMO, -verbose:class will tell us what classes are loaded by JVM,
however, in the output, we find some arrays, such as,
class load: java/lang/Object
....
class load: java/io/ObjectStreamField[]
class load: java/lang/Class[]
class load: java/lang/Object[]
....
class load: java/lang/Thread[]
class load: java/lang/ThreadGroup[]
class load: java/lang/ThreadGroup$ChildrenGroupsLock
class load: java/lang/ThreadGroup$ChildrenThreadsLock
class load: java/lang/Thread$ThreadLock
class load: java/security/cert/Certificate
class load: java/security/cert/Certificate[]
class load: java/lang/System
Does this mean java.lang.Object and java.lang.Object[] are different
class? I try to use Class.forName("java.lang.Object[]") to verify my
idea, but I find that there is no such class.
Any thought on this? I get the result on IBM JDK.
--
Yao Qi <[email protected]> GNU/Linux Developer
http://duewayqi.googlepages.com/
"Of course, in Perl culture, almost nothis is prohibited. My feeling is that the rest of the world already has plenty of perfectly good prohibitions, so why invent more?"
-- Larry Wall (Open Sources, 1999 O'Reilly and Associates)