Skip to content

Commit 09c3ff3

Browse files
authored
Merge pull request #3643 from adamretter/hotfix/jaxb-deps-jdk11
Fix compilation issue with JAXB dependencies on JDK 11+
2 parents b833ccd + 64ebe73 commit 09c3ff3

File tree

16 files changed

+272
-190
lines changed

16 files changed

+272
-190
lines changed

exist-core/pom.xml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,14 +173,13 @@
173173
</dependency>
174174

175175
<dependency>
176-
<groupId>javax.xml.bind</groupId>
177-
<artifactId>jaxb-api</artifactId>
176+
<groupId>jakarta.xml.bind</groupId>
177+
<artifactId>jakarta.xml.bind-api</artifactId>
178178
</dependency>
179179

180-
<!-- needed on JDK 10+ -->
181180
<dependency>
182-
<groupId>org.glassfish.jaxb</groupId>
183-
<artifactId>jaxb-runtime</artifactId>
181+
<groupId>com.sun.xml.bind</groupId>
182+
<artifactId>jaxb-impl</artifactId>
184183
<scope>runtime</scope>
185184
</dependency>
186185

exist-core/src/main/java/org/exist/http/jaxb/Collection.java

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//
2-
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
3-
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
2+
// This file was generated by the Eclipse Implementation of JAXB, v3.0.0
3+
// See https://eclipse-ee4j.github.io/jaxb-ri
44
// Any modifications to this file will be lost upon recompilation of the source schema.
5-
// Generated on: 2017.12.01 at 08:56:54 PM GMT
5+
// Generated on: 2020.12.01 at 10:16:19 AM CET
66
//
77

