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

java.compiler key does not show up by using getProperties() in 5.0

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 5.0u5
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_xp

      Description

      The information of java.compiler can not be gotten by using getProperties().

      According to the API document,
      http://java.sun.com/j2se/1.5.0/docs/api/index.html
      The key "java.compiler" is listed at description of "getProperties()".

      However, we can not actually get the informaiton of the key.

      CONFIRMATION:
       Please compile and execute the following test program.
       we can not see "java.compiler" inf.

      ---- Test Program ---->
      import java.util.*;

      class props extends Thread {
          public static void main( String arg[] ) throws Exception {
              Properties p = System.getProperties();
              Enumeration<Object> e = p.keys();
              for( ;e.hasMoreElements();) {
                  String key = (String)e.nextElement();
                  String value = (String)p.get(key);
                  System.out.println(key+"="+value);
              }
          }
      }
      <-------------------

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              tbaba Tadayuki Baba (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: