Issue #2189 Fixing java 6 and 7 compatibility issue in 13.5.2 branch.
Change-Id: Ia800aee8f4e027630293b074d0b7e8d93d424611 Former-commit-id:57a0df81a6
[formerly57a0df81a6
[formerly 0603b0bd77a9463abaa9020bf1bcb97befd7b161]] Former-commit-id:9e213438f4
Former-commit-id:b67a3033f9
This commit is contained in:
parent
ee68615786
commit
f720f78f4c
1 changed files with 3 additions and 1 deletions
|
@ -45,6 +45,7 @@ import com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.JAXBContextBuilder;
|
|||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
* Sep 12, 2011 mschenke Initial creation
|
||||
* June 24, 2013 #2126 bkowal Update for Java 7 compatibility
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -54,6 +55,7 @@ import com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.JAXBContextBuilder;
|
|||
|
||||
public class SerializationContextFactory {
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
public static JAXBContext createContext(Class[] classes, Map props) {
|
||||
// Construct delegate implementation
|
||||
System.setProperty(JAXBContextImpl.class.getName() + ".fastBoot",
|
||||
|
@ -68,7 +70,7 @@ public class SerializationContextFactory {
|
|||
// TODO: Can we override/extend some part of the context
|
||||
// implementation to allow for ignoring of xsi:type fields that we
|
||||
// don't have classes for?
|
||||
return new CustomJAXBContext(new JAXBContextImpl(builder));
|
||||
return new CustomJAXBContext(builder.build());
|
||||
} catch (JAXBException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue