0 Replies Latest reply on Aug 20, 2012 1:52 PM by adforcello

    Field names/access problem



      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,