[jboss-user] [Javassist] - Field names/access problem

Ad Forcello do-not-reply at jboss.com
Mon Aug 20 13:52:43 EDT 2012

Ad Forcello [https://community.jboss.org/people/adforcello] created the discussion

"Field names/access problem"

To view the discussion, visit: https://community.jboss.org/message/754609#754609

I've got the following problem. When I insert code in methods eveything is just fine. I can access and modify a field value referring to it just with it's name. The problem starts when there are two (or more) fields with the same name. They have of course different types (i.e. one is a string, one is integer, another an array of integers). But I cannot access values of fields with the same names (even if the types are different). Javassist always gets the fist one. I tried to do some tricks like modifying the bytecode with success but that method is really uphill. I'd like to do it the javassist-way. Any ideas or hints?

Thanks in advance,

Reply to this message by going to Community

Start a new discussion in Javassist at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120820/0144d152/attachment-0001.html 

More information about the jboss-user mailing list