You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Chesnay Schepler (Jira)" <ji...@apache.org> on 2022/09/26 16:35:00 UTC

[jira] [Created] (FLINK-29422) Production tests return/argument types do not take transitivity into account

Chesnay Schepler created FLINK-29422:
----------------------------------------

             Summary: Production tests return/argument types do not take transitivity into account
                 Key: FLINK-29422
                 URL: https://issues.apache.org/jira/browse/FLINK-29422
             Project: Flink
          Issue Type: Technical Debt
          Components: API / DataStream
    Affects Versions: 1.16.0
            Reporter: Chesnay Schepler


In FLINK-29403 I'm marking {{SimpleCondition}} as {{PublicEvolving}}, but the production tests reject it:

{code:java}
Architecture Violation [Priority: MEDIUM] - Rule 'Return and argument types of methods annotated with @PublicEvolving must be annotated with @Public(Evolving).' was violated (1 times):
Sep 26 15:20:12 org.apache.flink.cep.pattern.conditions.SimpleCondition.filter(java.lang.Object, org.apache.flink.cep.pattern.conditions.IterativeCondition$Context): Argument leaf type org.apache.flink.cep.pattern.conditions.IterativeCondition$Context does not satisfy: reside outside of package 'org.apache.flink..' or reside in any package ['..shaded..'] or annotated with @Public or annotated with @PublicEvolving or annotated with @Deprecated
{code}

This doesn't make any sense given that {{IterativeCondition}} itself is already {{PublicEvolving}} and contains the exact same method.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)