[ https://issues.apache.org/jira/browse/FLINK-32379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17734207#comment-17734207 ]
Chesnay Schepler commented on FLINK-32379: ------------------------------------------ There seem to be some differences in the bytecode w.r.t. constructors; this exemption is added with Java8, but removed on 11+: {code} Constructor <org.apache.flink.connector.file.src.FileSource.<init>([Lorg.apache.flink.core.fs.Path;, org.apache.flink.connector.file.src.enumerate.FileEnumerator$Provider, org.apache.flink.connector.file.src.assigners.FileSplitAssigner$Provider, org.apache.flink.connector.file.src.reader.BulkFormat, org.apache.flink.connector.file.src.ContinuousEnumerationSettings, org.apache.flink.connector.file.src.FileSource$1)> has parameter of type <[Lorg.apache.flink.core.fs.Path;> in (FileSource.java:0) {code} Note the {{org.apache.flink.connector.file.src.FileSource$1}} constructor argument, which doesn't actually exist in the source. > Skip archunit tests in java1X-target profiles > --------------------------------------------- > > Key: FLINK-32379 > URL: https://issues.apache.org/jira/browse/FLINK-32379 > Project: Flink > Issue Type: Technical Debt > Components: Build System > Reporter: Chesnay Schepler > Assignee: Chesnay Schepler > Priority: Major > Fix For: 1.18.0 > > > When compiling to Java 11/17 byte code archunit fails; not sure why. Maybe it > finds more/less stuff or signatures are represented differently. > In any case let's use the Java 8 bytecode version as the "canonical" version > and skip archunit otherwise. -- This message was sent by Atlassian Jira (v8.20.10#820010)