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

generics: crash with conjunction types

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • None
    • 5.0
    • tools
    • generic
    • solaris_8

      Date: Tue, 08 Apr 2003 10:39:05 +0200
      From: Mads Torgersen <###@###.###>
      To: Neal M Gafter <###@###.###>
      Subject: Classes in conjunction types

      Toying with conjunction types, I managed to make the compiler choke on the
      following program:

      public class Inference {
        class A {}
        interface B {}
        class Foo<T extends A & B>{}
      }

      Try it out!

      It turns out that if I change A to be an interface, there are no problems.

      /Mads

            gafter Neal Gafter (Inactive)
            gafter Neal Gafter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: