Marshalling an active object with JAXB?
问题 I am trying to marshal a class which extends Thread to XML, the code is as follows: @XmlRootElement public class TransitionXML extends Thread { ArcXML[] preArcs; ArcXML[] postArcs; int[] preArcTokens; int[] postArcTokens; int leastTime; int longestTime; String name; //some methods //a lot of get-set @Override public void run() { while (true) { if (this.postTransition() & this.preTransition()) { //We take out the tokens. this.executePreTranstion(); this.checkPreTransition(); try { this.sleep