Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8333371 | na | Vicente Arturo Romero Zaldivar | P4 | Closed | Not an Issue |
The JDK rebuild fails if ClassRemapperImpl is rebuilt and RecordComponentInfo is not.
Failure message:
src/java.base/share/classes/jdk/internal/classfile/impl/ClassRemapperImpl.java:306: error: no suitable method found for of(String,ClassDesc,List<Attribute<? extends Attribute<?>>>)
return RecordComponentInfo.of(component.name().stringValue(),
^
method RecordComponentInfo.of(Utf8Entry,Utf8Entry,List<Attribute<?>>) is not applicable
(argument mismatch; String cannot be converted to Utf8Entry)
method RecordComponentInfo.of(Utf8Entry,Utf8Entry,Attribute<?>...) is not applicable
(argument mismatch; String cannot be converted to Utf8Entry)
method RecordComponentInfo.of(String,ClassDesc,List<Attribute<?>>) is not applicable
(argument mismatch; List<Attribute<? extends Attribute<?>>> cannot be converted to List<Attribute<?>>)
method RecordComponentInfo.of(String,ClassDesc,Attribute<?>...) is not applicable
(varargs mismatch; List<Attribute<? extends Attribute<?>>> cannot be converted to Attribute<?>)
1 error
To reproduce:
- make
- touch src/java.base/share/classes/jdk/internal/classfile/impl/ClassRemapperImpl.java
- make
Workaround:
- touch src/java.base/share/classes/java/lang/classfile/attribute/RecordComponentInfo.java
Failure message:
src/java.base/share/classes/jdk/internal/classfile/impl/ClassRemapperImpl.java:306: error: no suitable method found for of(String,ClassDesc,List<Attribute<? extends Attribute<?>>>)
return RecordComponentInfo.of(component.name().stringValue(),
^
method RecordComponentInfo.of(Utf8Entry,Utf8Entry,List<Attribute<?>>) is not applicable
(argument mismatch; String cannot be converted to Utf8Entry)
method RecordComponentInfo.of(Utf8Entry,Utf8Entry,Attribute<?>...) is not applicable
(argument mismatch; String cannot be converted to Utf8Entry)
method RecordComponentInfo.of(String,ClassDesc,List<Attribute<?>>) is not applicable
(argument mismatch; List<Attribute<? extends Attribute<?>>> cannot be converted to List<Attribute<?>>)
method RecordComponentInfo.of(String,ClassDesc,Attribute<?>...) is not applicable
(varargs mismatch; List<Attribute<? extends Attribute<?>>> cannot be converted to Attribute<?>)
1 error
To reproduce:
- make
- touch src/java.base/share/classes/jdk/internal/classfile/impl/ClassRemapperImpl.java
- make
Workaround:
- touch src/java.base/share/classes/java/lang/classfile/attribute/RecordComponentInfo.java
- backported by
-
JDK-8333371 compilation result depends on compilation order
- Closed
- duplicates
-
JDK-8178952 Separate compilation issue with bounded wildcard
- Closed