Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7053541

Remove or fix some java/lang/invoke tests

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: 7
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      Tests
      java/lang/invoke/InvokeDynamicPrintArgs.java
      java/lang/invoke/InvokeGenericTest.java
      java/lang/invoke/InvokeGenericTest.java

      currently fail to compile:

      ----------System.err:(100/6916)----------
      /export/local/common/testbase/jtreg/7-promotion/JT_JDK/test/java/lang/invoke/MethodHandlesTest.java:359: error: cannot find symbol
              return MethodHandles.convertArguments(target, ttype2);
                                  ^
        symbol: method convertArguments(MethodHandle,MethodType)
        location: class MethodHandles
      /export/local/common/testbase/jtreg/7-promotion/JT_JDK/test/java/lang/invoke/MethodHandlesTest.java:1008: error: cannot find symbol
                  mh = MethodHandles.convertArguments(mh, mh.type().generic()
                                    ^
        symbol: method convertArguments(MethodHandle,MethodType)
        location: class MethodHandles
      /export/local/common/testbase/jtreg/7-promotion/JT_JDK/test/java/lang/invoke/MethodHandlesTest.java:1012: error: cannot find symbol
                  mh = MethodHandles.convertArguments(mh, mh.type().generic()
                                    ^
        symbol: method convertArguments(MethodHandle,MethodType)
        location: class MethodHandles
      /export/local/common/testbase/jtreg/7-promotion/JT_JDK/test/java/lang/invoke/MethodHandlesTest.java:1142: error: cannot find symbol
                  mh = MethodHandles.convertArguments(mh, gtype);
                                    ^
        symbol: method convertArguments(MethodHandle,MethodType)
        location: class MethodHandles
      /export/local/common/testbase/jtreg/7-promotion/JT_JDK/test/java/lang/invoke/MethodHandlesTest.java:1271: error: cannot find symbol
                      target = MethodHandles.convertArguments(id, newType);
                                            ^
        symbol: method convertArguments(MethodHandle,MethodType)
        location: class MethodHandles
      /export/local/common/testbase/jtreg/7-promotion/JT_JDK/test/java/lang/invoke/MethodHandlesTest.java:1424: error: cannot find symbol
              MethodHandle target = MethodHandles.convertArguments(varargsList(outargs), outType);
                                                 ^
        symbol: method convertArguments(MethodHandle,MethodType)
        location: class MethodHandles
      /export/local/common/testbase/jtreg/7-promotion/JT_JDK/test/java/lang/invoke/MethodHandlesTest.java:1669: error: cannot find symbol
              filter = MethodHandles.convertArguments(filter, filter.type().generic());
                                    ^
        symbol: method convertArguments(MethodHandle,MethodType)
        location: class MethodHandles
      /export/local/common/testbase/jtreg/7-promotion/JT_JDK/test/java/lang/invoke/MethodHandlesTest.java:2048: error: cannot find symbol
              target = MethodHandles.convertArguments(target, target.type().generic());
                                    ^
        symbol: method convertArguments(MethodHandle,MethodType)
        location: class MethodHandles
      /export/local/common/testbase/jtreg/7-promotion/JT_JDK/test/java/lang/invoke/MethodHandlesTest.java:2120: error: cannot find symbol
                      surprise = MethodHandles.convertArguments(surprise, MethodType.methodType(int.class, Object.class));
                                              ^
        symbol: method convertArguments(MethodHandle,MethodType)
        location: class MethodHandles
      /export/local/common/testbase/jtreg/7-promotion/JT_JDK/test/java/lang/invoke/MethodHandlesTest.java:2121: error: cannot find symbol
                      identity = MethodHandles.convertArguments(identity, MethodType.methodType(int.class, Object.class));
                                              ^
        symbol: method convertArguments(MethodHandle,MethodType)
        location: class MethodHandles
      /export/local/common/testbase/jtreg/7-promotion/JT_JDK/test/java/lang/invoke/MethodHandlesTest.java:2124: error: cannot find symbol
                      surprise = MethodHandles.convertArguments(surprise, MethodType.methodType(Integer.class, Object.class));
                                              ^
        symbol: method convertArguments(MethodHandle,MethodType)
        location: class MethodHandles
      /export/local/common/testbase/jtreg/7-promotion/JT_JDK/test/java/lang/invoke/MethodHandlesTest.java:2125: error: cannot find symbol
                      identity = MethodHandles.convertArguments(identity, MethodType.methodType(Integer.class, Object.class));
                                              ^
        symbol: method convertArguments(MethodHandle,MethodType)
        location: class MethodHandles
      /export/local/common/testbase/jtreg/7-promotion/JT_JDK/test/java/lang/invoke/MethodHandlesTest.java:2137: error: cannot find symbol
                      callee = MethodHandles.convertArguments(callee, MethodType.genericMethodType(1));
                                            ^
        symbol: method convertArguments(MethodHandle,MethodType)
        location: class MethodHandles
      /export/local/common/testbase/jtreg/7-promotion/JT_JDK/test/java/lang/invoke/MethodHandlesTest.java:2143: error: cannot find symbol
              identity = MethodHandles.convertArguments(identity, MethodType.genericMethodType(1));
                                      ^
        symbol: method convertArguments(MethodHandle,MethodType)
        location: class MethodHandles
      /export/local/common/testbase/jtreg/7-promotion/JT_JDK/test/java/lang/invoke/MethodHandlesTest.java:2144: error: cannot find symbol
              surprise = MethodHandles.convertArguments(surprise, MethodType.genericMethodType(1));
                                      ^
        symbol: method convertArguments(MethodHandle,MethodType)
        location: class MethodHandles
      /export/local/common/testbase/jtreg/7-promotion/JT_JDK/test/java/lang/invoke/MethodHandlesTest.java:2233: error: cannot find symbol
                  Runnable proxy = MethodHandles.asInstance(mh, Runnable.class);
                                                ^
        symbol: method asInstance(MethodHandle,Class<Runnable>)
        location: class MethodHandles
      /export/local/common/testbase/jtreg/7-promotion/JT_JDK/test/java/lang/invoke/MethodHandlesTest.java:2240: error: cannot find symbol
                  Fooable proxy = MethodHandles.asInstance(mh, Fooable.class);
                                               ^
        symbol: method asInstance(MethodHandle,Class<Fooable>)
        location: class MethodHandles
      /export/local/common/testbase/jtreg/7-promotion/JT_JDK/test/java/lang/invoke/MethodHandlesTest.java:2254: error: cannot find symbol
                  WillThrow proxy = MethodHandles.asInstance(mh, WillThrow.class);
                                                 ^
        symbol: method asInstance(MethodHandle,Class<WillThrow>)
        location: class MethodHandles
      /export/local/common/testbase/jtreg/7-promotion/JT_JDK/test/java/lang/invoke/MethodHandlesTest.java:2282: error: cannot find symbol
                      MethodHandles.asInstance(varargsArray(0), nonSAM);
                                   ^
        symbol: method asInstance(MethodHandle,Class<CAP#1>)
        location: class MethodHandles
        where CAP#1 is a fresh type-variable:
          CAP#1 extends Object from capture of ?
      Note: /export/local/common/testbase/jtreg/7-promotion/JT_JDK/test/java/lang/invoke/MethodHandlesTest.java uses unchecked or unsafe operations.
      Note: Recompile with -Xlint:unchecked for details.
      19 errors
      result: Failed. Compilation failed: exit code 1

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jrose John Rose
                Reporter:
                nhaustov Nicolay Haustov (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: