[
https://issues.apache.org/jira/browse/FLINK-35454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17850200#comment-17850200
]
Jing Ge commented on FLINK-35454:
---------------------------------
master: b1025e66e7b13bce6a6407544420dc494cd5e1b2
> Connector ArchTests fails due to dependency on fink.util.Preconditions
> ----------------------------------------------------------------------
>
> Key: FLINK-35454
> URL: https://issues.apache.org/jira/browse/FLINK-35454
> Project: Flink
> Issue Type: Bug
> Components: Test Infrastructure
> Affects Versions: 1.20.0
> Reporter: Ahmed Hamdy
> Assignee: Ahmed Hamdy
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.20.0
>
>
> h2. Description
> - Arch Unit Rules for connectors limits dependencies of any classes in
> connectors on @Public or @PublicEvolving with exceptions of connector package
> classes, this is not true since we should be able to depend on internal util
> classes like {{Preconditions}} and {{ExceptionsUtils}}
> {code:java}
> freeze(
> javaClassesThat(resideInAnyPackage(CONNECTOR_PACKAGES))
> .and()
> .areNotAnnotatedWith(Deprecated.class)
> .should()
> .onlyDependOnClassesThat(
>
> areFlinkClassesThatResideOutsideOfConnectorPackagesAndArePublic()
> .or(
>
> JavaClass.Predicates.resideOutsideOfPackages(
>
> "org.apache.flink.."))
> .or(
>
> JavaClass.Predicates.resideInAnyPackage(
>
> CONNECTOR_PACKAGES)) )
> .as(
> "Connector production code must depend
> only on public API when outside of connector packages"));
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)