File 09_java11_compatibility.patch of Package java3d

Description: Fixes the build failure with Java 11 caused by the removal of AppletAudioClip
Author: Jiri Slaby <jslaby@suse.cz>
Forwarded: no
---
 j3d-core-utils/src/classes/share/com/sun/j3d/utils/applet/JMainFrame.java |    9 +++------
 j3d-core-utils/src/classes/share/com/sun/j3d/utils/applet/MainFrame.java  |    9 +++------
 2 files changed, 6 insertions(+), 12 deletions(-)

--- a/j3d-core-utils/src/classes/share/com/sun/j3d/utils/applet/JMainFrame.java
+++ b/j3d-core-utils/src/classes/share/com/sun/j3d/utils/applet/JMainFrame.java
@@ -83,6 +83,8 @@ import java.net.*;
 import javax.swing.*;
 import java.util.*;
 
+import com.sun.media.sound.JavaSoundAudioClip;
+
 public class JMainFrame extends JFrame
     implements Runnable, AppletStub, AppletContext {
 
@@ -284,12 +286,7 @@ public class JMainFrame extends JFrame
     // Methods from AppletContext.
 
     public AudioClip getAudioClip( URL url ) {
-        // This is an internal undocumented routine.  However, it
-        // also provides needed functionality not otherwise available.
-        // I suspect that in a future release, JavaSoft will add an
-        // audio content handler which encapsulates this, and then
-        // we can just do a getContent just like for images.
-        return new sun.applet.AppletAudioClip( url );
+        return JavaSoundAudioClip.create(url);
     }
 
     public Image getImage( URL url ) {
--- a/j3d-core-utils/src/classes/share/com/sun/j3d/utils/applet/MainFrame.java
+++ b/j3d-core-utils/src/classes/share/com/sun/j3d/utils/applet/MainFrame.java
@@ -82,6 +82,8 @@ import java.net.*;
 import java.io.*;
 import java.util.*;
 
+import com.sun.media.sound.JavaSoundAudioClip;
+
 /// Run an Applet as an application.
 // <P>
 // Using this class you can add a trivial main program to any Applet
@@ -333,12 +335,7 @@ public class MainFrame extends Frame imp
 
     // Methods from AppletContext.
     public AudioClip getAudioClip( URL url ) {
-	// This is an internal undocumented routine.  However, it
-	// also provides needed functionality not otherwise available.
-	// I suspect that in a future release, JavaSoft will add an
-	// audio content handler which encapsulates this, and then
-	// we can just do a getContent just like for images.
-	return new sun.applet.AppletAudioClip( url );
+	return JavaSoundAudioClip.create(url);
     }
 
     public Image getImage( URL url ) {