Bug#875591: FTBFS with Java 9: sun.audio

Chris West debian at fau.xxx
Tue Sep 12 13:06:21 UTC 2017


Source: jxplorer
Version: 3.3.2+dfsg
Severity: normal
User: debian-java at lists.debian.org
Usertags: default-java9

This package fails to build with default-jdk pointing to openjdk-9-jdk.
Please fix it, so that we can start the transition to Java 9.
The wiki has some common problems and their solutions:
https://wiki.debian.org/Java/Java9Pitfalls

sun.audio seems to have been removed.

Build log:

warning: [options] source value 1.5 is obsolete and will be removed in a future release
XXX: totally hacking the source version
warning: [options] target value 1.5 is obsolete and will be removed in a future release
XXX: totally hacking the target version
src/com/ca/directory/jxplorer/editor/audioeditor.java:28: error: cannot find symbol
    protected AudioStream    audioStream;
              ^
  symbol:   class AudioStream
  location: class audioeditor
src/com/ca/directory/jxplorer/editor/audioaccessory.java:8: warning: AppletAudioClip is internal proprietary API and may be removed in a future release
import sun.applet.AppletAudioClip;
                 ^
src/com/ca/directory/jxplorer/editor/audioeditor.java:15: error: package sun.audio does not exist
import sun.audio.*;
^
src/com/ca/directory/jxplorer/tree/SmartTree.java:23: warning: DragSourceContextPeer is internal proprietary API and may be removed in a future release
import java.awt.dnd.peer.DragSourceContextPeer;
                        ^
src/com/ca/directory/jxplorer/editor/audioeditor.java:135: error: cannot find symbol
            audioStream = new AudioStream(new ByteArrayInputStream(bytes));
                              ^
  symbol:   class AudioStream
  location: class audioeditor
src/com/ca/directory/jxplorer/editor/audioeditor.java:146: error: package AudioPlayer does not exist
         AudioPlayer.player.start(audioStream);
                    ^
src/com/ca/directory/jxplorer/editor/audioeditor.java:154: error: package AudioPlayer does not exist
         AudioPlayer.player.stop(audioStream);
                    ^
src/com/ca/directory/jxplorer/editor/audioaccessory.java:117: warning: AppletAudioClip is internal proprietary API and may be removed in a future release
      currentClip = new AppletAudioClip(u);
                        ^
src/com/ca/directory/jxplorer/tree/SmartTree.java:2182: warning: DragSourceContextPeer is internal proprietary API and may be removed in a future release
                    (DragSourceContextPeer dscp, DragGestureEvent dgl, Cursor dragCursor,
                     ^
src/com/ca/directory/jxplorer/tree/SmartTree.java:2186: error: constructor DragSourceContext in class DragSourceContext cannot be applied to given types;
                return new DragSourceContext(dscp, dgl, dragCursor, dragImage, imageOffset, t, dsl)
                       ^
  required: DragGestureEvent,Cursor,Image,Point,Transferable,DragSourceListener
  found: DragSourceContextPeer,DragGestureEvent,Cursor,Image,Point,Transferable,DragSourceListener
  reason: actual and formal argument lists differ in length




Cheers,
Chris.



More information about the pkg-java-maintainers mailing list