0 Replies Latest reply on Apr 18, 2006 6:45 AM by Sannie Kwakman

    Changing constant values of fields

    Sannie Kwakman Newbie

      Hi all,

      I'm wondering if it's possible to change constant values of class fields in bytecode, while still making it possible to reload that class at runtime using javassist's hotswapper?

      I've seen this happening in Eclipse's debugmode, so it seems to be possible within Java's hotswap limitations.

      Simply removing and re-adding fields in bytecode seems to trigger a schema change exception. Any other ideas?