langtools/test/tools/javac/6857948/T6857948.java
author juh
Tue, 25 Jun 2013 14:31:29 -0700
changeset 18551 882a3948c6e6
parent 6343 655c0db5643b
permissions -rw-r--r--
8017325: Cleanup of the javadoc <code> tag in java.security.cert Summary: Convert javadoc <code>...</code> and <tt>...</tt> tags to {@code ...} Reviewed-by: darcy
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6343
655c0db5643b 6857948: Calling a constructor with a doubly bogus argument causes an internal error
mcimadamore
parents:
diff changeset
     1
/*
655c0db5643b 6857948: Calling a constructor with a doubly bogus argument causes an internal error
mcimadamore
parents:
diff changeset
     2
 * @test /nodynamiccopyright/
655c0db5643b 6857948: Calling a constructor with a doubly bogus argument causes an internal error
mcimadamore
parents:
diff changeset
     3
 * @bug 6857948
655c0db5643b 6857948: Calling a constructor with a doubly bogus argument causes an internal error
mcimadamore
parents:
diff changeset
     4
 * @summary 6857948: Calling a constructor with a doubly bogus argument causes an internal error
655c0db5643b 6857948: Calling a constructor with a doubly bogus argument causes an internal error
mcimadamore
parents:
diff changeset
     5
 * @author Maurizio Cimadamore
655c0db5643b 6857948: Calling a constructor with a doubly bogus argument causes an internal error
mcimadamore
parents:
diff changeset
     6
 *
655c0db5643b 6857948: Calling a constructor with a doubly bogus argument causes an internal error
mcimadamore
parents:
diff changeset
     7
 * @compile/fail/ref=T6857948.out -XDrawDiagnostics T6857948.java
655c0db5643b 6857948: Calling a constructor with a doubly bogus argument causes an internal error
mcimadamore
parents:
diff changeset
     8
 */
655c0db5643b 6857948: Calling a constructor with a doubly bogus argument causes an internal error
mcimadamore
parents:
diff changeset
     9
655c0db5643b 6857948: Calling a constructor with a doubly bogus argument causes an internal error
mcimadamore
parents:
diff changeset
    10
class Foo {
655c0db5643b 6857948: Calling a constructor with a doubly bogus argument causes an internal error
mcimadamore
parents:
diff changeset
    11
   Foo(String v) {}
655c0db5643b 6857948: Calling a constructor with a doubly bogus argument causes an internal error
mcimadamore
parents:
diff changeset
    12
};
655c0db5643b 6857948: Calling a constructor with a doubly bogus argument causes an internal error
mcimadamore
parents:
diff changeset
    13
655c0db5643b 6857948: Calling a constructor with a doubly bogus argument causes an internal error
mcimadamore
parents:
diff changeset
    14
class Test {
655c0db5643b 6857948: Calling a constructor with a doubly bogus argument causes an internal error
mcimadamore
parents:
diff changeset
    15
   public static void main() {
655c0db5643b 6857948: Calling a constructor with a doubly bogus argument causes an internal error
mcimadamore
parents:
diff changeset
    16
      Foo f = new Foo("Hello!",nosuchfunction()) {};
655c0db5643b 6857948: Calling a constructor with a doubly bogus argument causes an internal error
mcimadamore
parents:
diff changeset
    17
   }
655c0db5643b 6857948: Calling a constructor with a doubly bogus argument causes an internal error
mcimadamore
parents:
diff changeset
    18
}