[
https://issues.apache.org/jira/browse/VELOCITY-593?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nathan Bubna resolved VELOCITY-593.
-----------------------------------
Resolution: Fixed
Fix Version/s: 1.6
You're quite right. Thanks! Fixed in revision 652755
> Remove class map from FieldMethodizer
> -------------------------------------
>
> Key: VELOCITY-593
> URL: https://issues.apache.org/jira/browse/VELOCITY-593
> Project: Velocity
> Issue Type: Improvement
> Components: Engine
> Affects Versions: 1.5
> Reporter: Benjamin Bentmann
> Priority: Trivial
> Fix For: 1.6
>
> Attachments: VELOCITY-593.patch
>
>
> According to the API docs of
> {{[Field.get()|http://java.sun.com/javase/6/docs/api/java/lang/reflect/Field.html#get(java.lang.Object)]}}:
> bq. If the underlying field is a static field, the obj argument is ignored;
> it may be null.
> So there is no need to waste memory on keeping a class map (besides, if one
> needs to know the class defining a field, there is
> {{Field.getDeclaringClass()}}).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]