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

Clarify if java.class.path can be undefined

XMLWordPrintable

    • b01
    • Not verified

      The spec for System.getProperties
      https://docs.oracle.com/javase/9/docs/api/java/lang/System.html#getProperties--
      requires that java.class.path be always defined.

      But https://docs.oracle.com/javase/9/docs/api/java/lang/ClassLoader.html says
      """
      The class path used by the built-in system class loader is determined by the system property "java.class.path" during early initialization of the VM. If the system property is not defined,
      """

      which appears to be contradictory.

            mchung Mandy Chung (Inactive)
            martin Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: