[libbluray-devel] Fix "warning: non-varargs call of varargs method with inexact argument type for last parameter"

hpi1 git at videolan.org
Fri Dec 22 09:27:10 CET 2017


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sat Dec 16 14:05:18 2017 +0200| [506e012405a6647ee21e1f263a0fe12e25ccfc9c] | committer: hpi1

Fix "warning: non-varargs call of varargs method with inexact argument type for last parameter"

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=506e012405a6647ee21e1f263a0fe12e25ccfc9c
---

 src/libbluray/bdj/java/org/blurayx/s3d/ti/StereoscopicCodingType.java | 2 +-
 src/libbluray/bdj/java/org/blurayx/uhd/ti/UHDCodingType.java          | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/libbluray/bdj/java/org/blurayx/s3d/ti/StereoscopicCodingType.java b/src/libbluray/bdj/java/org/blurayx/s3d/ti/StereoscopicCodingType.java
index adabd1dc..16a24de4 100644
--- a/src/libbluray/bdj/java/org/blurayx/s3d/ti/StereoscopicCodingType.java
+++ b/src/libbluray/bdj/java/org/blurayx/s3d/ti/StereoscopicCodingType.java
@@ -34,7 +34,7 @@ public class StereoscopicCodingType {
                         Class classCodingType = Class.forName("org.bluray.ti.CodingType");
                         Constructor constructor = classCodingType.getDeclaredConstructor(new Class[] { String.class });
                         constructor.setAccessible(true);
-                        type = (CodingType)constructor.newInstance(new String[] { "MPEG4_MVC_VIDEO" });
+                        type = (CodingType)constructor.newInstance((Object [])new String[] { "MPEG4_MVC_VIDEO" });
                     }
                     catch (Exception e) {
                         System.err.println("StereoscopicCodingType.MPEG4_MVC_VIDEO initialization failed");
diff --git a/src/libbluray/bdj/java/org/blurayx/uhd/ti/UHDCodingType.java b/src/libbluray/bdj/java/org/blurayx/uhd/ti/UHDCodingType.java
index 6b75578e..2f82cfc6 100644
--- a/src/libbluray/bdj/java/org/blurayx/uhd/ti/UHDCodingType.java
+++ b/src/libbluray/bdj/java/org/blurayx/uhd/ti/UHDCodingType.java
@@ -35,7 +35,7 @@ public class UHDCodingType {
                         Class classCodingType = Class.forName("org.bluray.ti.CodingType");
                         Constructor constructor = classCodingType.getDeclaredConstructor(new Class[] { String.class });
                         constructor.setAccessible(true);
-                        type = (CodingType)constructor.newInstance(new String[] { "HEVC_VIDEO" });
+                        type = (CodingType)constructor.newInstance((Object [])new String[] { "HEVC_VIDEO" });
                     }
                     catch (Exception e) {
                         System.err.println("UHDCodingType.HEVC_VIDEO initialization failed");



More information about the libbluray-devel mailing list