langtools/test/tools/javac/OverrideChecks/T8139255.java
author mcimadamore
Wed, 26 Oct 2016 15:41:25 +0100
changeset 41856 13a056e8f16e
parent 33713 dc1d2632935c
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

/*
 * @test    /nodynamiccopyright/
 * @bug     8139255
 * @summary javac emits diagnostic message as overriding instead of hiding for class methods.
 * @compile/fail/ref=T8139255.out -XDrawDiagnostics  T8139255.java
 */

public class T8139255 {
   static void func() { }
}

class T8139255_1  extends T8139255 {
   static int func() { return 0; }
}