-
Bug
-
Resolution: Fixed
-
P3
-
15
-
b28
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8247717 | 16 | Vicente Arturo Romero Zaldivar | P3 | Resolved | Fixed | b02 |
JDK-8250049 | 15.0.2 | Vicente Arturo Romero Zaldivar | P3 | Resolved | Fixed | b01 |
JDK-8250347 | 15.0.1 | Vicente Arturo Romero Zaldivar | P3 | Resolved | Fixed | b03 |
Currently
java.lang.Class
public ClassDesc[] permittedSubclasses()
says just
"Returns an array containing ClassDesc objects representing all the permitted subclasses of this Class if it is sealed. Returns an empty array if this Class is not sealed."
It would be very beneficial to mention if the order of the returned elements is expected to correspond to the declaration order (experiments show that for OpenJDK now it does conform to the declaration order) or there is no guarantee and no one should expect any particular order of elements in the returned array.
java.lang.Class
public ClassDesc[] permittedSubclasses()
says just
"Returns an array containing ClassDesc objects representing all the permitted subclasses of this Class if it is sealed. Returns an empty array if this Class is not sealed."
It would be very beneficial to mention if the order of the returned elements is expected to correspond to the declaration order (experiments show that for OpenJDK now it does conform to the declaration order) or there is no guarantee and no one should expect any particular order of elements in the returned array.
- backported by
-
JDK-8247717 API for Class::permittedSubclasses should clarify if returned elements are ordered or not
-
- Resolved
-
-
JDK-8250049 API for Class::permittedSubclasses should clarify if returned elements are ordered or not
-
- Resolved
-
-
JDK-8250347 API for Class::permittedSubclasses should clarify if returned elements are ordered or not
-
- Resolved
-
- csr for
-
JDK-8247361 API for Class::permittedSubclasses should clarify if returned elements are ordered or not
-
- Closed
-