jdk/src/java.base/share/classes/java/lang/invoke/MemberName.java
changeset 44591 b9bf065070fe
parent 40272 6af4511ee5a4
child 44599 942f3546b679
equal deleted inserted replaced
44590:15a77e5b7612 44591:b9bf065070fe
   147                 type = res;
   147                 type = res;
   148             } else if (type instanceof Object[]) {
   148             } else if (type instanceof Object[]) {
   149                 Object[] typeInfo = (Object[]) type;
   149                 Object[] typeInfo = (Object[]) type;
   150                 Class<?>[] ptypes = (Class<?>[]) typeInfo[1];
   150                 Class<?>[] ptypes = (Class<?>[]) typeInfo[1];
   151                 Class<?> rtype = (Class<?>) typeInfo[0];
   151                 Class<?> rtype = (Class<?>) typeInfo[0];
   152                 MethodType res = MethodType.methodType(rtype, ptypes);
   152                 MethodType res = MethodType.makeImpl(rtype, ptypes, true);
   153                 type = res;
   153                 type = res;
   154             }
   154             }
   155             // Make sure type is a MethodType for racing threads.
   155             // Make sure type is a MethodType for racing threads.
   156             assert type instanceof MethodType : "bad method type " + type;
   156             assert type instanceof MethodType : "bad method type " + type;
   157         }
   157         }