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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 5.0u5
    • core-libs
    • x86
    • windows_xp

      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);
              }
          }
      }
      <-------------------

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: