forked from deepin-community/libspring-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update libspring-java to 4.3.30
modular Java/J2EE application framework - Context Issue: deepin-community/sig-deepin-sysdev-team#547 Log: update repo
- Loading branch information
Showing
9 changed files
with
86 additions
and
5 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Important note | ||
============== | ||
|
||
The Spring Framework alias libspring-java in Debian is not intended to be used | ||
to develop web applications for production purposes. It is mainly required to | ||
build other packages. There will be no security support for the life time of a | ||
stable release. Only use it to build other Debian packages or in a trusted | ||
environment like your local network with trusted devices. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
libspring-java (4.3.30-2) unstable; urgency=medium | ||
|
||
* Team upload. | ||
* Depend on libtomcat10-java instead of libtomcat9-java. | ||
* Add xmlbeans-4-ftbfs.patch and fix FTBFS with xmlbeans 4. | ||
(Closes: #1011689) | ||
* Ignore junit-bom and jboss-logging artifact. | ||
* Ignore org.eclipse.persistence:jakarta.persistence. | ||
* Install README.Debian.security and explain that libspring-java should be | ||
only used for building other Debian packages or in a secured local | ||
environment with trusted devices. | ||
|
||
-- Markus Koschany <[email protected]> Mon, 27 Feb 2023 21:50:50 +0100 | ||
|
||
libspring-java (4.3.30-1) unstable; urgency=medium | ||
|
||
* Team upload. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
README.md | ||
debian/README.Debian.security |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
From: Markus Koschany <[email protected]> | ||
Date: Mon, 27 Feb 2023 20:09:29 +0100 | ||
Subject: xmlbeans 4 ftbfs | ||
|
||
Forwarded: not-needed | ||
--- | ||
.../java/org/springframework/oxm/xmlbeans/XmlBeansMarshaller.java | 6 +----- | ||
.../org/springframework/oxm/xmlbeans/XmlOptionsFactoryBean.java | 4 ++-- | ||
2 files changed, 3 insertions(+), 7 deletions(-) | ||
|
||
diff --git a/spring-oxm/src/main/java/org/springframework/oxm/xmlbeans/XmlBeansMarshaller.java b/spring-oxm/src/main/java/org/springframework/oxm/xmlbeans/XmlBeansMarshaller.java | ||
index a3107b0..66339f9 100644 | ||
--- a/spring-oxm/src/main/java/org/springframework/oxm/xmlbeans/XmlBeansMarshaller.java | ||
+++ b/spring-oxm/src/main/java/org/springframework/oxm/xmlbeans/XmlBeansMarshaller.java | ||
@@ -30,7 +30,6 @@ import javax.xml.stream.XMLEventWriter; | ||
import javax.xml.stream.XMLStreamReader; | ||
import javax.xml.stream.XMLStreamWriter; | ||
|
||
-import org.apache.xmlbeans.XMLStreamValidationException; | ||
import org.apache.xmlbeans.XmlError; | ||
import org.apache.xmlbeans.XmlException; | ||
import org.apache.xmlbeans.XmlObject; | ||
@@ -315,10 +314,7 @@ public class XmlBeansMarshaller extends AbstractMarshaller { | ||
* @return the corresponding {@code XmlMappingException} | ||
*/ | ||
protected XmlMappingException convertXmlBeansException(Exception ex, boolean marshalling) { | ||
- if (ex instanceof XMLStreamValidationException) { | ||
- return new ValidationFailureException("XMLBeans validation exception", ex); | ||
- } | ||
- else if (ex instanceof XmlException || ex instanceof SAXException) { | ||
+ if (ex instanceof XmlException || ex instanceof SAXException) { | ||
if (marshalling) { | ||
return new MarshallingFailureException("XMLBeans marshalling exception", ex); | ||
} | ||
diff --git a/spring-oxm/src/main/java/org/springframework/oxm/xmlbeans/XmlOptionsFactoryBean.java b/spring-oxm/src/main/java/org/springframework/oxm/xmlbeans/XmlOptionsFactoryBean.java | ||
index f78f015..6488f3e 100644 | ||
--- a/spring-oxm/src/main/java/org/springframework/oxm/xmlbeans/XmlOptionsFactoryBean.java | ||
+++ b/spring-oxm/src/main/java/org/springframework/oxm/xmlbeans/XmlOptionsFactoryBean.java | ||
@@ -49,14 +49,14 @@ public class XmlOptionsFactoryBean implements FactoryBean<XmlOptions> { | ||
* @see XmlOptions#SAVE_PRETTY_PRINT | ||
* @see XmlOptions#LOAD_STRIP_COMMENTS | ||
*/ | ||
- public void setOptions(Map<String, ?> optionsMap) { | ||
+ /*public void setOptions(Map<String, ?> optionsMap) { | ||
this.xmlOptions = new XmlOptions(); | ||
if (optionsMap != null) { | ||
for (Map.Entry<String, ?> option : optionsMap.entrySet()) { | ||
this.xmlOptions.put(option.getKey(), option.getValue()); | ||
} | ||
} | ||
- } | ||
+ }*/ | ||
|
||
|
||
@Override |