Re: [Clirr-devel] working towards release 0.4
Status: Alpha
Brought to you by:
lkuehne
From: <lak...@t-...> - 2004-09-03 22:28:07
|
Arghhh - not fixed! On JDK 1.3 something seems to work differently and the unit test fails. So now I have a debugging session I can look forward to tomorrow morning :-) Lars Kühne wrote: > Fixed > > Lars Kühne wrote: > >> public class Example >> { >> private static void method(JComponent comp) >> { >> // yes, it is possible to define a class here... >> class A1 extends MouseAdapter >> { >> } >> comp.addMouseListener(new A1()); >> } >> } >> >> This results in error 1002, which means that ScopeSelector was >> "Unable to find information in class " + >> enclosingClass.getClassName() + " referring back to nested class " + >> jclassName" >> >> The reason is that the compiler mangles the classname for A1 into >> Example$1A1, so the ScopeSelector gets confused by the classname 1A1 >> being different from the constant name A1 in the enclosing class. >> >> Hmmm - I'll try to figure it out tomorrow if nobody beats me to it... > |