Skip to content

Commit f53d838

Browse files
committed
fix gen of code from xsd in jdk 25
Signed-off-by: Stefan Bischof <[email protected]>
1 parent 5161c71 commit f53d838

File tree

7 files changed

+35
-30
lines changed

7 files changed

+35
-30
lines changed

model.jakarta.xml.bind.xsd/pom.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
<plugin>
4848
<groupId>org.codehaus.mojo</groupId>
4949
<artifactId>jaxb2-maven-plugin</artifactId>
50-
<version>3.1.0</version>
50+
<version>3.2.0</version>
5151
<executions>
5252
<execution>
5353
<id>xsd-to-java</id>
@@ -56,6 +56,13 @@
5656
</goals>
5757
</execution>
5858
</executions>
59+
<dependencies>
60+
<dependency>
61+
<groupId>org.glassfish.jaxb</groupId>
62+
<artifactId>jaxb-xjc</artifactId>
63+
<version>4.0.5</version>
64+
</dependency>
65+
</dependencies>
5966
<configuration>
6067
<xsdPathWithinArtifact>META-INF/JAXB/xsd</xsdPathWithinArtifact>
6168
<laxSchemaValidation>true</laxSchemaValidation>

model.jakarta.xml.bind.xsd/src/main/xsd/XMLSchema.xsd

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!DOCTYPE xs:schema PUBLIC "-//W3C//DTD XSD 1.1//EN" "../dtd/XMLSchema.dtd">
33
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
4+
xmlns:xml="http://www.w3.org/XML/1998/namespace"
45
elementFormDefault="qualified" xml:lang="EN"
56
targetNamespace="http://www.w3.org/2001/XMLSchema" version="1.0">
67
<xs:annotation>
@@ -30,15 +31,15 @@
3031
The simpleType element and all of its members are defined
3132
towards the end of this schema document.</xs:documentation>
3233
</xs:annotation>
33-
<xs:import namespace="http://www.w3.org/XML/1998/namespace"
34-
schemaLocation="http://www.w3.org/2001/xml.xsd">
34+
<!-- xml:lang attribute definition (inline to avoid network fetch of xml.xsd) -->
35+
<xs:attribute name="lang" type="xs:language" form="qualified">
3536
<xs:annotation>
3637
<xs:documentation>
37-
Get access to the xml: attribute groups for xml:lang
38-
as declared on 'schema' and 'documentation' below
38+
Denotes the natural language of the content.
39+
Defined inline to avoid network dependency on xml.xsd.
3940
</xs:documentation>
4041
</xs:annotation>
41-
</xs:import>
42+
</xs:attribute>
4243
<xs:complexType name="openAttrs">
4344
<xs:annotation>
4445
<xs:documentation>
@@ -207,7 +208,7 @@
207208
<xs:attribute name="xpathDefaultNamespace"
208209
type="xs:xpathDefaultNamespace" default="##local" use="optional" />
209210
<xs:attribute name="id" type="xs:ID" />
210-
<xs:attribute ref="xml:lang" />
211+
<xs:attribute ref="xs:lang" />
211212
</xs:extension>
212213
</xs:complexContent>
213214
</xs:complexType>
@@ -1359,7 +1360,7 @@
13591360
<xs:any processContents="lax" />
13601361
</xs:sequence>
13611362
<xs:attribute name="source" type="xs:anyURI" />
1362-
<xs:attribute ref="xml:lang" />
1363+
<xs:attribute ref="xs:lang" />
13631364
<xs:anyAttribute namespace="##other" processContents="lax" />
13641365
</xs:complexType>
13651366
</xs:element>

pom.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,8 @@
3030
<properties>
3131
<revision>0.0.1-SNAPSHOT</revision>
3232
<scm.repo.detail>org.eclipse.daanse.xmla</scm.repo.detail>
33-
<!-- <bnd.version>7.1.0-SNAPSHOT</bnd.version>-->
3433
<logback.classic.version>1.4.14</logback.classic.version>
3534
<aries.spifly.version>1.3.7</aries.spifly.version>
36-
<bnd.version>7.0.0</bnd.version>
37-
<junit-jupiter.version>5.9.2</junit-jupiter.version>
38-
<junit-platform.version>1.9.2</junit-platform.version>
3935
<assertj.version>3.24.2</assertj.version>
4036
<mockito.version>4.9.0</mockito.version>
4137
<awaitility.version>4.2.0</awaitility.version>

server/adapter.soapmessage/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<dependency>
4141
<groupId>biz.aQute.bnd</groupId>
4242
<artifactId>biz.aQute.bnd.annotation</artifactId>
43-
<version>${bnd.version}</version>
43+
<version>7.1.0</version>
4444
</dependency>
4545
<dependency>
4646
<groupId>org.osgi</groupId>

server/jakarta.jws/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
<dependency>
5555
<groupId>biz.aQute.bnd</groupId>
5656
<artifactId>biz.aQute.bnd.annotation</artifactId>
57-
<version>${bnd.version}</version>
57+
<version>7.1.0</version>
5858
</dependency>
5959
<dependency>
6060
<groupId>org.osgi</groupId>

server/jakarta.saaj/test.bndrun

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,13 @@
1414

