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

--------------------------------------------------------------
Hi,
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,
Ad
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/754609#754609]

Start a new discussion in Javassist at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2062]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to