Skip to content

Internal Array type hierarchy #21

@OscarRodriguezPrieto

Description

@OscarRodriguezPrieto

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions