query: How to fix error: "class, interface, or enum expected" when defining a Map outside of a class?
positive_passages.docid: 29046
positive_passages.text: How can I initialise a static Map?
negative_passages.docid: 7330
negative_passages.text: Java - No enclosing instance of type Foo is accessible
negative_passages.docid: 144423
negative_passages.text: "No enclosing instance of type" error while calling method from another class in Android
negative_passages.docid: 28797
negative_passages.text: "Unknown class  in Interface Builder file" error at runtime
negative_passages.docid: 11025
negative_passages.text: What is wrong with this C++ map?
negative_passages.docid: 138775
negative_passages.text: Map not loading when using getLegend and showing error for getView()
negative_passages.docid: 66307
negative_passages.text: A field initializer cannot reference the nonstatic field, method, or property
negative_passages.docid: 118366
negative_passages.text: Invalid token 'while' in class, struct, or interface member declaration in very simple code
negative_passages.docid: 6292
negative_passages.text: What is an undefined reference/unresolved external symbol error and how do I fix it?
negative_passages.docid: 98099
negative_passages.text: How to include inner class/wrapper class in test method?
negative_passages.docid: 60308
negative_passages.text: Anyone know a good workaround for the lack of an enum generic constraint?
negative_passages.docid: 3889
negative_passages.text: Why am I getting a NoClassDefFoundError in Java?
negative_passages.docid: 127599
negative_passages.text: Odd situation for "cannot reference this before supertype constructor has been called"
negative_passages.docid: 1605
negative_passages.text: What is the reason behind "non-static method cannot be referenced from a static context"?
negative_passages.docid: 35865
negative_passages.text: Can enums be subclassed to add new elements?
negative_passages.docid: 124729
negative_passages.text: Reference is ambiguous with generics
negative_passages.docid: 76086
negative_passages.text: Why doesn't Java Map extend Collection?