[ 
https://issues.apache.org/jira/browse/ARIES-855?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sergey Beryozkin updated ARIES-855:
-----------------------------------

    Attachment: aries855.txt

The proposed patch does a single recursion attempt only, given that no use 
cases for supporting the deeply nested static classes exists and also to make 
the delay in throwing the load exception very minimal.

During the single recursive call only the top level catch block will report an 
error log message, and a debug one in case of attempting a retry.

This can be extended to manage nested hierarchies if really needed

                
> Blueprint should attempt to load static nested classes when the initial 
> attempt to load a class has failed
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: ARIES-855
>                 URL: https://issues.apache.org/jira/browse/ARIES-855
>             Project: Aries
>          Issue Type: Improvement
>          Components: Blueprint
>            Reporter: Sergey Beryozkin
>         Attachments: aries855.txt
>
>
> At the moment the Blueprint schema blocks the static nested class names, 
> example, trying to get SimpleBean#Nested:
> {code:java}
> public class SimpleBean {
>   public static Nested {
>   }
> }
> {code}
> referenced as "SimpleBean#Nested" in a blueprint context fails with the 
> validation error. 
> As proposed at the Osgi-dev by BJ H., the implementation should attempt to 
> load a nested class if the original load attempt fails.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to