summaryrefslogtreecommitdiffstats
path: root/luni
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2011-05-23 16:39:26 -0700
committerElliott Hughes <enh@google.com>2011-05-23 16:42:05 -0700
commit99c5c63d6b8261991ac3b3af09a5cb96761e1173 (patch)
tree4ac46045597d199fd3ee086ea9c28a5176102bfa /luni
parent67e5c528c6c81210e7ede35f7c137050e5c346b1 (diff)
downloadlibcore-99c5c63d6b8261991ac3b3af09a5cb96761e1173.zip
libcore-99c5c63d6b8261991ac3b3af09a5cb96761e1173.tar.gz
libcore-99c5c63d6b8261991ac3b3af09a5cb96761e1173.tar.bz2
Update a useless system property.
Change-Id: I30424eba04a9c1eef976eac02a7d139e7c6c5af1
Diffstat (limited to 'luni')
-rw-r--r--luni/src/main/java/java/lang/System.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/luni/src/main/java/java/lang/System.java b/luni/src/main/java/java/lang/System.java
index 203e5e3..c65ebbb 100644
--- a/luni/src/main/java/java/lang/System.java
+++ b/luni/src/main/java/java/lang/System.java
@@ -272,9 +272,13 @@ public final class System {
p.put("java.boot.class.path", runtime.bootClassPath());
p.put("java.class.path", runtime.classPath());
- p.put("java.class.version", "46.0");
+ // None of these four are meaningful on Android, but these keys are guaranteed
+ // to be present for System.getProperty. For java.class.version, we use the maximum
+ // class file version that dx currently supports.
+ p.put("java.class.version", "50.0");
p.put("java.compiler", "");
p.put("java.ext.dirs", "");
+ p.put("java.version", "0");
p.put("java.home", getenv("JAVA_HOME", "/system"));
@@ -287,7 +291,6 @@ public final class System {
p.put("java.vendor", projectName);
p.put("java.vendor.url", projectUrl);
- p.put("java.version", "0");
p.put("java.vm.name", "Dalvik");
p.put("java.vm.specification.name", "Dalvik Virtual Machine Specification");
p.put("java.vm.specification.vendor", projectName);
@@ -358,7 +361,7 @@ public final class System {
* <tr><td>file.separator</td> <td>{@link java.io.File#separator}</td> <td>{@code /}</td></tr>
*
* <tr><td>java.class.path</td> <td>System class path</td> <td>{@code .}</td></tr>
- * <tr><td>java.class.version</td> <td>Maximum supported .class file version</td> <td>{@code 46.0}</td></tr>
+ * <tr><td>java.class.version</td> <td>(Not useful on Android)</td> <td>{@code 50.0}</td></tr>
* <tr><td>java.compiler</td> <td>(Not useful on Android)</td> <td>Empty</td></tr>
* <tr><td>java.ext.dirs</td> <td>(Not useful on Android)</td> <td>Empty</td></tr>
* <tr><td>java.home</td> <td>Location of the VM on the file system</td> <td>{@code /system}</td></tr>