Not so. '$' is a legal identifier character, so I can compile a non-inner
class as follows:
class X$Y {}
In order to detect inner classes in the VM (or in a compiler when reading
.class files), you MUST read the attributes, rather than relying on the
naming convention in the inner class specifi
On Thu, 2 Aug 2001 [EMAIL PROTECTED] wrote:
> > Does anyone have a hint as to how the inner class methods of
> > java.lang.Class (getDeclaringClass, getClasses, etc.) would be implemented
> > by a JVM? Don't they depend on how the Java compiler implements inner
> > classes? AFAIK the JVM isn't
On Thu, 2 Aug 2001, C. Scott Ananian wrote:
> On Thu, 2 Aug 2001 [EMAIL PROTECTED] wrote:
>
> > > Does anyone have a hint as to how the inner class methods of
> > > java.lang.Class (getDeclaringClass, getClasses, etc.) would be implemented
> > > by a JVM? Don't they depend on how the Java compi
> Does anyone have a hint as to how the inner class methods of
> java.lang.Class (getDeclaringClass, getClasses, etc.) would be implemented
> by a JVM? Don't they depend on how the Java compiler implements inner
> classes? AFAIK the JVM isn't aware of inner classes at all.
The inner class "Y" o
Hello,
On Aug 1, Patrick Doyle wrote:
> Does anyone have a hint as to how the inner class methods of
> java.lang.Class (getDeclaringClass, getClasses, etc.) would be implemented
> by a JVM? Don't they depend on how the Java compiler implements inner
> classes? AFAIK the JVM isn't aware of inner
On Wed, 1 Aug 2001, Patrick Doyle wrote:
> Does anyone have a hint as to how the inner class methods of
> java.lang.Class (getDeclaringClass, getClasses, etc.) would be implemented
> by a JVM? Don't they depend on how the Java compiler implements inner
> classes? AFAIK the JVM isn't aware of in
Does anyone have a hint as to how the inner class methods of
java.lang.Class (getDeclaringClass, getClasses, etc.) would be implemented
by a JVM? Don't they depend on how the Java compiler implements inner
classes? AFAIK the JVM isn't aware of inner classes at all.
--
Patrick Doyle
[EMAIL PROT
7 matches
Mail list logo