Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8356057 PrintingProcessor (-Xprint) does not print type variable bounds and type annotations for Object supertypes
  3. JDK-8356062

Release note: -Xprint output includes type variable bounds and annotated Object supertypes

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 25
    • tools

      The output for `-Xprint` has been updated to include bounds for type variables and `java.lang.Object` as a supertype if the supertype is annotated.

      For example, this code:
      ```
      public class PrintingTest<T extends CharSequence> extends @TA Object {
      }
      ```

      the newly produced output is:
      ```
      $ java -Xprint PrintingTest.java
      public class PrintingTest<T extends java.lang.CharSequence> extends java.lang.@TA Object {

        public PrintingTest();
      }
      ```

            jlahoda Jan Lahoda
            jlahoda Jan Lahoda
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: