| An incorrectly specified nested type??? [message #53476] | 
Thu, 29 May 2003 05:18   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Hello, 
could someone help me, please? 
I am going to develop my old project in Eclipse. But, some of my java files 
contains construction like this: 
 
public class SomeClass { 
    ... 
    public static class A extends com.package.className$A { 
    } 
} 
 
Eclipse throws an error Superclass com.package.className$A is an incorrectly 
specified nested type; replace the '$' with '.'. 
 
I do not have any problem when project is compiled with javac.exe or 
JBuilder. 
Is there some other help than replace "$? with "."? 
 
Thank you. 
 
Leo.
 |  
 |  
  | 
 | 
| Re: An incorrectly specified nested type??? [message #53952 is a reply to message #53870] | 
Thu, 29 May 2003 10:11   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Thank you Rafael, 
 
the "A" in "className$A" is an inner static class so replacing the "$" will 
definitely help. 
But, there is a question if Eclipse should accept allowed notation. 
The most important conclusion is that there is a way how to resolve this 
little freckle :-) on my migration (simply replace). 
 
Best regards, 
Leo. 
 
<chaves@inf.ufsc.br_no-spam> wrote in message 
news:bb4ucb$roc$1@rogue.oti.com... 
> Is that class an inner class A inside className or a normal class called 
> className$A? 
> 
> If the first is true, you shouldn't be using that notation to refer to it. 
> com.package.className.A (if A is a static inner class) would be the right 
> way (even if some compiler accept com.package.className$A). 
> 
> But if the second is true, it would be a bug in the JDT compiler (because 
> $s are valid characters in Java identifiers). 
> 
> Rafael
 |  
 |  
  | 
Powered by 
FUDForum. Page generated in 0.03861 seconds