Ignore:
Timestamp:
07/03/11 04:21:36 (11 months ago)
Author:
jharrop
Message:

Temporary fix for MarshallException? in ShallowTraversor? caused by unwrapping CTSimpleField
(same problem is likely to occur for anything we unwrap which doesn't have an @XmlRootElement?).

Location:
trunk/docx4j/src/main/java/org/docx4j
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/docx4j/src/main/java/org/docx4j/model/datastorage/OpenDoPEHandler.java

    r1579 r1582  
    572572                                                                                        this.apply( 
    573573                                                                                                XmlUtils.unwrap(o))); 
     574                                                // TODO: Post 2.7.0, review use of XmlUtils.unwrap(o) here; 
     575                                                // it can result in MarshalException for 
     576                                                // things which don't have @XmlRootElement. 
     577                                                // We really need some unit tests to be confident 
     578                                                // that making this change would be ok. 
    574579                                        } 
    575580                                } 
  • trunk/docx4j/src/main/java/org/docx4j/wml/CTSimpleField.java

    r1473 r1582  
    3131import javax.xml.bind.annotation.XmlElementRef; 
    3232import javax.xml.bind.annotation.XmlElementRefs; 
     33import javax.xml.bind.annotation.XmlRootElement; 
    3334import javax.xml.bind.annotation.XmlTransient; 
    3435import javax.xml.bind.annotation.XmlType; 
     
    6667    "paragraphContent" 
    6768}) 
     69@XmlRootElement(name = "fldSimple") 
    6870public class CTSimpleField 
    6971    implements Child, ContentAccessor 
Note: See TracChangeset for help on using the changeset viewer.