static/inner classes

I recently came across the following compile error:

"inner classes cannot have static declarations"

AKA

class X

{

private class Y

{

private static int x;

}

}

There's quick and easy ways around this for me but I was wondering why from a technical standpoint this is disallowed in Java. Also, if you could point me to the language specification on this topic, that would also be helpful.

Thanks

[466 byte] By [silversturm] at [2007-9-27 16:47:26]
# 1
Here's the link to it: http://java.sun.com/docs/books/jls/second_edition/html/classes.doc.html#262890
Ceranith at 2007-7-6 1:05:28 > top of Java-index,Core,Core APIs...
# 2
http://forum.java.sun.com/thread.jsp?forum=4&thread=284854 http://forum.java.sun.com/thread.jsp?forum=4&thread=285951
jplarose at 2007-7-6 1:05:28 > top of Java-index,Core,Core APIs...