[Debian-med-packaging] Bug#678383: pixelmed: FTBFS with Java7 (uses internal Java API)

Niels Thykier niels at thykier.net
Thu Jun 21 10:46:28 UTC 2012


Package: pixelmed
Version: 20120508-1
Severity: normal
User: ubuntu-devel at lists.ubuntu.com
Usertags: openjdk-7-transition

Hi,

Your package FTBFS with Java7 because of (at least) two reasons:
 * missing -source 1.5 parameter for javac
 * use of com.sun class that disappeared in Java7

I have an example patch to solve the first issue, but not the later:

"""
javac -O -target 1.5 -source 1.5 -encoding "UTF8" -Xlint:deprecation -classpath ../../..:/usr/share/java/excalibur-bzip2-1.0.jar:/usr/share/java/commons-codec.jar:/usr/share/java/vecmath.jar \
                -sourcepath ../../.. AttributeListTableBrowser.java
warning: [options] bootstrap class path not set in conjunction with -source 1.5
../../../com/pixelmed/display/ApplicationFrame.java:166: error: package com.sun.image.codec.jpeg does not exist
                        com.sun.image.codec.jpeg.JPEGCodec.createJPEGEncoder(new FileOutputStream(snapShotFile)).encode(snapShotImage);
                                                ^
"""

You can reproduce this by using default-jdk from experimental.

We are trying to evaluate whether to migrate to Java7 as default in
Wheezy; we know it is very late in the cycle, but the reason is
#675495.

~Niels
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pixelmed-partial.debdiff
Type: text/x-diff
Size: 1805 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-med-packaging/attachments/20120621/ad5fc8d7/attachment.diff>


More information about the Debian-med-packaging mailing list