Permalink
Browse files

Classloading through direct class reference, not using jaxb.index (#268)

  • Loading branch information...
gquerret committed Oct 6, 2017
1 parent e538547 commit f083e179a7462ad55e7097842e43a0c9f46e8524
View
@@ -291,7 +291,6 @@
<fileset dir="${src.java}">
<include name="eu/rssw/pct/antlib.xml" />
<include name="eu/rssw/pct/oedoc/antlib.xml" />
<include name="eu/rssw/rcode/jaxb.index" />
<include name="za/co/mip/ablduck/resources/ablduck.zip" />
</fileset>
<zipfileset src="lib/gson-2.2.4.jar" />
@@ -77,7 +77,12 @@
public void classToXML(File out) throws JAXBException, IOException {
try (FileOutputStream fos = new FileOutputStream(out)) {
JAXBContext context = JAXBContext.newInstance(this.getClass().getPackage().getName());
JAXBContext context = JAXBContext.newInstance(AccessModifier.class,
ClassCompilationUnit.class, Constructor.class, Dataset.class, EnumMember.class,
Event.class, Function.class, GetSetModifier.class, Method.class,
Parameter.class, ParameterMode.class, Procedure.class,
ProcedureCompilationUnit.class, Property.class, TableField.class,
TableIndex.class, TempTable.class, Using.class, UsingType.class);
Marshaller marshaller = context.createMarshaller();
marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
marshaller.marshal(this, fos);
@@ -43,7 +43,12 @@
public void toXML(File out) throws JAXBException, IOException {
try (FileOutputStream fos = new FileOutputStream(out)) {
JAXBContext context = JAXBContext.newInstance(this.getClass().getPackage().getName());
JAXBContext context = JAXBContext.newInstance(AccessModifier.class,
ClassCompilationUnit.class, Constructor.class, Dataset.class, EnumMember.class,
Event.class, Function.class, GetSetModifier.class, Method.class,
Parameter.class, ParameterMode.class, Procedure.class,
ProcedureCompilationUnit.class, Property.class, TableField.class,
TableIndex.class, TempTable.class, Using.class, UsingType.class);
Marshaller marshaller = context.createMarshaller();
marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
marshaller.marshal(this, fos);

This file was deleted.

Oops, something went wrong.

0 comments on commit f083e17

Please sign in to comment.