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

Classes found with implicit permits should be listed in natural (source-file) order

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 15
    • Fix Version/s: 15
    • Component/s: tools
    • Labels:

      Description

      Given this source file:
      ````
      package p;
      public sealed class A { }
      class B extends A { }
      class C extends A { }
      class D extends A { }
      ````

      the list of permitted classes is currently generated as "D, C, B",
      perhaps arising from prepending to javac-style lists.

      Although probably not specified anywhere (yet?) it would be better if the classes were listed in "natural" order, meaning in this case, in source-file order.

        Attachments

          Activity

            People

            Assignee:
            vromero Vicente Arturo Romero Zaldivar
            Reporter:
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: