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

javac shows warning if module name contains ending digits

XMLWordPrintable

    • generic
    • generic

      ADDITIONAL SYSTEM INFORMATION :
      Microsoft Windows [Version 10.0.17763.195]

      openjdk version "11.0.1" 2018-10-16
      OpenJDK Runtime Environment 18.9 (build 11.0.1+13)
      OpenJDK 64-Bit Server VM 18.9 (build 11.0.1+13, mixed mode)

      A DESCRIPTION OF THE PROBLEM :
      JDK-8160181 added a lint warning for module name components that end with digits. According to https://bugs.eclipse.org/bugs/show_bug.cgi?id=530099#c1 this requirement is not present in the JLS, was mistakenly left over as a result of an abandoned proposal and should therefore be removed.

      Please remove this lint check/warning.

      REGRESSION : Last worked in version : NA

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Compile project with "-Xlint" (all warnings) enabled where module-info.java contains:

      module jul.to2.slf4j
      {
      }

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      No warning
      ACTUAL -
      Warning emitted

      FREQUENCY : always


            jjg Jonathan Gibbons
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: