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

7.3 Missing indentation in grammar for OrdinaryCompilationUnit

XMLWordPrintable

    • generic
    • generic

      A DESCRIPTION OF THE PROBLEM :

      The grammar for an OrdinaryCompilationUnit is defined in JLS 7.3 as

      OrdinaryCompilationUnit:
          [PackageDeclaration] {ImportDeclaration}
          {TopLevelClassOrInterfaceDeclaration}

      The second line is missing an additional indentation and should read (per the convention of JLS 2.4):

      OrdinaryCompilationUnit:
          [PackageDeclaration] {ImportDeclaration}
              {TopLevelClassOrInterfaceDeclaration}


            gbierman Gavin Bierman
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: