< prev index next >

test/hotspot/jtreg/runtime/LocalLong/LocalLongHelper.java

Print this page

        

*** 74,89 **** offset.setAccessible(true); getMethodType = Class.forName("java.lang.invoke.MemberName").getDeclaredMethod("getMethodType"); getMethodType.setAccessible(true); Class<?> extendedOptionClass = Class.forName("java.lang.StackWalker$ExtendedOption"); ! Method ewsNI = StackWalker.class.getDeclaredMethod("newInstance", Set.class, extendedOptionClass); ewsNI.setAccessible(true); Field f = extendedOptionClass.getDeclaredField("LOCALS_AND_OPERANDS"); f.setAccessible(true); Object localsAndOperandsOption = f.get(null); primitiveSize = primitiveValueClass.getDeclaredMethod("size"); primitiveSize.setAccessible(true); ! sw = (StackWalker) ewsNI.invoke(null, java.util.Collections.emptySet(), localsAndOperandsOption); } } --- 74,89 ---- offset.setAccessible(true); getMethodType = Class.forName("java.lang.invoke.MemberName").getDeclaredMethod("getMethodType"); getMethodType.setAccessible(true); Class<?> extendedOptionClass = Class.forName("java.lang.StackWalker$ExtendedOption"); ! Method ewsNI = StackWalker.class.getDeclaredMethod("newInstance", Set.class, extendedOptionClass, ContinuationScope.class); ewsNI.setAccessible(true); Field f = extendedOptionClass.getDeclaredField("LOCALS_AND_OPERANDS"); f.setAccessible(true); Object localsAndOperandsOption = f.get(null); primitiveSize = primitiveValueClass.getDeclaredMethod("size"); primitiveSize.setAccessible(true); ! sw = (StackWalker) ewsNI.invoke(null, java.util.Collections.emptySet(), localsAndOperandsOption, null); } }
< prev index next >