< prev index next >

modules/media/src/main/java/com/sun/media/jfxmedia/locator/Locator.java

Print this page
rev 9619 : [mq]: 9-jake.patch

@@ -160,11 +160,11 @@
     }
 
     private static long getContentLengthLong(URLConnection connection) {
         Method method = AccessController.doPrivileged((PrivilegedAction<Method>) () -> {
             try {
-                return connection.getClass().getMethod("getContentLengthLong");
+                return URLConnection.class.getMethod("getContentLengthLong");
             } catch (NoSuchMethodException ex) {
                 return null;
             }
         });
 
< prev index next >