Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8129008

AudioClip does not report correct error for inaccessible media

XMLWordPrintable

      If one runs the Fish app with the network disconnected one gets

           [java] Exception in Application start method
           [java] MediaException: UNKNOWN : com.sun.media.jfxmedia.MediaException: could not connect to media (http://reavers.us.oracle.com/fish/water-splash-2.aiff) : com.sun.media.jfxmedia.MediaException: could not connect to media (http://reavers.us.oracle.com/fish/water-splash-2.aiff)
           [java] at javafx.scene.media.AudioClip.<init>(AudioClip.java:59)

      Ideally the exception type should be MEDIA_INACCESSIBLE.

            almatvee Alexander Matveev
            bpb Brian Burkhalter
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: