changeset 48762:23544ad7e842 nestmates

8195827: [Nestmates] jdk/internal/reflect/MethodAccessorGenerator.java should generate invokeinterface for private interface methods Reviewed-by: acorn
author dholmes
date Wed, 24 Jan 2018 23:14:32 -0500
parents f2ca4cada742
children 64231bbc1346
files src/java.base/share/classes/jdk/internal/reflect/MethodAccessorGenerator.java
diffstat 1 files changed, 5 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/jdk/internal/reflect/MethodAccessorGenerator.java	Wed Jan 24 23:12:18 2018 -0500
+++ b/src/java.base/share/classes/jdk/internal/reflect/MethodAccessorGenerator.java	Wed Jan 24 23:14:32 2018 -0500
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 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
@@ -629,14 +629,10 @@
                                     typeSizeInStackSlots(returnType));
             } else {
                 if (isInterface()) {
-                    if (isPrivate()) {
-                        cb.opc_invokespecial(targetMethodRef, count, 0);
-                    } else {
-                        cb.opc_invokeinterface(targetMethodRef,
-                                               count,
-                                               count,
-                                               typeSizeInStackSlots(returnType));
-                    }
+                    cb.opc_invokeinterface(targetMethodRef,
+                                           count,
+                                           count,
+                                           typeSizeInStackSlots(returnType));
                 } else {
                     cb.opc_invokevirtual(targetMethodRef,
                                          count,