--- old/src/java.desktop/share/classes/sun/awt/www/content/audio/basic.java 2018-06-08 19:42:32.000000000 -0700 +++ new/src/java.desktop/share/classes/sun/awt/www/content/audio/basic.java 2018-06-08 19:42:31.000000000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -23,23 +23,24 @@ * questions. */ -/** - * Basic .au and .snd audio handler. - * @author Jeff Nisewanger - */ package sun.awt.www.content.audio; -import java.net.*; import java.io.IOException; -import sun.applet.AppletAudioClip; +import java.net.ContentHandler; +import java.net.URLConnection; + +import com.sun.media.sound.JavaSoundAudioClip; /** - * Returns an AppletAudioClip object. + * Basic .au and .snd audio handler returns an JavaSoundAudioClip object. + *
* This provides backwards compatibility with the behavior * of ClassLoader.getResource().getContent() on JDK1.1. + * + * @author Jeff Nisewanger */ public class basic extends ContentHandler { public Object getContent(URLConnection uc) throws IOException { - return new AppletAudioClip(uc); + return JavaSoundAudioClip.create(uc); } }