langtools/test/tools/javac/meth/BadPolySig.java
author mcimadamore
Wed, 26 Oct 2016 15:41:25 +0100
changeset 41856 13a056e8f16e
permissions -rw-r--r--
8168774: Polymorhic signature method check crashes javac Summary: Check for polysig method assumes arity is greater than zero Reviewed-by: vromero
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
41856
13a056e8f16e 8168774: Polymorhic signature method check crashes javac
mcimadamore
parents:
diff changeset
     1
/*
13a056e8f16e 8168774: Polymorhic signature method check crashes javac
mcimadamore
parents:
diff changeset
     2
 * @test
13a056e8f16e 8168774: Polymorhic signature method check crashes javac
mcimadamore
parents:
diff changeset
     3
 * @bug 8168774
13a056e8f16e 8168774: Polymorhic signature method check crashes javac
mcimadamore
parents:
diff changeset
     4
 * @summary Polymorhic signature method check crashes javac
13a056e8f16e 8168774: Polymorhic signature method check crashes javac
mcimadamore
parents:
diff changeset
     5
 * @compile -Xmodule:java.base BadPolySig.java
13a056e8f16e 8168774: Polymorhic signature method check crashes javac
mcimadamore
parents:
diff changeset
     6
 */
13a056e8f16e 8168774: Polymorhic signature method check crashes javac
mcimadamore
parents:
diff changeset
     7
13a056e8f16e 8168774: Polymorhic signature method check crashes javac
mcimadamore
parents:
diff changeset
     8
package java.lang.invoke;
13a056e8f16e 8168774: Polymorhic signature method check crashes javac
mcimadamore
parents:
diff changeset
     9
13a056e8f16e 8168774: Polymorhic signature method check crashes javac
mcimadamore
parents:
diff changeset
    10
class MethodHandle {
13a056e8f16e 8168774: Polymorhic signature method check crashes javac
mcimadamore
parents:
diff changeset
    11
    native Object m();
13a056e8f16e 8168774: Polymorhic signature method check crashes javac
mcimadamore
parents:
diff changeset
    12
}