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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 15
    • 15
    • tools

      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.

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

              Created:
              Updated:
              Resolved: