https://bz.apache.org/bugzilla/show_bug.cgi?id=65965
--- Comment #3 from [email protected] --- this is a contrived and truncated example, but the idea is setting a newly created table into a document attempting to replace the table already there. after this action the CTTbl retrieved from the XWPFTable object stored in the XWPFDocument tables array should presumably be the same instance as the CTTbl retrieved from the xml objects. XWPFDocument newDoc = new XWPFDocument(); XWPFTable newTbl = newDoc.createTable(); XWPFTable newTbl1 = new XWPFTable(CTTbl.Factory.newInstance(), newTbl.getBody()); int position = newDoc.getPosOfTable(newTbl); newDoc.setTable(position,newTbl1); if(newDoc.getTableArray(position).getCTTbl() != newDoc.getDocument().getBody().getTblArray(position)){ System.out.println("This should be true"); } -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
