[
https://issues.apache.org/jira/browse/FELIX-5573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15889029#comment-15889029
]
Richard S. Hall commented on FELIX-5573:
----------------------------------------
Rightly or wrongly, we explicitly chose to return null in this case because we
were under the assumption that this situation would only occur for internal
framework operation (i.e., we didn't expect null to be returned to end user
code). We explicitly check for null being returned and know we can ignore that
case when we detect a cycle. So, if we just start throwing a CNFE, then we
might have some difficulty ignoring it or knowing when to ignore it in the
framework.
> Detect recursive class loads while invoking weaving hooks
> ---------------------------------------------------------
>
> Key: FELIX-5573
> URL: https://issues.apache.org/jira/browse/FELIX-5573
> Project: Felix
> Issue Type: Bug
> Components: Framework
> Affects Versions: framework-5.6.2
> Reporter: Karl Pauls
> Assignee: Karl Pauls
> Fix For: framework-5.6.4
>
>
> We need to detect recursive class loads while invoking weaving hooks, if
> recursion is detected for a class name then we want to simply ignore all
> weave hooks for the recursive class load and allow it to proceed to define
> class.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)