North D wrote:

>> I just wrote a class that implements an inner interface:
>> 
>> public class Debug implements Debug.MessageType {
>>     ...
>>     public static interface MessageType {
>>         ...
>>     }
>> }
>
>Hi Jonas.
>
>I'm stuck in an infinite recursion trying to work out how this twisted piece
>of code is supposed to work!  My brain just imploded on itself trying to
>figure out what you're doing.
>
Well, mainly I just wanted to test whether it was allowed or not, 
without having to go to the Java Language Specification... :-)

In theory it *might* be allowed, since the interface itself has no 
dependencies on the outer class other than being in its namespace.  It 
is a static interface, it just happens to be named "Debug.MessageType" 
rather than "MessageType".  The Debug class could implement this 
interface just like it could implement any other interface.

The interface itself was just going to contain a few final static constants.



_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list

Reply via email to