Re: java.lang.Class inner class methods

2001-08-03 Thread Eric Blake
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

Re: [Classpath] Re: java.lang.Class inner class methods

2001-08-02 Thread C. Scott Ananian
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

Re: [Classpath] Re: java.lang.Class inner class methods

2001-08-02 Thread Patrick Doyle
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

Re: java.lang.Class inner class methods

2001-08-02 Thread reali
> 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

Re: java.lang.Class inner class methods

2001-08-02 Thread Jochen Hoenicke
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

Re: [Classpath] java.lang.Class inner class methods

2001-08-02 Thread C. Scott Ananian
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

java.lang.Class inner class methods

2001-08-01 Thread Patrick Doyle
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