Java: Array.getPackage() (and Array.getQualifiedName()) cannot be used
#7067
Labels
Array.getPackage() (and Array.getQualifiedName()) cannot be used
#7067
Trying to use
Array.getPackage()or any predicate depending on it, such asArray.getQualifiedName(), causes a compilation error:The underlying problem seems to be that
RefType.getPackage()only considers classes and interfaces, but not arrays. Maybe for arrays it should be compilable but simply have no result (should be documented ingetPackage()andgetQualifiedName()forRefTypeandArraythen; maybe for other predicates as well)?Relates to #5320
The text was updated successfully, but these errors were encountered: