[
https://issues.apache.org/jira/browse/NIFI-1730?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15380837#comment-15380837
]
Joseph Witt commented on NIFI-1730:
-----------------------------------
Here is what i propose after thinking about this for too long:
Keep them in the artifact bundles they're in but make their package location
more specific. Don't change any dependency structures. Use Apache Yetus
annotations to articulate these things aren't to be extended/depended on - if
you want them copy them. If we find the need for this expanding (which in
itself would be a problem as why would we need so much reflection) then we can
tackle the issue.
Some have loggers, some don't. Some alter accessibility, some don't.
Will go ahead and put a PR in for this but will wait a bit to see if there is
any disagreement.
Doing nothing for this is also an option. At the very least we could add Yetus
annotations to make it clear that these are choose your own adventure utils.
> org/apache/nifi/util/ReflectionUtils.java (and possibly other classes) exist
> in two different modules under the same FQN
> ------------------------------------------------------------------------------------------------------------------------
>
> Key: NIFI-1730
> URL: https://issues.apache.org/jira/browse/NIFI-1730
> Project: Apache NiFi
> Issue Type: Bug
> Reporter: Oleg Zhurakousky
> Assignee: Joseph Witt
> Fix For: 1.0.0
>
>
> _org/apache/nifi/util/ReflectionUtils.java_ specifically exists in _framework
> core_ and _mock_ under the same FQN (see below)
> *
> https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/util/ReflectionUtils.java
> *
> https://github.com/apache/nifi/blob/master/nifi-mock/src/main/java/org/apache/nifi/util/ReflectionUtils.java
> This means that if the two versions are not identical one can start seeing
> something along the lines of this:
> {code}
> java.lang.NoSuchMethodError:
> org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Object;[Ljava/lang/Object;)V
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)