Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Instance Fields #6

Open
afscrome opened this issue Aug 14, 2015 · 0 comments
Open

Instance Fields #6

afscrome opened this issue Aug 14, 2015 · 0 comments
Labels
Milestone

Comments

@afscrome
Copy link
Owner

Currently the get member binder will match any instance fields. This is different to the java behaviour

Note: References to instance variables in a template are not resolved. Only references to the attribute equivalents of JavaBean getter/setter methods are resolved (i.e. $foo.Name does resolve to the class Foo's getName() instance method, but not to a public Name instance variable of Foo).
http://velocity.apache.org/engine/devel/user-guide.html#Case_Substitution

Need to confirm the behaviour with NVelocity. If NVelocity doesn't access fields, we should definitely fix this. If we remove binding to instance fields, should we support binding to constant fields? public const string Foo = "test"

@afscrome afscrome added this to the 1.0 milestone Oct 25, 2015
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant