Bug#678032: libiscwt-java: FTBFS with OpenJDK-7 - uses "internal proprietary API" which has changed

Niels Thykier niels at thykier.net
Mon Jun 18 18:32:52 UTC 2012


Package: libiscwt-java
Version: 5.3.20100629-2
Severity: normal
User: ubuntu-devel at lists.ubuntu.com
Usertags: openjdk-7-transition

Hi,

This package FTBFS with OpenJDK-7 as default-java (can be tested by using
default-jdk from experimental).  Attached is the full log, but the relevant
parts have been inlined here:

"""
find src -name *.java -and -type f -print0 | xargs -0 /usr/lib/jvm/default-java/bin/javac -cp /usr/share/java/isnativec.jar:/usr/share/java/isfreetype.jar:/usr/share/java/isrt.jar:rt.jar:/usr/share/java/swt.jar:debian/_jh_build.iscwt -d debian/_jh_build.iscwt -source 1.5
warning: [options] bootstrap class path not set in conjunction with -source 1.5
src/de/intarsys/cwt/font/truetype/TTFontParser.java:175: warning: unmappable character for encoding ASCII
         *  UFWORD        advanceWidthMax        Maximum advance width value in ?hmtx? table.
                                                                                ^
src/de/intarsys/cwt/font/truetype/TTFontParser.java:175: warning: unmappable character for encoding ASCII
         *  UFWORD        advanceWidthMax        Maximum advance width value in ?hmtx? table.
                                                                                     ^
src/de/intarsys/cwt/font/truetype/TTFontParser.java:176: warning: unmappable character for encoding ASCII
         *  FWORD        minLeftSideBearing        Minimum left sidebearing value in ?hmtx? table.
                                                                                     ^
src/de/intarsys/cwt/font/truetype/TTFontParser.java:176: warning: unmappable character for encoding ASCII
         *  FWORD        minLeftSideBearing        Minimum left sidebearing value in ?hmtx? table.
                                                                                          ^
src/de/intarsys/cwt/font/truetype/TTFontParser.java:187: warning: unmappable character for encoding ASCII
         *  USHORT        numberOfHMetrics        Number of hMetric entries in  ?hmtx? table; may be smaller than the total number of glyphs in the font.
                                                                                ^
src/de/intarsys/cwt/font/truetype/TTFontParser.java:187: warning: unmappable character for encoding ASCII
         *  USHORT        numberOfHMetrics        Number of hMetric entries in  ?hmtx? table; may be smaller than the total number of glyphs in the font.
                                                                                     ^
src/de/intarsys/cwt/font/truetype/TTFontParser.java:351: warning: unmappable character for encoding ASCII
         *  ULONG        ulUnicodeRange1        Bits 0?31
                                                      ^
src/de/intarsys/cwt/font/truetype/TTFontParser.java:352: warning: unmappable character for encoding ASCII
         *  ULONG        ulUnicodeRange2        Bits 32?63
                                                       ^
src/de/intarsys/cwt/font/truetype/TTFontParser.java:353: warning: unmappable character for encoding ASCII
         *  ULONG        ulUnicodeRange3        Bits 64?95
                                                       ^
src/de/intarsys/cwt/font/truetype/TTFontParser.java:354: warning: unmappable character for encoding ASCII
         *  ULONG        ulUnicodeRange4        Bits 96?127
                                                       ^
src/de/intarsys/cwt/font/FontEnvironment.java:43: warning: FontManager is internal proprietary API and may be removed in a future release
import sun.font.FontManager;
               ^
src/de/intarsys/cwt/swt/image/ImageConverterAwt2Swt.java:53: warning: ByteInterleavedRaster is internal proprietary API and may be removed in a future release
import sun.awt.image.ByteInterleavedRaster;
                    ^
src/de/intarsys/cwt/swt/image/ImageConverterAwt2Swt.java:54: warning: BytePackedRaster is internal proprietary API and may be removed in a future release
import sun.awt.image.BytePackedRaster;
                    ^
src/de/intarsys/cwt/font/FontEnvironment.java:105: warning: FontManager is internal proprietary API and may be removed in a future release
                definition = FontManager.getFontPath(true);
                             ^
src/de/intarsys/cwt/font/FontEnvironment.java:105: error: cannot find symbol
                definition = FontManager.getFontPath(true);
                                        ^
  symbol:   method getFontPath(boolean)
  location: interface FontManager
src/de/intarsys/cwt/swt/image/ImageConverterAwt2Swt.java:290: warning: ByteInterleavedRaster is internal proprietary API and may be removed in a future release
                } else if (raster instanceof ByteInterleavedRaster) {
                                             ^
src/de/intarsys/cwt/swt/image/ImageConverterAwt2Swt.java:292: warning: ByteInterleavedRaster is internal proprietary API and may be removed in a future release
                        bytes = ((ByteInterleavedRaster) raster).getDataStorage();
                                  ^
src/de/intarsys/cwt/swt/image/ImageConverterAwt2Swt.java:293: warning: BytePackedRaster is internal proprietary API and may be removed in a future release
                } else if (raster instanceof BytePackedRaster) {
                                             ^
src/de/intarsys/cwt/swt/image/ImageConverterAwt2Swt.java:295: warning: BytePackedRaster is internal proprietary API and may be removed in a future release
                        bytes = ((BytePackedRaster) raster).getDataStorage();
                                  ^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
19 warnings
"""

~Niels
-------------- next part --------------
Complete layout information:
	buildArea=<builddir>/build-area
	origDir=<builddir>/tarballs
	trunkDir=<builddir>/libiscwt-java
	trunkUrl=svn+ssh://svn.debian.org/svn/pkg-java/trunk/libiscwt-java
dpkg-checkbuilddeps
<builddir>/build-area/libiscwt-java-5.3.20100629 exists, renaming to /home/moon/debian/test-build/java7/build-area/libiscwt-java-5.3.20100629.obsolete.0.983080024671839
mergeWithUpstream mode detected, looking for <builddir>/tarballs/libiscwt-java_5.3.20100629.orig.tar.gz
I: mergeWithUpstream property set, looking for upstream source tarball...
 tar --no-same-owner --no-same-permissions --extract --gzip --file <builddir>/tarballs/libiscwt-java_5.3.20100629.orig.tar.gz --directory <1 more argument>
 mv <builddir>/build-area/tmp-0.822409086951183/libiscwt-java-5.3.20100629 /home/moon/debian/test-build/java7/build-area/libiscwt-java-5.3.20100629
 mkdir -p <builddir>/build-area/libiscwt-java-5.3.20100629/debian /home/moon/debian/test-build/java7/build-area/libiscwt-java-5.3.20100629/debian/source
 cp --parents -laf debian/README.source debian/control debian/copyright debian/changelog debian/source/format debian/README.Debian debian/watch debian/javabuild <6 more arguments>
rm -rf <builddir>/build-area/tmp-0.822409086951183
chmod -R u+r+w+X,g+r-w+X,o+r-w+X -- <builddir>/build-area/libiscwt-java-5.3.20100629
dpkg-buildpackage -us -uc -tc
dpkg-buildpackage: source package libiscwt-java
dpkg-buildpackage: source version 5.3.20100629-2
dpkg-buildpackage: source changed by Niels Thykier <niels at thykier.net>
 dpkg-source --before-build libiscwt-java-5.3.20100629
dpkg-buildpackage: host architecture amd64
 fakeroot debian/rules clean
dh --with javahelper clean
   dh_testdir
   dh_auto_clean
   jh_clean
   dh_clean
 dpkg-source -b libiscwt-java-5.3.20100629
dpkg-source: info: using source format `3.0 (quilt)'
dpkg-source: info: building libiscwt-java using existing ./libiscwt-java_5.3.20100629.orig.tar.gz
dpkg-source: info: building libiscwt-java in libiscwt-java_5.3.20100629-2.debian.tar.gz
dpkg-source: info: building libiscwt-java in libiscwt-java_5.3.20100629-2.dsc
 debian/rules build
dh --with javahelper build
   dh_testdir
   dh_auto_configure
   jh_linkjars
   dh_auto_build
   jh_build
find src -name *.java -and -type f -print0 | xargs -0 /usr/lib/jvm/default-java/bin/javac -cp /usr/share/java/isnativec.jar:/usr/share/java/isfreetype.jar:/usr/share/java/isrt.jar:rt.jar:/usr/share/java/swt.jar:debian/_jh_build.iscwt -d debian/_jh_build.iscwt -source 1.5
warning: [options] bootstrap class path not set in conjunction with -source 1.5
src/de/intarsys/cwt/font/truetype/TTFontParser.java:175: warning: unmappable character for encoding ASCII
	 *  UFWORD        advanceWidthMax        Maximum advance width value in ?hmtx? table.
	                                                                        ^
src/de/intarsys/cwt/font/truetype/TTFontParser.java:175: warning: unmappable character for encoding ASCII
	 *  UFWORD        advanceWidthMax        Maximum advance width value in ?hmtx? table.
	                                                                             ^
src/de/intarsys/cwt/font/truetype/TTFontParser.java:176: warning: unmappable character for encoding ASCII
	 *  FWORD        minLeftSideBearing        Minimum left sidebearing value in ?hmtx? table.
	                                                                             ^
src/de/intarsys/cwt/font/truetype/TTFontParser.java:176: warning: unmappable character for encoding ASCII
	 *  FWORD        minLeftSideBearing        Minimum left sidebearing value in ?hmtx? table.
	                                                                                  ^
src/de/intarsys/cwt/font/truetype/TTFontParser.java:187: warning: unmappable character for encoding ASCII
	 *  USHORT        numberOfHMetrics        Number of hMetric entries in  ?hmtx? table; may be smaller than the total number of glyphs in the font.
	                                                                        ^
src/de/intarsys/cwt/font/truetype/TTFontParser.java:187: warning: unmappable character for encoding ASCII
	 *  USHORT        numberOfHMetrics        Number of hMetric entries in  ?hmtx? table; may be smaller than the total number of glyphs in the font.
	                                                                             ^
src/de/intarsys/cwt/font/truetype/TTFontParser.java:351: warning: unmappable character for encoding ASCII
	 *  ULONG        ulUnicodeRange1        Bits 0?31
	                                              ^
src/de/intarsys/cwt/font/truetype/TTFontParser.java:352: warning: unmappable character for encoding ASCII
	 *  ULONG        ulUnicodeRange2        Bits 32?63
	                                               ^
src/de/intarsys/cwt/font/truetype/TTFontParser.java:353: warning: unmappable character for encoding ASCII
	 *  ULONG        ulUnicodeRange3        Bits 64?95
	                                               ^
src/de/intarsys/cwt/font/truetype/TTFontParser.java:354: warning: unmappable character for encoding ASCII
	 *  ULONG        ulUnicodeRange4        Bits 96?127
	                                               ^
src/de/intarsys/cwt/font/FontEnvironment.java:43: warning: FontManager is internal proprietary API and may be removed in a future release
import sun.font.FontManager;
               ^
src/de/intarsys/cwt/swt/image/ImageConverterAwt2Swt.java:53: warning: ByteInterleavedRaster is internal proprietary API and may be removed in a future release
import sun.awt.image.ByteInterleavedRaster;
                    ^
src/de/intarsys/cwt/swt/image/ImageConverterAwt2Swt.java:54: warning: BytePackedRaster is internal proprietary API and may be removed in a future release
import sun.awt.image.BytePackedRaster;
                    ^
src/de/intarsys/cwt/font/FontEnvironment.java:105: warning: FontManager is internal proprietary API and may be removed in a future release
		definition = FontManager.getFontPath(true);
		             ^
src/de/intarsys/cwt/font/FontEnvironment.java:105: error: cannot find symbol
		definition = FontManager.getFontPath(true);
		                        ^
  symbol:   method getFontPath(boolean)
  location: interface FontManager
src/de/intarsys/cwt/swt/image/ImageConverterAwt2Swt.java:290: warning: ByteInterleavedRaster is internal proprietary API and may be removed in a future release
		} else if (raster instanceof ByteInterleavedRaster) {
		                             ^
src/de/intarsys/cwt/swt/image/ImageConverterAwt2Swt.java:292: warning: ByteInterleavedRaster is internal proprietary API and may be removed in a future release
			bytes = ((ByteInterleavedRaster) raster).getDataStorage();
			          ^
src/de/intarsys/cwt/swt/image/ImageConverterAwt2Swt.java:293: warning: BytePackedRaster is internal proprietary API and may be removed in a future release
		} else if (raster instanceof BytePackedRaster) {
		                             ^
src/de/intarsys/cwt/swt/image/ImageConverterAwt2Swt.java:295: warning: BytePackedRaster is internal proprietary API and may be removed in a future release
			bytes = ((BytePackedRaster) raster).getDataStorage();
			          ^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
19 warnings
make: *** [build] Error 1
dpkg-buildpackage: error: debian/rules build gave error exit status 2
build command failed in <builddir>/build-area/libiscwt-java-5.3.20100629
Aborting.
W: build directory not purged!


More information about the pkg-java-maintainers mailing list