JDK-7009342 : java/dyn/InvokeDynamicPrintArgs.java expects MethodType.toMethodDescriptorString()
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: hs20
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2010-12-28
  • Updated: 2012-02-01
  • Resolved: 2011-03-30
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7Resolved
Related Reports
Duplicate :  
Description
Test java/dyn/InvokeDynamicPrintArgs.java fails with --check-output, because it expects MethodType to be printed with toMethodDescriptorString(). But the test uses toString().

Output of the test:

patching InvokeDynamicPrintArgs.main(L)V
...
69:invokestatic 66 MH_printArgs()L => ldc 366:MethodHandle[6, 365]
...
want line: [InvokeDynamicPrintArgs, bar, (java.lang.String,int)void, class java.lang.Void, void type!, 1, 234.5, 67.5, 89][bar arg, 1]
have line: [InvokeDynamicPrintArgs, bar, (String,int)void, class java.lang.Void, void type!, 1, 234.5, 67.5, 89][bar arg, 1]

java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
	at indify.Indify.run(Indify.java:134)
...
Caused by: java.lang.reflect.InvocationTargetException
...
Caused by: java.lang.AssertionError: unexpected output: [InvokeDynamicPrintArgs, bar, (String,int)void, class java.lang.Void, void type!, 1, 234.5, 67.5, 89][bar arg, 1]
	at InvokeDynamicPrintArgs.closeBuf(InvokeDynamicPrintArgs.java:75)
	at InvokeDynamicPrintArgs.main(InvokeDynamicPrintArgs.java:53)
	... 13 more

Comments
EVALUATION The MethodType.toString method changed but the unit test was not updated. The unit test will be updated with 7013417. At that point this bug will be closed as a dup of 7013417.
05-02-2011