88
/*
@@ -30,19 +30,19 @@
3030

3131
import java.util.ArrayList;
3232
import java.util.List;
33-
import javax.xml.bind.annotation.XmlAccessType;
34-
import javax.xml.bind.annotation.XmlAccessorType;
35-
import javax.xml.bind.annotation.XmlAttribute;
36-
import javax.xml.bind.annotation.XmlRootElement;
37-
import javax.xml.bind.annotation.XmlSchemaType;
38-
import javax.xml.bind.annotation.XmlType;
3933
import javax.xml.datatype.XMLGregorianCalendar;
34+
import jakarta.xml.bind.annotation.XmlAccessType;
35+
import jakarta.xml.bind.annotation.XmlAccessorType;
36+
import jakarta.xml.bind.annotation.XmlAttribute;
37+
import jakarta.xml.bind.annotation.XmlRootElement;
38+
import jakarta.xml.bind.annotation.XmlSchemaType;
39+
import jakarta.xml.bind.annotation.XmlType;
4040

4141

4242
/**
43-
* Java class for anonymous complex type.
43+
* <p>Java class for anonymous complex type.
4444
*
45-
* The following schema fragment specifies the expected content contained within this class.
45+
* <p>The following schema fragment specifies the expected content contained within this class.
4646
*
4747
* <pre>
4848
* &lt;complexType&gt;
@@ -56,6 +56,8 @@
5656
* &lt;/complexContent&gt;
5757
* &lt;/complexType&gt;
5858
* </pre>
59+
*
60+
*
5961
*/
6062
@XmlAccessorType(XmlAccessType.FIELD)
6163
@XmlType(name = "", propOrder = {
@@ -80,28 +82,28 @@ public class Collection {
8082
/**
8183
* Gets the value of the collection property.
8284
*
83-
*
85+
* <p>
8486
* This accessor method returns a reference to the live list,
8587
* not a snapshot. Therefore any modification you make to the
86-
* returned list will be present inside the JAXB object.
88+
* returned list will be present inside the Jakarta XML Binding object.
8789
* This is why there is not a <CODE>set</CODE> method for the collection property.
8890
*
89-
*
91+
* <p>
9092
* For example, to add a new item, do as follows:
9193
* <pre>
9294
* getCollection().add(newItem);
9395
* </pre>
9496
*
9597
*
96-
*
98+
* <p>
9799
* Objects of the following type(s) are allowed in the list
98100
* {@link Collection }
99101
*
100-
* @return the collections.
102+
*
101103
*/
102104
public List<Collection> getCollection() {
103105
if (collection == null) {
104-
collection = new ArrayList<>();
106+
collection = new ArrayList<Collection>();
105107
}
106108
return this.collection;
107109
}

exist-core/src/main/java/org/exist/http/jaxb/ObjectFactory.java

Lines changed: 27 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//
2-
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
3-
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
2+
// This file was generated by the Eclipse Implementation of JAXB, v3.0.0
3+
// See https://eclipse-ee4j.github.io/jaxb-ri
44
// Any modifications to this file will be lost upon recompilation of the source schema.
5-
// Generated on: 2017.12.01 at 08:56:54 PM GMT
5+
// Generated on: 2020.12.01 at 10:16:19 AM CET
66
//
77

88
/*
@@ -28,14 +28,14 @@
2828
*/
2929
package org.exist.http.jaxb;
3030

31-
import javax.xml.bind.annotation.XmlRegistry;
31+
import jakarta.xml.bind.annotation.XmlRegistry;
3232

3333

3434
/**
3535
* This object contains factory methods for each
3636
* Java content interface and Java element interface
3737
* generated in the org.exist.http.jaxb package.
38-
* An ObjectFactory allows you to programatically
38+
* <p>An ObjectFactory allows you to programatically
3939
* construct new instances of the Java representation
4040
* for XML content. The Java representation of XML
4141
* content can consist of schema derived interfaces
@@ -48,100 +48,97 @@
4848
@XmlRegistry
4949
public class ObjectFactory {
5050

51+
5152
/**
52-
* Create an instance of {@link Result }
53-
*
54-
* @return the result
53+
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.exist.http.jaxb
54+
*
5555
*/
56-
public Result createResult() {
57-
return new Result();
56+
public ObjectFactory() {
5857
}
5958

6059
/**
6160
* Create an instance of {@link Query }
62-
*
63-
* @return the query
61+
*
6462
*/
6563
public Query createQuery() {
6664
return new Query();
6765
}
6866

67+
/**
68+
* Create an instance of {@link Result }
69+
*
70+
*/
71+
public Result createResult() {
72+
return new Result();
73+
}
74+
6975
/**
7076
* Create an instance of {@link Sequence }
71-
*
72-
* @return the sequence
77+
*
7378
*/
7479
public Sequence createSequence() {
7580
return new Sequence();
7681
}
7782

7883
/**
7984
* Create an instance of {@link Query.Properties }
80-
*
81-
* @return the query properties
85+
*
8286
*/
8387
public Query.Properties createQueryProperties() {
8488
return new Query.Properties();
8589
}
8690

8791
/**
8892
* Create an instance of {@link Query.Variables }
89-
*
90-
* @return the query variables
93+
*
9194
*/
9295
public Query.Variables createQueryVariables() {
9396
return new Query.Variables();
9497
}
9598

9699
/**
97100
* Create an instance of {@link Query.Variables.Variable }
98-
*
99-
* @return the variable
101+
*
100102
*/
101103
public Query.Variables.Variable createQueryVariablesVariable() {
102104
return new Query.Variables.Variable();
103105
}
104106

105107
/**
106108
* Create an instance of {@link Collection }
107-
*
108-
* @return the collection
109+
*
109110
*/
110111
public Collection createCollection() {
111112
return new Collection();
112113
}
113114

114115
/**
115116
* Create an instance of {@link Result.Value }
116-
*
117-
* @return the result value
117+
*
118118
*/
119119
public Result.Value createResultValue() {
120120
return new Result.Value();
121121
}
122122

123123
/**
124124
* Create an instance of {@link Sequence.Value }
125-
*
126-
* @return the sequence value
125+
*
127126
*/
128127
public Sequence.Value createSequenceValue() {
129128
return new Sequence.Value();
130129
}
131130

132131
/**
133132
* Create an instance of {@link Query.Properties.Property }
134-
*
135-
* @return the property
133+
*
136134
*/
137135
public Query.Properties.Property createQueryPropertiesProperty() {
138136
return new Query.Properties.Property();
139137
}
140138

141139
/**
142140
* Create an instance of {@link Query.Variables.Variable.Qname }
143-
*
144-
* @return the qname
141+
*
145142
*/
146143
public Query.Variables.Variable.Qname createQueryVariablesVariableQname() {
147144
return new Query.Variables.Variable.Qname();

exist-core/src/main/java/org/exist/http/jaxb/Query.java

Lines changed: 33 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//
2-
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
3-
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
2+
// This file was generated by the Eclipse Implementation of JAXB, v3.0.0
3+
// See https://eclipse-ee4j.github.io/jaxb-ri
44
// Any modifications to this file will be lost upon recompilation of the source schema.
5-
// Generated on: 2017.12.01 at 08:56:54 PM GMT
5+
// Generated on: 2020.12.01 at 10:16:19 AM CET
66
//
77

88
/*
@@ -30,21 +30,21 @@
3030

3131
import java.util.ArrayList;
3232
import java.util.List;
33-
import javax.xml.bind.annotation.XmlAccessType;
34-
import javax.xml.bind.annotation.XmlAccessorType;
35-
import javax.xml.bind.annotation.XmlAttribute;
36-
import javax.xml.bind.annotation.XmlElement;
37-
import javax.xml.bind.annotation.XmlRootElement;
38-
import javax.xml.bind.annotation.XmlSchemaType;
39-
import javax.xml.bind.annotation.XmlType;
40-
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
41-
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
33+
import jakarta.xml.bind.annotation.XmlAccessType;
34+
import jakarta.xml.bind.annotation.XmlAccessorType;
35+
import jakarta.xml.bind.annotation.XmlAttribute;
36+
import jakarta.xml.bind.annotation.XmlElement;
37+
import jakarta.xml.bind.annotation.XmlRootElement;
38+
import jakarta.xml.bind.annotation.XmlSchemaType;
39+
import jakarta.xml.bind.annotation.XmlType;
40+
import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter;
41+
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
4242

4343

4444
/**
45-
* Java class for anonymous complex type.
45+
* <p>Java class for anonymous complex type.
4646
*
47-
* The following schema fragment specifies the expected content contained within this class.
47+
* <p>The following schema fragment specifies the expected content contained within this class.
4848
*
4949
* <pre>
5050
* &lt;complexType&gt;
@@ -451,9 +451,9 @@ public void setSession(String value) {
451451

452452

453453
/**
454-
* Java class for anonymous complex type.
454+
* <p>Java class for anonymous complex type.
455455
*
456-
* The following schema fragment specifies the expected content contained within this class.
456+
* <p>The following schema fragment specifies the expected content contained within this class.
457457
*
458458
* <pre>
459459
* &lt;complexType&gt;
@@ -489,36 +489,38 @@ public static class Properties {
489489

490490
/**
491491
* Gets the value of the property property.
492-
*
492+
*
493+
* <p>
493494
* This accessor method returns a reference to the live list,
494495
* not a snapshot. Therefore any modification you make to the
495-
* returned list will be present inside the JAXB object.
496+
* returned list will be present inside the Jakarta XML Binding object.
496497
* This is why there is not a <CODE>set</CODE> method for the property property.
497-
*
498+
*
499+
* <p>
498500
* For example, to add a new item, do as follows:
499501
* <pre>
500502
* getProperty().add(newItem);
501503
* </pre>
502504
*
503-
*
505+
*
506+
* <p>
504507
* Objects of the following type(s) are allowed in the list
505508
* {@link Query.Properties.Property }
506-
*
507-
* @return the list of properties
509+
*
508510
*
509511
*/
510512
public List<Query.Properties.Property> getProperty() {
511513
if (property == null) {
512-
property = new ArrayList<>();
514+
property = new ArrayList<Query.Properties.Property>();
513515
}
514516
return this.property;
515517
}
516518

517519

518520
/**
519-
* Java class for anonymous complex type.
521+
* <p>Java class for anonymous complex type.
520522
*
521-
* The following schema fragment specifies the expected content contained within this class.
523+
* <p>The following schema fragment specifies the expected content contained within this class.
522524
*
523525
* <pre>
524526
* &lt;complexType&gt;
@@ -596,9 +598,9 @@ public void setValue(String value) {
596598

597599

598600
/**
599-
* Java class for anonymous complex type.
601+
* <p>Java class for anonymous complex type.
600602
*
601-
* The following schema fragment specifies the expected content contained within this class.
603+
* <p>The following schema fragment specifies the expected content contained within this class.
602604
*
603605
* <pre>
604606
* &lt;complexType&gt;
@@ -672,9 +674,9 @@ public void setVariable(Query.Variables.Variable value) {
672674

673675

674676
/**
675-
* Java class for anonymous complex type.
677+
* <p>Java class for anonymous complex type.
676678
*
677-
* The following schema fragment specifies the expected content contained within this class.
679+
* <p>The following schema fragment specifies the expected content contained within this class.
678680
*
679681
* <pre>
680682
* &lt;complexType&gt;
@@ -738,9 +740,9 @@ public void setQname(Query.Variables.Variable.Qname value) {
738740

739741

740742
/**
741-
* Java class for anonymous complex type.
743+
* <p>Java class for anonymous complex type.
742744
*
743-
* The following schema fragment specifies the expected content contained within this class.
745+
* <p>The following schema fragment specifies the expected content contained within this class.
744746
*
745747
* <pre>
746748
* &lt;complexType&gt;

0 commit comments

Comments
 (0)