generics: crash with conjunction types

XMLWordPrintable

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: P3
    • None
    • Affects Version/s: 5.0
    • Component/s: 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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: