-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Closed
Closed
Copy link
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchesAn issue that has been backported to maintenance branchestype: documentationA documentation taskA documentation task
Milestone
Description
The JavaDoc of TypeDescriptor#getElementTypeDescriptor
states
@throws IllegalStateException if this type is not a {@code java.util.Collection} or array type
However, that is not the case:
public static void main(String...a) {
System.out.println(TypeDescriptor.valueOf(String.class).getElementTypeDescriptor());
System.out.println(TypeDescriptor.valueOf(String[].class).getElementTypeDescriptor());
}
This works without an exception.
I would provide a fix, if I knew what is wrong: The behaviour or only the JavaDoc.
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchesAn issue that has been backported to maintenance branchestype: documentationA documentation taskA documentation task