No enclosing instance of type ChatServer is accessible. Must qualify the allocation with an enclosing instance of type ChatServer (e.g. x.new A() where x is an instance of ChatServer).
这是静态方法使用动态内部类的错误,要将调用内部类的语句写到一个新的方法中,再new一个自己的类,再调用新方法。
No enclosing instance of type ChatServer is accessible. Must qualify the allocation with an enclosing instance of type ChatServer (e.g. x.new A() where x is an instance of ChatServer).
这是静态方法使用动态内部类的错误,要将调用内部类的语句写到一个新的方法中,再new一个自己的类,再调用新方法。