equal
deleted
inserted
replaced
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 } |