source: trunk/docx4j/src/main/java/org/docx4j/wml/package-info.java @ 1351

Revision 1351, 1.0 KB checked in by jharrop, 18 months ago (diff)

Apply Dave Brown's patch of 3 Dec 2010: - declare a JAXB type adapter (package-info.java) for java.math.BigInteger?
(BigIntegerAdapter?.java).

This works around a bug in old JAXB releases, where null numbers are serialized out as empty
string "", and cause deserialization errors later, on the way back in.

This simple workaround avoids great pain in environments where it is not easy to ensure a proper JAXB installation

Line 
1/*
2 *  Copyright 2007-2008, Plutext Pty Ltd.
3 *   
4 *  This file is part of docx4j.
5
6    docx4j is licensed under the Apache License, Version 2.0 (the "License");
7    you may not use this file except in compliance with the License.
8
9    You may obtain a copy of the License at
10
11        http://www.apache.org/licenses/LICENSE-2.0
12
13    Unless required by applicable law or agreed to in writing, software
14    distributed under the License is distributed on an "AS IS" BASIS,
15    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16    See the License for the specific language governing permissions and
17    limitations under the License.
18
19 */
20
21@javax.xml.bind.annotation.XmlSchema(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
22@javax.xml.bind.annotation.adapters.XmlJavaTypeAdapters
23({
24    @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(value=org.docx4j.wml.BigIntegerAdapter.class,type=java.math.BigInteger.class)
25})
26package org.docx4j.wml;
Note: See TracBrowser for help on using the repository browser.