While running the Beam/TCK Forward compatibility tests recently I noticed that the component-runtime code is not able to build anymore with Java 11 (It was before):
2021-04-21T11:42:06.7521493Z [INFO] -------------------------------------------------------------
2021-04-21T11:42:06.7523187Z [ERROR] COMPILATION ERROR :
2021-04-21T11:42:06.7527658Z [INFO] -------------------------------------------------------------
2021-04-21T11:42:06.7532669Z [ERROR] /component-runtime/component-runtime-design-extension/src/main/java/org/talend/sdk/component/design/extension/DesignContainerListener.java:[67,24] error: incompatible types: inference variable T has incompatible bounds
2021-04-21T11:42:06.7533979Z lower bounds: Stream<? extends CAP#1>,Object
2021-04-21T11:42:06.7534811Z lower bounds: Stream<? extends BaseMeta<? extends Lifecycle>>
2021-04-21T11:42:06.7535526Z where T is a type-variable:
2021-04-21T11:42:06.7535976Z T extends Object declared in method <T>identity()
2021-04-21T11:42:06.7536584Z where CAP#1 is a fresh type-variable:
2021-04-21T11:42:06.7537231Z CAP#1 extends BaseMeta<? extends Lifecycle> from capture of ? extends BaseMeta<? extends Lifecycle>
2021-04-21T11:42:06.7538758Z [ERROR] /component-runtime/component-runtime-design-extension/src/main/java/org/talend/sdk/component/design/extension/DesignContainerListener.java:[78,77] error: cannot find symbol
2021-04-21T11:42:06.7539844Z symbol: method getInputFlows()
2021-04-21T11:42:06.7540260Z location: variable e of type Object
2021-04-21T11:42:06.7541594Z [ERROR] /component-runtime/component-runtime-design-extension/src/main/java/org/talend/sdk/component/design/extension/DesignContainerListener.java:[78,96] error: cannot find symbol
2021-04-21T11:42:06.7542700Z symbol: method getOutputFlows()
2021-04-21T11:42:06.7543128Z location: variable e of type Object
2021-04-21T11:42:06.7544660Z [ERROR] /component-runtime/component-runtime-design-extension/src/main/java/org/talend/sdk/component/design/extension/repository/RepositoryModelBuilder.java:[100,31] error: cannot find symbol
2021-04-21T11:42:06.7546089Z symbol: method getParameterMetas()
2021-04-21T11:42:06.7546574Z location: variable b of type Object
2021-04-21T11:42:06.7548685Z [ERROR] /component-runtime/component-runtime-design-extension/src/main/java/org/talend/sdk/component/design/extension/repository/RepositoryModelBuilder.java:[101,25] error: incompatible types: invalid method reference
2021-04-21T11:42:06.7550296Z incompatible types: Object cannot be converted to ParameterMeta
2021-04-21T11:42:06.7551885Z [ERROR] /component-runtime/component-runtime-design-extension/src/main/java/org/talend/sdk/component/design/extension/repository/RepositoryModelBuilder.java:[105,37] error: cannot find symbol
2021-04-21T11:42:06.7553307Z symbol: method getMeta()
2021-04-21T11:42:06.7553965Z location: variable c of type Object
2021-04-21T11:42:06.7554361Z [INFO] 6 errors
Full failing log for reference, you can find previous passing logs here
- corresponds to Case(s)
-
TCOMP-1914 Support Java 17 compilation
- In Progress