Release Note: -Xprint Output Includes Type Variable Bounds and Annotated Object Supertypes

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Delivered
    • Priority: P4
    • 25
    • Affects Version/s: 25
    • Component/s: 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 {
      }
      ```

      now produces this output:
      ```
      $ java -Xprint PrintingTest.java
      public class PrintingTest<T extends java.lang.CharSequence> extends java.lang.@TA Object {

        public PrintingTest();
      }
      ```

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

              Created:
              Updated:
              Resolved: