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

annotated type variables bounds crash javac

    XMLWordPrintable

    Details

    • Subcomponent:
    • Introduced In Version:
      9
    • Resolved In Build:
      b01

      Backports

        Description

        The following code crashes the compiler:

        import java.lang.annotation.ElementType;
        import java.lang.annotation.Target;

        class TestAnno {

            @Target(value = {ElementType.TYPE_USE})
            @interface A{}

            class Sup<X, Y> { }

            class Sub<U extends @A V, @A V extends String> extends Sup<U, V> { }
        }

        This is a reduced test case obtained from this:
        https://github.com/wildfly/typeannotation-test/blob/master/src/main/java/test/VExample.java#L117

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                bsrbnd Bernard Blaser
                Reporter:
                mcimadamore Maurizio Cimadamore
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: