-
Notifications
You must be signed in to change notification settings - Fork 0
Description
When analyzing superclass and interfaces of internal class Array, javac raises completion errors when processing java.lang.Object and java.lang.Cloneable, and furthermore, the information is not correct (i.e. it says Cloneable is not an interface).
By the moment the internal Array is detected with startSymbol.owner.getKind() != ElementKind.OTHER (since it has no package) and its hirarchy tree is not computed.
This may be improved by introducing the TOP_TYPE or CLoneable interface directly from the symbol table into its hierarchy only for this special Array case.
Or even manually by retrieving the type nodes from the DefinitionCache when the analysis is finished.
Maybe, storing the Array ClassSymbol and waiting until the compilation is finished is the solution to be able to process the hierarchy just reusing the existing method.