summaryrefslogtreecommitdiffstats
path: root/libdvm/src
diff options
context:
space:
mode:
authorYing Wang <wangying@google.com>2013-09-20 16:03:52 -0700
committerBrian Carlstrom <bdc@google.com>2013-09-20 16:29:06 -0700
commit9c8864d39704b3d264ef9dfbdc1bfcfd8f1b6bb9 (patch)
treedcee19cd972a8c81d95130c33dddcf13a39a4ad5 /libdvm/src
parent4df0e797fd724e2efb35de21d83ea093789fb2de (diff)
downloadlibcore-9c8864d39704b3d264ef9dfbdc1bfcfd8f1b6bb9.zip
libcore-9c8864d39704b3d264ef9dfbdc1bfcfd8f1b6bb9.tar.gz
libcore-9c8864d39704b3d264ef9dfbdc1bfcfd8f1b6bb9.tar.bz2
Fix Java 7 build.
See http://bugs.sun.com/view_bug.do?bug_id=6904536 Bug: 8992787 (cherry-picked from a9a297845620cfe56bbe3b9f8de1331b7ec54574) Change-Id: I14ff930b02914563493fbcd971f3393fa0c12105
Diffstat (limited to 'libdvm/src')
-rw-r--r--libdvm/src/main/java/java/lang/Enum.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdvm/src/main/java/java/lang/Enum.java b/libdvm/src/main/java/java/lang/Enum.java
index 7a0f514..4b897aa 100644
--- a/libdvm/src/main/java/java/lang/Enum.java
+++ b/libdvm/src/main/java/java/lang/Enum.java
@@ -147,7 +147,7 @@ public abstract class Enum<E extends Enum<E>> implements Serializable, Comparabl
* @see java.lang.Comparable
*/
public final int compareTo(E o) {
- return ordinal - o.ordinal;
+ return ordinal - o.ordinal();
}
/**