-
Bug
-
Resolution: Fixed
-
P2
-
None
-
b42
-
generic
-
generic
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8084222 | emb-9 | Martin Buchholz | P2 | Resolved | Fixed | team |
Spec of Class.getFields should be amended as follows:
diff --git a/src/java.base/share/classes/java/lang/Class.java b/src/java.base/share/classes/java/lang/Class.java
--- a/src/java.base/share/classes/java/lang/Class.java
+++ b/src/java.base/share/classes/java/lang/Class.java
@@ -1533,7 +1533,8 @@
* 0.
*
* <p> If this {@code Class} object represents a class, then this method
- * returns the public fields of the class and of all its superclasses.
+ * returns the public fields of the class and of all its superclasses and
+ * superinterfaces.
*
* <p> If this {@code Class} object represents an interface, then this
* method returns the fields of the interface and of all its
Webrev: http://cr.openjdk.java.net/~martin/webrevs/openjdk9/Class-getFields-spec/
diff --git a/src/java.base/share/classes/java/lang/Class.java b/src/java.base/share/classes/java/lang/Class.java
--- a/src/java.base/share/classes/java/lang/Class.java
+++ b/src/java.base/share/classes/java/lang/Class.java
@@ -1533,7 +1533,8 @@
* 0.
*
* <p> If this {@code Class} object represents a class, then this method
- * returns the public fields of the class and of all its superclasses.
+ * returns the public fields of the class and of all its superclasses and
+ * superinterfaces.
*
* <p> If this {@code Class} object represents an interface, then this
* method returns the fields of the interface and of all its
Webrev: http://cr.openjdk.java.net/~martin/webrevs/openjdk9/Class-getFields-spec/
- backported by
-
JDK-8084222 Class.getFields spec should state that fields are inherited from superinterfaces
-
- Resolved
-