[sweethome3d] 01/01: Fixed the build failure with Java 9 (Closes: #873224)

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Mon Mar 12 21:52:45 GMT 2018


This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to branch master
in repository sweethome3d.

commit 0982915f254a0da748a5ae5f5bd1238b8e3c9e6b
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Mon Mar 12 22:52:28 2018 +0100

    Fixed the build failure with Java 9 (Closes: #873224)
---
 debian/changelog                         |  7 +++++++
 debian/patches/java9-compatibility.patch | 14 ++++++++++++++
 debian/patches/series                    |  1 +
 3 files changed, 22 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index f3cc5a0..98f6257 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+sweethome3d (5.7+dfsg-2) UNRELEASED; urgency=medium
+
+  * Team upload.
+  * Fixed the build failure with Java 9 (Closes: #873224)
+
+ -- Emmanuel Bourg <ebourg at apache.org>  Mon, 12 Mar 2018 22:51:14 +0100
+
 sweethome3d (5.7+dfsg-1) unstable; urgency=medium
 
   * New upstream version 5.7+dfsg.
diff --git a/debian/patches/java9-compatibility.patch b/debian/patches/java9-compatibility.patch
new file mode 100644
index 0000000..3c8f00a
--- /dev/null
+++ b/debian/patches/java9-compatibility.patch
@@ -0,0 +1,14 @@
+Description: Fixes the compatibility with Java 9
+Author: Emmanuel Bourg <ebourg at apache.org>
+Bug: https://sourceforge.net/p/sweethome3d/bugs/783/
+--- a/src/com/eteks/sweethome3d/swing/FileContentManager.java
++++ b/src/com/eteks/sweethome3d/swing/FileContentManager.java
+@@ -1219,7 +1219,7 @@
+ 
+       public int updateChildren(File [] childDirectories) {
+         if (this.children == null) {
+-          this.children = new Vector<File>(childDirectories.length); 
++          this.children = new Vector(childDirectories.length); 
+         }          
+         synchronized (this.children) {
+           removeAllChildren();
diff --git a/debian/patches/series b/debian/patches/series
index b4ab1ae..ccbe33f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@ no-video.patch
 noadditionalprovisions.patch
 build.patch
 no-MacOSX.patch
+java9-compatibility.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/sweethome3d.git



More information about the pkg-java-commits mailing list