選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

AmbiguousClassReference4CE.java 413B

123456789101112
  1. public class AmbiguousClassReference4CE {
  2. /** @testcase PR#701 PUREJAVA CE for ambiguous type reference (two inner types)
  3. * see also testcase PR#631 */
  4. public static void main(String[] args) {
  5. throw new Error("Expecting compiler error, not compile/run");
  6. }
  7. static class Foo {} // CE: "duplicate type name"
  8. static interface Foo {} // CE: "duplicate type name"
  9. }