[jboss-user] [Javassist] - Re: Can JavaAssist change a static final field?

Shigeru Chiba do-not-reply at jboss.com
Thu Nov 22 21:10:02 EST 2012

Shigeru Chiba [https://community.jboss.org/people/chiba] created the discussion

"Re: Can JavaAssist change a static final field?"

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

According to my memory, changing the value of a static field is not straightforward because
javac may inline the value of static constant field at occurrences of that field even in different
class files.  In that case, after compilation, Javassist cannot see where the original value is
embedded in class files and have to be modified.

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/20121122/9485689f/attachment.html 

More information about the jboss-user mailing list