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

generics: crash with conjunction types

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Cannot Reproduce
    • Affects Version/s: 5.0
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      solaris_8

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gafter Neal Gafter
              Reporter:
              gafter Neal Gafter
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: