We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7e2218 commit c432f4aCopy full SHA for c432f4a
src/share/classes/jdk/codetools/apidiff/report/html/TypePageReporter.java
@@ -223,8 +223,10 @@ private Content buildSuperinterfaces() {
223
Set<Content> keywords = tMap.values().stream()
224
.map(e -> {
225
return switch (e.getKind()) {
226
- case CLASS, ENUM -> Keywords.IMPLEMENTS;
+ case CLASS, ENUM, RECORD -> Keywords.IMPLEMENTS;
227
case ANNOTATION_TYPE, INTERFACE -> Keywords.EXTENDS;
228
+ // for newer kinds, not supported by the default version of JDK
229
+ // used to compile apidiff, use a reflective comparison
230
default -> throw new IllegalStateException((e.getKind().toString()));
231
};
232
})
0 commit comments