japitools-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Japi] Re: java.awt.font.TextLine.TextLineMetrics in JDK1.2


From: Jeroen Frijters
Subject: RE: [Japi] Re: java.awt.font.TextLine.TextLineMetrics in JDK1.2
Date: Wed, 29 Nov 2006 16:10:17 +0100

Stuart Ballard wrote:
> On 11/29/06, Stuart Ballard <address@hidden> wrote:
> > So now my best guess is that for some reason ClassFile isn't
> > recognizing TextLine as TextLineMetrics's containing class. 
> I'm going
> > to write a little test program to verify this but I just thought I'd
> > give a heads up.
> 
> A test program confirms that
> ClassFile.forName("java.awt.font.TextLine$TextLineMetrics").ge
> tContainingWrapper()
> returns null when pointing to JDK1.2's rt.jar.
> 
> Jeroen, could you take a look at this? I'm fairly sure JDK1.2 can be
> downloaded from Sun's "archived releases" page or whatever they call
> it, if you don't have it.

getContainingWrapper only returns something for non-static inner classes
(this is by design, because it was designed for use by the generics
support, not for inner classes.)

I guess this means that I should add a method to ClassFile that returns
the declaring class?

Regards,
Jeroen




reply via email to

[Prev in Thread] Current Thread [Next in Thread]