Syntax of compound names for nested classes [message #1410672] |
Thu, 21 August 2014 10:57 |
Andreas Sewe Messages: 111 Registered: June 2013 |
Senior Member |
|
|
Hi,
I have a problem getting anything other than ProblemReferenceBindings (ProblemReasons.InternalNameProvided) out of my LookupEnvironment when searching for nested classes.
["java", "util", "Map$Entry"] produces the aforementioned ProblemReferenceBinding.
["java", "util", "Map", "Entry"] produces null as does
["java", "util", "Map.Entry"]
What's the problem syntax for compound names for nested classes then? Any hints are appreciated.
The PackageBinding for "java.util" has, in its "knownTypes" HashtableOfType an entry for "Map$Entry", so that seems like the proper syntax, but this fails the final
referenceBinding.isNestedType() check and results in the ProblemReferenceBinding (which is far less useful than a regular ReferenceBinding; in particular, getMethods doesn't do anything useful).
Best wishes,
Andreas
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03136 seconds