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

warning on trying to redefine a package already present in a module should be an error

XMLWordPrintable

      If this test case is compiled:

      package java.lang;

      public class Object {
          void dummy1() { return; }
      }

      javac will issue a warning saying:
      Object.java:1: warning: package exists in another module: java.base

      This warning should be an error.

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

              Created:
              Updated:
              Resolved: