RFC: Patch to enable adapter_opt_spread jsr 292 adapter code in zero
Chris Phillips
ChPhilli at redhat.com
Wed Jun 6 06:19:27 PDT 2012
Hi
Attached is an update to this patch with further fixes.
And the summary from current 64 bit testing is attached below below.
(I will build and run the sametest on arm later this am)
On 04/06/12 08:15 AM, Chris Phillips wrote:
> Hi
> This patch provides support for jsr 292 in zero.
> It is against :
> http://icedtea.classpath.org/hg/release/icedtea7-forest-2.1/hotspot
> but will eventually apply to upstream also, ( after fixing other
> issues to
> allow testing). It enables a portion of jsr 292 logic that was not
> functional
> in the c++ Interpreter. It passes a large portion of the internal
> dynamic invoke test suite (test/java/lang/invoke) although there are
> still
> 4 failing tests and 10 "NYI" (mostly involving Ricochet frames).
>
> It has been vetted once in a slightly altered form internally but I would
> appreciate a few more eyes, would like to apply so qa testing can
> continue later today.
>
> Chris
>
>
Attached is an update to this patch with further fixes.
And the summary from current 64 bit testing is attached below below.
(I will build and run the same test on arm later this am, also will provide
patches and Makefile changes for testing with zero shortly.)
Chris
--
--
-- Woda: "Java: write once, debug anywhere" Hong Zhang
http://thehenrys.ca
| Chris Phillips @ T.O. Red Hat OpenJDK JVM Engineer, |
| mailto:ChrisPhi at RedHat.Com (416)483-3768 |
| http://LGonQn.Org/www/Chris.Phillips cell: (416)505-3610 |
"EPIC stands for Expects Perfectly Intuitive Compilers" P. Bannon
http://www.hazmatmodine.com
NOTICE:
This email message is for the sole use of the intended recipient(s)
and may contain confidential and privileged information. Any
unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
"blah blah blah - Ginger!"
--
--
-------------- next part --------------
# HG changeset patch
# User chrisphi
# Date 1338987885 14400
# Node ID 8ee78476051b9d220666a541243e8f5872ca5469
# Parent d1154290751107fc148173d73bc0cdef145f2230
Enable _adapter_opt_spread* jsr 292 code, now passes
all but 13 tests in John Rose test suite, 10 of those are NYI.
Should fix issues seen in arm qa testing.
diff --git a/src/cpu/zero/vm/cppInterpreter_zero.cpp b/src/cpu/zero/vm/cppInterpreter_zero.cpp
--- a/src/cpu/zero/vm/cppInterpreter_zero.cpp
+++ b/src/cpu/zero/vm/cppInterpreter_zero.cpp
@@ -36,6 +36,7 @@
#include "oops/oop.inline.hpp"
#include "prims/jvmtiExport.hpp"
#include "prims/jvmtiThreadState.hpp"
+#include "prims/methodHandles.hpp"
#include "runtime/arguments.hpp"
#include "runtime/deoptimization.hpp"
#include "runtime/frame.inline.hpp"
@@ -65,6 +66,14 @@
CALL_VM_NOCHECK_NOFIX(func) \
fixup_after_potential_safepoint()
+
+#ifdef DEBUG
+#define CPPINT_DEBUG( Z_code_ ) Z_code_
+CPPINT_DEBUG ( static const char *FFng_Zero_Flag = "CPPINT_DEBUG_ON\n"; )
+#else
+#define CPPINT_DEBUG( Z_code_ )
+#endif
+
int CppInterpreter::normal_entry(methodOop method, intptr_t UNUSED, TRAPS) {
JavaThread *thread = (JavaThread *) THREAD;
@@ -699,6 +708,9 @@
method_handle = adapter;
}
+ CPPINT_DEBUG( tty->print_cr( "Process method_handle sp: 0x%x unwind_sp: 0x%x result_slots: %d.", \
+ stack->sp(), unwind_sp, result_slots ); )
+
// Start processing
process_method_handle(method_handle, THREAD);
if (HAS_PENDING_EXCEPTION)
@@ -718,6 +730,8 @@
}
// Check
+ CPPINT_DEBUG( tty->print_cr( "Exiting method_handle_entry, sp: 0x%x unwind_sp: 0x%x result_slots: %d.", \
+ stack->sp(), unwind_sp, result_slots ); )
assert(stack->sp() == unwind_sp - result_slots, "should be");
// No deoptimized frames on the stack
@@ -725,6 +739,7 @@
}
void CppInterpreter::process_method_handle(oop method_handle, TRAPS) {
+
JavaThread *thread = (JavaThread *) THREAD;
ZeroStack *stack = thread->zero_stack();
intptr_t *vmslots = stack->sp();
@@ -739,6 +754,7 @@
(MethodHandles::EntryKind) (((intptr_t) entry) & 0xffffffff);
methodOop method = NULL;
+ CPPINT_DEBUG( tty->print_cr( "\nEntering %s 0x%x.",MethodHandles::entry_name(entry_kind), (char *)vmslots ); )
switch (entry_kind) {
case MethodHandles::_invokestatic_mh:
direct_to_method = true;
@@ -1080,12 +1096,309 @@
}
break;
- default:
- tty->print_cr("unhandled entry_kind %s",
+ case MethodHandles::_adapter_opt_spread_0:
+ case MethodHandles::_adapter_opt_spread_1_ref:
+ case MethodHandles::_adapter_opt_spread_2_ref:
+ case MethodHandles::_adapter_opt_spread_3_ref:
+ case MethodHandles::_adapter_opt_spread_4_ref:
+ case MethodHandles::_adapter_opt_spread_5_ref:
+ case MethodHandles::_adapter_opt_spread_ref:
+ case MethodHandles::_adapter_opt_spread_byte:
+ case MethodHandles::_adapter_opt_spread_char:
+ case MethodHandles::_adapter_opt_spread_short:
+ case MethodHandles::_adapter_opt_spread_int:
+ case MethodHandles::_adapter_opt_spread_long:
+ case MethodHandles::_adapter_opt_spread_float:
+ case MethodHandles::_adapter_opt_spread_double:
+ {
+
+ // spread an array out into a group of arguments
+
+ int arg_slot =
+ java_lang_invoke_AdapterMethodHandle::vmargslot(method_handle);
+ // Fetch the argument, which we will cast to the required array type.
+ oop arg = VMSLOTS_OBJECT(arg_slot);
+
+ BasicType elem_type =
+ MethodHandles::ek_adapter_opt_spread_type(entry_kind);
+ int elem_slots =
+ type2size[elem_type]; // 1 or 2
+ int array_slots =
+ 1; // array is always a T_OBJECT
+ int length_offset =
+ arrayOopDesc::length_offset_in_bytes();
+ int elem0_offset =
+ arrayOopDesc::base_offset_in_bytes(elem_type);
+ int length_constant =
+ MethodHandles::ek_adapter_opt_spread_count(entry_kind);
+ int array_length = 0;
+ void *array_elem0 = NULL;
+
+ CPPINT_DEBUG( tty->print_cr( \
+ "ENTERING _adapter_opt_spread: %s %d %d 0x%x 0x%x", \
+ type2name(elem_type), arg_slot, length_constant, (char *)arg, stack->sp() ); )
+
+ // If the spread count is -1, the length is "variable" ie controlled
+ // by the array length.
+ // See ek_adapter_opt_spread_count in methodHandles.hpp
+ // If array lenth is 0 or spread count is 0 , we will remove the argslot.
+
+ bool length_can_be_zero = (length_constant == 0);
+ if (length_constant < 0) {
+ // some adapters with variable length must handle the zero case
+ if (!OptimizeMethodHandles ||
+ elem_type != T_OBJECT)
+ length_can_be_zero = true;
+ }
+
+ if (arg == NULL) {
+ CPPINT_DEBUG( tty->print_cr( \
+ "arg NULL implies Array_length == 0, remove slot." ); )
+ // remove arg slot
+ remove_vmslots(arg_slot, 1, THREAD); // doesn't trap
+ vmslots = stack->sp(); // unused, but let the compiler figure that out
+ CPPINT_DEBUG( tty->print_cr( \
+ " >> Would LEAVE _adapter_opt_spread with NPE." ); )
+#ifdef _NOT_DEF_
+ // queue a nullpointer exception for the caller
+ stack->set_sp(calculate_unwind_sp(stack, method_handle));
+ CALL_VM_NOCHECK_NOFIX(
+ throw_exception(
+ thread,
+ vmSymbols::java_lang_NullPointerException()));
+ // NB all oops trashed!
+ assert(HAS_PENDING_EXCEPTION, "should do");
+ return;
+#endif
+ } else { // (arg != NULL)
+ klassOop objKlassOop = arg->klass();
+ klassOop klassOf = java_lang_Class::as_klassOop(
+ java_lang_invoke_AdapterMethodHandle::argument(method_handle));
+
+ if (objKlassOop != klassOf &&
+ !objKlassOop->klass_part()->is_subtype_of(klassOf)) {
+ CPPINT_DEBUG( tty->print_cr( \
+ "CLASS CAST ERROR #1 in _adapter_opt_spread." ); )
+ ResourceMark rm(THREAD);
+ const char* objName = Klass::cast(objKlassOop)->external_name();
+ const char* klassName = Klass::cast(klassOf)->external_name();
+ char* message = SharedRuntime::generate_class_cast_message(
+ objName, klassName);
+
+ stack->set_sp(calculate_unwind_sp(stack, method_handle));
+ CALL_VM_NOCHECK_NOFIX(
+ throw_exception(
+ thread,
+ vmSymbols::java_lang_ClassCastException(), message));
+ // NB all oops trashed!
+ assert(HAS_PENDING_EXCEPTION, "should do");
+ return;
+ }
+
+ // Check the array type.
+
+ klassOop array_klass_oop = NULL;
+ BasicType array_type = java_lang_Class::as_BasicType(
+ java_lang_invoke_AdapterMethodHandle::argument(method_handle),
+ &array_klass_oop);
+ arrayKlassHandle array_klass(THREAD, array_klass_oop);
+
+ assert(array_type == T_OBJECT, "");
+ assert(Klass::cast(array_klass_oop)->oop_is_array(), "");
+ if (!(array_type == T_OBJECT) ||
+ !(Klass::cast(array_klass_oop)->oop_is_array())) {
+ CPPINT_DEBUG( tty->print_cr( \
+ "CLASS CAST ERROR #2 not an array in _adapter_opt_spread." ); )
+ ResourceMark rm(THREAD);
+ const char* objName = Klass::cast(objKlassOop)->external_name();
+ const char* klassName = Klass::cast(klassOf)->external_name();
+ char* message = SharedRuntime::generate_class_cast_message(
+ objName, klassName);
+ stack->set_sp(calculate_unwind_sp(stack, method_handle));
+ CALL_VM_NOCHECK_NOFIX(
+ throw_exception(
+ thread,
+ vmSymbols::java_lang_ClassCastException(), message));
+ // NB all oops trashed!
+ assert(HAS_PENDING_EXCEPTION, "should do");
+ return;
+ }
+
+ klassOop element_klass_oop = NULL;
+ BasicType element_type =
+ java_lang_Class::as_BasicType(array_klass->component_mirror(),
+ &element_klass_oop);
+ KlassHandle element_klass(THREAD, element_klass_oop);
+ if ((elem_type != T_OBJECT) && (elem_type != element_type)) {
+ CPPINT_DEBUG( tty->print_cr( \
+ "CLASS CAST ERROR #3 invalid type %s != %s in _adapter_opt_spread.", \
+ type2name(elem_type), type2name(element_type) ); )
+ ResourceMark rm(THREAD);
+ const char* objName = Klass::cast(objKlassOop)->external_name();
+ const char* klassName = Klass::cast(klassOf)->external_name();
+ char* message = SharedRuntime::generate_class_cast_message(
+ objName, klassName);
+ stack->set_sp(calculate_unwind_sp(stack, method_handle));
+ CALL_VM_NOCHECK_NOFIX(
+ throw_exception(
+ thread,
+ vmSymbols::java_lang_ClassCastException(), message));
+ // NB all oops trashed!
+ assert(HAS_PENDING_EXCEPTION, "should do");
+ return;
+ }
+
+ array_length = arrayOop(arg)->length();
+
+ // Check the required length.
+ if (length_constant > 0) { // must match ?
+ if ( array_length != length_constant ) {
+ CPPINT_DEBUG( tty->print_cr( \
+ "ARRY INDEX ERROR #4 invalid array length in _adapter_opt_spread." ); )
+ //fixme ArrayIndexOutOfBoundsException ?
+ ResourceMark rm(THREAD);
+ const char* objName = Klass::cast(objKlassOop)->external_name();
+ const char* klassName = Klass::cast(klassOf)->external_name();
+ char* message = SharedRuntime::generate_class_cast_message(
+ objName, klassName);
+
+ stack->set_sp(calculate_unwind_sp(stack, method_handle));
+ CALL_VM_NOCHECK_NOFIX(
+ throw_exception(
+ thread,
+ vmSymbols::java_lang_ArrayIndexOutOfBoundsException(), message));
+ // NB all oops trashed!
+ assert(HAS_PENDING_EXCEPTION, "should do");
+ return;
+ }
+ // use array_length ?
+ } else { // length_constant == [ -1 or 0 ]
+ if ( (array_length > 0) || length_can_be_zero ) {
+ // use array_length.
+ } else { // array_length 0 and not length_can_be_zero
+ CPPINT_DEBUG( tty->print_cr( \
+ "ARRY INDEX ERROR #5 arry length 0 in _adapter_opt_spread." ); )
+ //fixme ArrayIndexOutOfBoundsException ?
+ ResourceMark rm(THREAD);
+ const char* objName = Klass::cast(objKlassOop)->external_name();
+ const char* klassName = Klass::cast(klassOf)->external_name();
+ char* message = SharedRuntime::generate_class_cast_message(
+ objName, klassName);
+
+ stack->set_sp(calculate_unwind_sp(stack, method_handle));
+ CALL_VM_NOCHECK_NOFIX(
+ throw_exception(
+ thread,
+ vmSymbols::java_lang_ArrayIndexOutOfBoundsException(), message));
+ // NB all oops trashed!
+ assert(HAS_PENDING_EXCEPTION, "should do");
+ return;
+ }
+ }
+
+ // Array length checked out. Now insert any required arg slots.
+ // array_length - 1 more slots if array_length > 0
+ // otherwise if array_length == 0 remove arg_slot.
+
+ if ( array_length > 0 ) {
+ int slots = (array_length * elem_slots) - 1;
+ CPPINT_DEBUG( tty->print_cr( \
+ "array_length %d %d slots needed in _adapter_opt_spread.",\
+ array_length, slots); )
+ debug_only(if (elem_slots == 2) \
+ assert ((slots % 2 == 1)," bad slots calc"));
+ if ( slots > 0 ) {
+ intptr_t *unwind_sp =
+ calculate_unwind_sp(stack, method_handle);
+ insert_vmslots(arg_slot, slots, THREAD);
+ if (HAS_PENDING_EXCEPTION) {
+ // all oops trashed
+ stack->set_sp(unwind_sp);
+ return;
+ }
+ }
+ vmslots = stack->sp();
+ arg_slot += slots;
+
+ array_elem0 = arrayOop(arg)->base(elem_type);
+
+ // Copy from the array to the new arg slots.
+ // [from native : Beware: Arguments that are shallow
+ // on the stack are deep in the array,
+ // and vice versa. So a downward-growing stack (the usual)
+ // has to be copied elementwise in reverse order
+ // from the source array.]
+
+ void * array_elem = array_elem0;
+ int top_slot = arg_slot;
+
+ debug_only(if (elem_slots == 2) \
+ assert ((((ulong)(char *)&vmslots[top_slot]) % \
+ (u_int)type2aelembytes(elem_type) == 0), \
+ " bad arg alignment"));
+
+ CPPINT_DEBUG( tty->print_cr( \
+ "BEGIN ARRY LOOP %d %d 0x%x 0x%x _adapter_opt_spread.",\
+ array_length, top_slot, &vmslots[top_slot], array_elem ); )
+
+ for (int index = 0; index < array_length; index++) {
+ switch (elem_type) {
+ case T_BYTE:
+ SET_VMSLOTS_INT(*(jint*)array_elem, top_slot);
+ break;
+ case T_CHAR:
+ SET_VMSLOTS_INT(*(jint*)array_elem, top_slot);
+ break;
+ case T_SHORT:
+ SET_VMSLOTS_INT(*(jint*)array_elem, top_slot);
+ break;
+ case T_INT:
+ SET_VMSLOTS_INT(*(jint*)array_elem, top_slot);
+ break;
+ case T_FLOAT:
+ SET_VMSLOTS_FLOAT(*(jfloat*)array_elem,top_slot);
+ break;
+ case T_LONG:
+ SET_VMSLOTS_LONG(*(jlong*)array_elem, top_slot);
+ break;
+ case T_DOUBLE:
+ SET_VMSLOTS_DOUBLE(*(jdouble*)array_elem, top_slot);
+ break;
+ case T_OBJECT:
+ SET_VMSLOTS_OBJECT(*(oopDesc**)array_elem, top_slot);
+ break;
+ default:
+ tty->print_cr("unhandled type %s", type2name(elem_type));
+ ShouldNotReachHere();
+ }
+ array_elem = (void*)((char *)array_elem +
+ type2aelembytes(element_type));
+ top_slot -= elem_slots;
+ }
+ arg_slot++;
+ }
+ }
+ if ((array_length == 0) && (arg != NULL)) {
+ CPPINT_DEBUG( tty->print_cr( \
+ "Array_length == 0, will remove slot." ); )
+ // remove arg slot
+ remove_vmslots(arg_slot, 1, THREAD); // doesn't trap
+ // unused, but let the compiler figure that out
+ vmslots = stack->sp();
+ //
+ }
+ CPPINT_DEBUG( tty->print_cr( \
+ "LEAVING _adapter_opt_spread: %s 0x%x 0x%x \n", \
+ type2name(elem_type), (char *)arg, (char *)stack->sp() ); )
+ }
+ break;
+ default:
+ tty->print_cr("unhandled entry_kind %s",
MethodHandles::entry_name(entry_kind));
- ShouldNotReachHere();
+ ShouldNotReachHere();
}
+
// Continue along the chain
if (direct_to_method) {
if (method == NULL) {
@@ -1138,6 +1451,7 @@
tty->print_cr("dst_rtype = %s", type2name(dst_rtype));
ShouldNotReachHere();
}
+ CPPINT_DEBUG( tty->print_cr( "LEAVING %s\n",MethodHandles::entry_name(entry_kind) ); )
}
// The new slots will be inserted before slot insert_before.
diff --git a/src/cpu/zero/vm/methodHandles_zero.cpp b/src/cpu/zero/vm/methodHandles_zero.cpp
--- a/src/cpu/zero/vm/methodHandles_zero.cpp
+++ b/src/cpu/zero/vm/methodHandles_zero.cpp
@@ -38,9 +38,8 @@
|(1<<java_lang_invoke_AdapterMethodHandle::OP_ROT_ARGS)
|(1<<java_lang_invoke_AdapterMethodHandle::OP_DUP_ARGS)
|(1<<java_lang_invoke_AdapterMethodHandle::OP_DROP_ARGS)
- //|(1<<java_lang_invoke_AdapterMethodHandle::OP_SPREAD_ARGS) //BUG!
+ |(1<<java_lang_invoke_AdapterMethodHandle::OP_SPREAD_ARGS)
);
- // FIXME: MethodHandlesTest gets a crash if we enable OP_SPREAD_ARGS.
}
void MethodHandles::generate_method_handle_stub(MacroAssembler* masm,
-------------- next part --------------
java -Xint -showversion \
-Dtest.java.lang.invoke.MethodHandlesTest.verbosity=0 \
-cp /usr/share/java/junit4.jar:. org.junit.runner.JUnitCore \
test.java.lang.invoke.InvokeGenericTest test.java.lang.invoke.JavaDocExamplesTest test.java.lang.invoke.MethodHandlesTest test.java.lang.invoke.ClassValueTest
java version "1.7.0-internal"
OpenJDK Runtime Environment (build 1.7.0-internal-chphilli_2012_06_04_09_41-b00)
OpenJDK 64-Bit Zero VM (build 22.0-b10, interpreted mode)
JUnit version 4.8.2
..E.E..E..E.....boo
.E.E.E.E.E.E...IIIIIII...................E...........E.E...
Time: 5.745
There were 13 failures:
1) testBoxConversions(test.java.lang.invoke.InvokeGenericTest)
java.lang.invoke.WrongMethodTypeException: method handle cannot be called with a different arity as (ILjava/lang/Object;)Ljava/util/List;
at test.java.lang.invoke.InvokeGenericTest.testBoxConversions(InvokeGenericTest.java:531)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:24)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
at org.junit.runner.JUnitCore.run(JUnitCore.java:136)
at org.junit.runner.JUnitCore.run(JUnitCore.java:117)
at org.junit.runner.JUnitCore.runMain(JUnitCore.java:98)
at org.junit.runner.JUnitCore.runMainAndExit(JUnitCore.java:53)
at org.junit.runner.JUnitCore.main(JUnitCore.java:45)
2) testSimple(test.java.lang.invoke.InvokeGenericTest)
java.lang.InternalError: NYI
at java.lang.invoke.AdapterMethodHandle.makeReturnConversion(AdapterMethodHandle.java:252)
at java.lang.invoke.AdapterMethodHandle.makePairwiseConvert(AdapterMethodHandle.java:208)
at java.lang.invoke.MethodHandleImpl.convertArguments(MethodHandleImpl.java:760)
at java.lang.invoke.MethodHandleImpl.convertArguments(MethodHandleImpl.java:737)
at java.lang.invoke.MethodHandle.asType(MethodHandle.java:693)
at java.lang.invoke.InvokeGeneric.dispatch(InvokeGeneric.java:103)
at java.lang.invoke.InvokeGeneric.dispatchWithConversion(InvokeGeneric.java:117)
at java.lang.invoke.FilterGeneric$F4.invoke_F2(FilterGeneric.java:616)
at test.java.lang.invoke.InvokeGenericTest.testSimple(InvokeGenericTest.java:360)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:24)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
at org.junit.runner.JUnitCore.run(JUnitCore.java:136)
at org.junit.runner.JUnitCore.run(JUnitCore.java:117)
at org.junit.runner.JUnitCore.runMain(JUnitCore.java:98)
at org.junit.runner.JUnitCore.runMainAndExit(JUnitCore.java:53)
at org.junit.runner.JUnitCore.main(JUnitCore.java:45)
3) testAlternateName(test.java.lang.invoke.InvokeGenericTest)
java.lang.InternalError: NYI
at java.lang.invoke.AdapterMethodHandle.makeReturnConversion(AdapterMethodHandle.java:252)
at java.lang.invoke.AdapterMethodHandle.makePairwiseConvert(AdapterMethodHandle.java:208)
at java.lang.invoke.MethodHandleImpl.convertArguments(MethodHandleImpl.java:760)
at java.lang.invoke.MethodHandleImpl.convertArguments(MethodHandleImpl.java:737)
at java.lang.invoke.MethodHandle.asType(MethodHandle.java:693)
at java.lang.invoke.InvokeGeneric.dispatch(InvokeGeneric.java:103)
at java.lang.invoke.InvokeGeneric.dispatchWithConversion(InvokeGeneric.java:117)
at java.lang.invoke.FilterGeneric$F4.invoke_F2(FilterGeneric.java:616)
at test.java.lang.invoke.InvokeGenericTest.testAlternateName(InvokeGenericTest.java:384)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:24)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
at org.junit.runner.JUnitCore.run(JUnitCore.java:136)
at org.junit.runner.JUnitCore.run(JUnitCore.java:117)
at org.junit.runner.JUnitCore.runMain(JUnitCore.java:98)
at org.junit.runner.JUnitCore.runMainAndExit(JUnitCore.java:53)
at org.junit.runner.JUnitCore.main(JUnitCore.java:45)
4) testReferenceConversions(test.java.lang.invoke.InvokeGenericTest)
java.lang.InternalError: NYI
at java.lang.invoke.AdapterMethodHandle.makeReturnConversion(AdapterMethodHandle.java:252)
at java.lang.invoke.AdapterMethodHandle.makePairwiseConvert(AdapterMethodHandle.java:208)
at java.lang.invoke.MethodHandleImpl.convertArguments(MethodHandleImpl.java:760)
at java.lang.invoke.MethodHandleImpl.convertArguments(MethodHandleImpl.java:737)
at java.lang.invoke.MethodHandle.asType(MethodHandle.java:693)
at java.lang.invoke.InvokeGeneric.dispatch(InvokeGeneric.java:103)
at java.lang.invoke.InvokeGeneric.dispatchWithConversion(InvokeGeneric.java:117)
at java.lang.invoke.FilterGeneric$F4.invoke_F2(FilterGeneric.java:616)
at test.java.lang.invoke.InvokeGenericTest.testReferenceConversions(InvokeGenericTest.java:515)
at test.java.lang.invoke.InvokeGenericTest.testReferenceConversions(InvokeGenericTest.java:485)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:24)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
at org.junit.runner.JUnitCore.run(JUnitCore.java:136)
at org.junit.runner.JUnitCore.run(JUnitCore.java:117)
at org.junit.runner.JUnitCore.runMain(JUnitCore.java:98)
at org.junit.runner.JUnitCore.runMainAndExit(JUnitCore.java:53)
at org.junit.runner.JUnitCore.main(JUnitCore.java:45)
5) testMethodHandlesSummary(test.java.lang.invoke.JavaDocExamplesTest)
java.lang.InternalError: NYI
at java.lang.invoke.AdapterMethodHandle.makeReturnConversion(AdapterMethodHandle.java:252)
at java.lang.invoke.AdapterMethodHandle.makePairwiseConvert(AdapterMethodHandle.java:208)
at java.lang.invoke.MethodHandleImpl.convertArguments(MethodHandleImpl.java:760)
at java.lang.invoke.MethodHandleImpl.collectArguments(MethodHandleImpl.java:842)
at java.lang.invoke.MethodHandleImpl.collectArguments(MethodHandleImpl.java:820)
at java.lang.invoke.MethodHandle.asCollector(MethodHandle.java:889)
at java.lang.invoke.AdapterMethodHandle$AsVarargsCollector.<init>(AdapterMethodHandle.java:568)
at java.lang.invoke.AdapterMethodHandle.makeVarargsCollector(AdapterMethodHandle.java:556)
at java.lang.invoke.MethodHandleImpl.findMethod(MethodHandleImpl.java:95)
at java.lang.invoke.MethodHandles$Lookup.accessStatic(MethodHandles.java:588)
at java.lang.invoke.MethodHandles$Lookup.findStatic(MethodHandles.java:583)
at test.java.lang.invoke.JavaDocExamplesTest.testMethodHandlesSummary(JavaDocExamplesTest.java:241)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:24)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
at org.junit.runner.JUnitCore.run(JUnitCore.java:136)
at org.junit.runner.JUnitCore.run(JUnitCore.java:117)
at org.junit.runner.JUnitCore.runMain(JUnitCore.java:98)
at org.junit.runner.JUnitCore.runMainAndExit(JUnitCore.java:53)
at org.junit.runner.JUnitCore.main(JUnitCore.java:45)
6) testAsSpreader(test.java.lang.invoke.JavaDocExamplesTest)
java.lang.InternalError: NYI
at java.lang.invoke.AdapterMethodHandle.makeReturnConversion(AdapterMethodHandle.java:252)
at java.lang.invoke.AdapterMethodHandle.makePairwiseConvert(AdapterMethodHandle.java:208)
at java.lang.invoke.MethodHandleImpl.convertArguments(MethodHandleImpl.java:760)
at java.lang.invoke.MethodHandleImpl.collectArguments(MethodHandleImpl.java:842)
at java.lang.invoke.MethodHandleImpl.collectArguments(MethodHandleImpl.java:820)
at java.lang.invoke.MethodHandle.asCollector(MethodHandle.java:889)
at java.lang.invoke.AdapterMethodHandle$AsVarargsCollector.<init>(AdapterMethodHandle.java:568)
at java.lang.invoke.AdapterMethodHandle.makeVarargsCollector(AdapterMethodHandle.java:556)
at java.lang.invoke.MethodHandleImpl.findMethod(MethodHandleImpl.java:95)
at java.lang.invoke.MethodHandles$Lookup.accessStatic(MethodHandles.java:588)
at java.lang.invoke.MethodHandles$Lookup.findStatic(MethodHandles.java:583)
at sun.invoke.util.ValueConversions$LazyStatics.<clinit>(ValueConversions.java:694)
at sun.invoke.util.ValueConversions.buildArrayProducer(ValueConversions.java:1176)
at sun.invoke.util.ValueConversions.varargsArray(ValueConversions.java:1164)
at java.lang.invoke.MethodHandle.asCollector(MethodHandle.java:888)
at test.java.lang.invoke.JavaDocExamplesTest.testAsSpreader(JavaDocExamplesTest.java:292)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:24)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
at org.junit.runner.JUnitCore.run(JUnitCore.java:136)
at org.junit.runner.JUnitCore.run(JUnitCore.java:117)
at org.junit.runner.JUnitCore.runMain(JUnitCore.java:98)
at org.junit.runner.JUnitCore.runMainAndExit(JUnitCore.java:53)
at org.junit.runner.JUnitCore.main(JUnitCore.java:45)
7) testAsCollector(test.java.lang.invoke.JavaDocExamplesTest)
java.lang.NoClassDefFoundError: Could not initialize class sun.invoke.util.ValueConversions$LazyStatics
at sun.invoke.util.ValueConversions.buildArrayProducer(ValueConversions.java:1176)
at sun.invoke.util.ValueConversions.varargsArray(ValueConversions.java:1164)
at java.lang.invoke.MethodHandle.asCollector(MethodHandle.java:888)
at test.java.lang.invoke.JavaDocExamplesTest.testAsCollector(JavaDocExamplesTest.java:318)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:24)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
at org.junit.runner.JUnitCore.run(JUnitCore.java:136)
at org.junit.runner.JUnitCore.run(JUnitCore.java:117)
at org.junit.runner.JUnitCore.runMain(JUnitCore.java:98)
at org.junit.runner.JUnitCore.runMainAndExit(JUnitCore.java:53)
at org.junit.runner.JUnitCore.main(JUnitCore.java:45)
8) testAsVarargsCollector(test.java.lang.invoke.JavaDocExamplesTest)
java.lang.InternalError: NYI
at java.lang.invoke.AdapterMethodHandle.makeReturnConversion(AdapterMethodHandle.java:252)
at java.lang.invoke.AdapterMethodHandle.makePairwiseConvert(AdapterMethodHandle.java:208)
at java.lang.invoke.MethodHandleImpl.convertArguments(MethodHandleImpl.java:760)
at java.lang.invoke.MethodHandleImpl.collectArguments(MethodHandleImpl.java:842)
at java.lang.invoke.MethodHandleImpl.collectArguments(MethodHandleImpl.java:820)
at java.lang.invoke.MethodHandle.asCollector(MethodHandle.java:889)
at java.lang.invoke.AdapterMethodHandle$AsVarargsCollector.<init>(AdapterMethodHandle.java:568)
at java.lang.invoke.AdapterMethodHandle.makeVarargsCollector(AdapterMethodHandle.java:556)
at java.lang.invoke.MethodHandleImpl.findMethod(MethodHandleImpl.java:95)
at java.lang.invoke.MethodHandles$Lookup.accessStatic(MethodHandles.java:588)
at java.lang.invoke.MethodHandles$Lookup.findStatic(MethodHandles.java:583)
at test.java.lang.invoke.JavaDocExamplesTest.testAsVarargsCollector(JavaDocExamplesTest.java:349)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:24)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
at org.junit.runner.JUnitCore.run(JUnitCore.java:136)
at org.junit.runner.JUnitCore.run(JUnitCore.java:117)
at org.junit.runner.JUnitCore.runMain(JUnitCore.java:98)
at org.junit.runner.JUnitCore.runMainAndExit(JUnitCore.java:53)
at org.junit.runner.JUnitCore.main(JUnitCore.java:45)
9) testAsFixedArity(test.java.lang.invoke.JavaDocExamplesTest)
java.lang.InternalError: NYI
at java.lang.invoke.AdapterMethodHandle.makeReturnConversion(AdapterMethodHandle.java:252)
at java.lang.invoke.AdapterMethodHandle.makePairwiseConvert(AdapterMethodHandle.java:208)
at java.lang.invoke.MethodHandleImpl.convertArguments(MethodHandleImpl.java:760)
at java.lang.invoke.MethodHandleImpl.collectArguments(MethodHandleImpl.java:842)
at java.lang.invoke.MethodHandleImpl.collectArguments(MethodHandleImpl.java:820)
at java.lang.invoke.MethodHandle.asCollector(MethodHandle.java:889)
at java.lang.invoke.AdapterMethodHandle$AsVarargsCollector.<init>(AdapterMethodHandle.java:568)
at java.lang.invoke.AdapterMethodHandle.makeVarargsCollector(AdapterMethodHandle.java:556)
at java.lang.invoke.MethodHandleImpl.findMethod(MethodHandleImpl.java:95)
at java.lang.invoke.MethodHandles$Lookup.accessStatic(MethodHandles.java:588)
at java.lang.invoke.MethodHandles$Lookup.findStatic(MethodHandles.java:583)
at test.java.lang.invoke.JavaDocExamplesTest.testAsFixedArity(JavaDocExamplesTest.java:368)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:24)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
at org.junit.runner.JUnitCore.run(JUnitCore.java:136)
at org.junit.runner.JUnitCore.run(JUnitCore.java:117)
at org.junit.runner.JUnitCore.runMain(JUnitCore.java:98)
at org.junit.runner.JUnitCore.runMainAndExit(JUnitCore.java:53)
at org.junit.runner.JUnitCore.main(JUnitCore.java:45)
10) testAsTypeCornerCases(test.java.lang.invoke.JavaDocExamplesTest)
java.lang.ClassCastException: java.lang.Byte cannot be cast to java.lang.Integer
at java.lang.invoke.FromGeneric$A1.invoke_L1(FromGeneric.java:519)
at java.lang.invoke.ToGeneric$A1.target(ToGeneric.java:639)
at java.lang.invoke.ToGeneric$A1.targetA1(ToGeneric.java:640)
at java.lang.invoke.ToGeneric$A1.invoke_L(ToGeneric.java:643)
at java.lang.invoke.FilterGeneric$F2.invoke_V1(FilterGeneric.java:537)
at java.lang.invoke.ToGeneric$A1.target(ToGeneric.java:639)
at java.lang.invoke.ToGeneric$A1.targetA1(ToGeneric.java:641)
at java.lang.invoke.ToGeneric$A1.invoke_I(ToGeneric.java:649)
at java.lang.invoke.FromGeneric$A4.invoke_I4(FromGeneric.java:556)
at java.lang.invoke.FilterGeneric$F3.invoke_F2(FilterGeneric.java:577)
at java.lang.invoke.FilterGeneric$F4.invoke_V3(FilterGeneric.java:608)
at java.lang.invoke.ToGeneric$A3.target(ToGeneric.java:699)
at java.lang.invoke.ToGeneric$A3.targetA3(ToGeneric.java:701)
at java.lang.invoke.ToGeneric$A3.invoke_I(ToGeneric.java:713)
at test.java.lang.invoke.JavaDocExamplesTest.testAsTypeCornerCases(JavaDocExamplesTest.java:423)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:24)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
at org.junit.runner.JUnitCore.run(JUnitCore.java:136)
at org.junit.runner.JUnitCore.run(JUnitCore.java:117)
at org.junit.runner.JUnitCore.runMain(JUnitCore.java:98)
at org.junit.runner.JUnitCore.runMainAndExit(JUnitCore.java:53)
at org.junit.runner.JUnitCore.main(JUnitCore.java:45)
11) testFilterReturnValue(test.java.lang.invoke.MethodHandlesTest)
java.lang.InternalError: NYI
at java.lang.invoke.AdapterMethodHandle.makeReturnConversion(AdapterMethodHandle.java:252)
at java.lang.invoke.AdapterMethodHandle.makePairwiseConvert(AdapterMethodHandle.java:208)
at java.lang.invoke.MethodHandleImpl.convertArguments(MethodHandleImpl.java:760)
at java.lang.invoke.MethodHandleImpl.foldArguments(MethodHandleImpl.java:900)
at java.lang.invoke.MethodHandles.foldArguments(MethodHandles.java:2105)
at java.lang.invoke.MethodHandles.filterReturnValue(MethodHandles.java:2005)
at test.java.lang.invoke.MethodHandlesTest.testFilterReturnValue(MethodHandlesTest.java:1658)
at test.java.lang.invoke.MethodHandlesTest.testFilterReturnValue(MethodHandlesTest.java:1641)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:24)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
at org.junit.runner.JUnitCore.run(JUnitCore.java:136)
at org.junit.runner.JUnitCore.run(JUnitCore.java:117)
at org.junit.runner.JUnitCore.runMain(JUnitCore.java:98)
at org.junit.runner.JUnitCore.runMainAndExit(JUnitCore.java:53)
at org.junit.runner.JUnitCore.main(JUnitCore.java:45)
12) testFilterArguments(test.java.lang.invoke.MethodHandlesTest)
java.lang.InternalError: NYI
at java.lang.invoke.AdapterMethodHandle.makeReturnConversion(AdapterMethodHandle.java:252)
at java.lang.invoke.AdapterMethodHandle.makePairwiseConvert(AdapterMethodHandle.java:208)
at java.lang.invoke.MethodHandleImpl.convertArguments(MethodHandleImpl.java:760)
at java.lang.invoke.MethodHandleImpl.convertArguments(MethodHandleImpl.java:737)
at java.lang.invoke.MethodHandle.asType(MethodHandle.java:693)
at java.lang.invoke.MethodHandleImpl.filterArgument(MethodHandleImpl.java:877)
at java.lang.invoke.MethodHandles.filterArgument(MethodHandles.java:1924)
at java.lang.invoke.MethodHandles.filterArguments(MethodHandles.java:1910)
at test.java.lang.invoke.MethodHandlesTest.testFilterArguments(MethodHandlesTest.java:1695)
at test.java.lang.invoke.MethodHandlesTest.testFilterArguments(MethodHandlesTest.java:1682)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:24)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
at org.junit.runner.JUnitCore.run(JUnitCore.java:136)
at org.junit.runner.JUnitCore.run(JUnitCore.java:117)
at org.junit.runner.JUnitCore.runMain(JUnitCore.java:98)
at org.junit.runner.JUnitCore.runMainAndExit(JUnitCore.java:53)
at org.junit.runner.JUnitCore.main(JUnitCore.java:45)
13) testFoldArguments(test.java.lang.invoke.MethodHandlesTest)
java.lang.InternalError: NYI
at java.lang.invoke.AdapterMethodHandle.makeReturnConversion(AdapterMethodHandle.java:252)
at java.lang.invoke.AdapterMethodHandle.makePairwiseConvert(AdapterMethodHandle.java:208)
at java.lang.invoke.MethodHandleImpl.convertArguments(MethodHandleImpl.java:760)
at java.lang.invoke.MethodHandleImpl.foldArguments(MethodHandleImpl.java:900)
at java.lang.invoke.MethodHandles.foldArguments(MethodHandles.java:2105)
at test.java.lang.invoke.MethodHandlesTest.testFoldArguments(MethodHandlesTest.java:1729)
at test.java.lang.invoke.MethodHandlesTest.testFoldArguments(MethodHandlesTest.java:1715)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:24)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
at org.junit.runner.JUnitCore.run(JUnitCore.java:136)
at org.junit.runner.JUnitCore.run(JUnitCore.java:117)
at org.junit.runner.JUnitCore.runMain(JUnitCore.java:98)
at org.junit.runner.JUnitCore.runMainAndExit(JUnitCore.java:53)
at org.junit.runner.JUnitCore.main(JUnitCore.java:45)
FAILURES!!!
Tests run: 55, Failures: 13
make: *** [unittest] Error 1
More information about the distro-pkg-dev
mailing list