1515
-tester: biz.aQute.tester.junit-platform
1616

17-
18-
19-
2017
-runtrace: true
2118
-runvm: ${def;argLine}
2219

2320
-runproperties: \
2421
org.slf4j.simpleLogger.defaultLogLevel=debug,\
2522
org.osgi.service.http.port=8090
2623

27-
2824
port : 17290
2925
-runproperties.local.agent : osgi.fx.agent.port=0.0.0.0:${port}
3026

@@ -37,8 +33,6 @@ port : 17290
3733
bnd.identity;id='com.sun.xml.messaging.saaj.impl',\
3834
bnd.identity;id='org.eclipse.daanse.xmla.server.tck'
3935

40-
41-
4236
-runee: JavaSE-25
4337
#-runfw: org.apache.felix.framework
4438
-runfw: org.eclipse.osgi
@@ -59,21 +53,22 @@ port : 17290
5953
jakarta.xml.soap-api;version='[3.0.1,3.0.2)',\
6054
javax.activation-api;version='[1.2.0,1.2.1)',\
6155
jaxb-api;version='[2.3.1,2.3.2)',\
62-
junit-jupiter-api;version='[5.9.2,5.9.3)',\
63-
junit-jupiter-engine;version='[5.9.2,5.9.3)',\
64-
junit-jupiter-params;version='[5.9.2,5.9.3)',\
65-
junit-platform-commons;version='[1.9.2,1.9.3)',\
66-
junit-platform-engine;version='[1.9.2,1.9.3)',\
67-
junit-platform-launcher;version='[1.9.2,1.9.3)',\
68-
net.bytebuddy.byte-buddy;version='[1.14.16,1.14.17)',\
69-
net.bytebuddy.byte-buddy-agent;version='[1.12.16,1.12.17)',\
56+
junit-jupiter-api;version='[5.12.2,5.12.3)',\
57+
junit-jupiter-engine;version='[5.12.2,5.12.3)',\
58+
junit-jupiter-params;version='[5.12.2,5.12.3)',\
59+
junit-platform-commons;version='[1.12.2,1.12.3)',\
60+
junit-platform-engine;version='[1.12.2,1.12.3)',\
61+
junit-platform-launcher;version='[1.12.2,1.12.3)',\
62+
net.bytebuddy.byte-buddy;version='[1.17.5,1.17.6)',\
63+
net.bytebuddy.byte-buddy-agent;version='[1.17.5,1.17.6)',\
7064
org.apache.aries.spifly.dynamic.framework.extension;version='[1.3.7,1.3.8)',\
7165
org.apache.commons.commons-fileupload;version='[1.5.0,1.5.1)',\
7266
org.apache.commons.commons-io;version='[2.11.0,2.11.1)',\
7367
org.apache.felix.configadmin;version='[1.9.26,1.9.27)',\
7468
org.apache.felix.http.jetty12.light;version='[1.0.2,1.0.3)',\
7569
org.apache.felix.http.servlet-api;version='[3.0.0,3.0.1)',\
7670
org.apache.felix.scr;version='[2.2.10,2.2.11)',\
71+
org.apache.tomcat-servlet-api;version='[9.0.80,9.0.81)',\
7772
org.eclipse.daanse.jakarta.servlet.soap;version='[0.0.1,0.0.2)',\
7873
org.eclipse.daanse.xmla.api;version='[0.0.1,0.0.2)',\
7974
org.eclipse.daanse.xmla.model.record;version='[0.0.1,0.0.2)',\
@@ -96,8 +91,14 @@ port : 17290
9691
org.glassfish.hk2.osgi-resource-locator;version='[2.4.0,2.4.1)',\
9792
org.jvnet.staxex.stax-ex;version='[2.1.0,2.1.1)',\
9893
org.mockito.mockito-core;version='[4.9.0,4.9.1)',\
94+
org.objectweb.asm;version='[9.9.0,9.9.1)',\
95+
org.objectweb.asm.commons;version='[9.9.0,9.9.1)',\
96+
org.objectweb.asm.tree;version='[9.9.0,9.9.1)',\
97+
org.objectweb.asm.tree.analysis;version='[9.9.0,9.9.1)',\
98+
org.objectweb.asm.util;version='[9.9.0,9.9.1)',\
9999
org.objenesis;version='[3.3.0,3.3.1)',\
100-
org.opentest4j;version='[1.2.0,1.2.1)',\
100+
org.opentest4j;version='[1.3.0,1.3.1)',\
101+
org.osgi.service.cm;version='[1.6.1,1.6.2)',\
101102
org.osgi.service.component;version='[1.5.1,1.5.2)',\
102103
org.osgi.test.common;version='[1.3.0,1.3.1)',\
103104
org.osgi.test.junit5;version='[1.3.0,1.3.1)',\

server/jakarta.xml.ws.provider.soapmessage/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
<dependency>
4949
<groupId>biz.aQute.bnd</groupId>
5050
<artifactId>biz.aQute.bnd.annotation</artifactId>
51-
<version>${bnd.version}</version>
51+
<version>7.1.0</version>
5252
</dependency>
5353
<dependency>
5454
<groupId>org.osgi</groupId>

0 commit comments

Comments
 (0)