[jboss-jira] [JBoss JIRA] Updated: (JBREFLECT-133) Memory consumption: Reflect[Constructor/Method/Field]InfoImpl should only store a reference to the underlying reflection object when it is first used

Kabir Khan (JIRA) jira-events at lists.jboss.org
Tue Jul 6 11:08:46 EDT 2010


     [ https://jira.jboss.org/browse/JBREFLECT-133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kabir Khan updated JBREFLECT-133:
---------------------------------

    Summary: Memory consumption: Reflect[Constructor/Method/Field]InfoImpl should only store a reference to the underlying reflection object when it is first used  (was: Memory consumption: Reflect[Constructor/Method/Field]Impl should only store a reference to the underlying reflection object when it is first used)


> Memory consumption: Reflect[Constructor/Method/Field]InfoImpl should only store a reference to the underlying reflection object when it is first used
> -----------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBREFLECT-133
>                 URL: https://jira.jboss.org/browse/JBREFLECT-133
>             Project: JBoss Reflection
>          Issue Type: Feature Request
>            Reporter: Kabir Khan
>            Assignee: Kabir Khan
>             Fix For: 2.2.0.Beta
>
>
> For all beans that get installed we look for all the ClassInfo members. ReflectMethodInfoImpl etc. is initialized with everything needed apart from invoking on the actual underlying java.lang.reflect.Method. To save on memory I am only initializing the underlying java.lang.reflect.Method field once someone tries to call ReflectMethodInfoImpl.invoke(), since in most cases methods are not actually called just obtained to determine property setters/getters.
> The same goes for ReflectFieldInfoImpl and java.lang.reflect.Field and ReflectConstructorInfoImpl and java.lang.reflect.Constructor

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list