Minor documentation changes.
Change-Id: I487f915a55158e59533cd70cb030f127979864a8
diff --git a/dx/src/com/android/dx/cf/direct/DirectClassFile.java b/dx/src/com/android/dx/cf/direct/DirectClassFile.java
index 405f0e9..4f1c85d 100644
--- a/dx/src/com/android/dx/cf/direct/DirectClassFile.java
+++ b/dx/src/com/android/dx/cf/direct/DirectClassFile.java
@@ -47,16 +47,15 @@
/**
* minimum {@code .class} file major version
*
- * The class file definition (vmspec/2nd-edition) says:
+ * See http://en.wikipedia.org/wiki/Java_class_file for an up-to-date
+ * list of version numbers. Currently known (taken from that table) are:
*
- * "Implementations of version 1.2 of the
- * Java 2 platform can support class file
- * formats of versions in the range 45.0
- * through 46.0 inclusive."
- *
- * The class files generated by the build are currently
- * (as of 11/2006) reporting version 49.0 (0x31.0x00),
- * however, so we use that as our upper bound.
+ * J2SE 6.0 = 50 (0x32 hex),
+ * J2SE 5.0 = 49 (0x31 hex),
+ * JDK 1.4 = 48 (0x30 hex),
+ * JDK 1.3 = 47 (0x2F hex),
+ * JDK 1.2 = 46 (0x2E hex),
+ * JDK 1.1 = 45 (0x2D hex).
*
* Valid ranges are typically of the form
* "A.0 through B.C inclusive" where A <= B and C >= 0,
@@ -64,7 +63,11 @@
*/
private static final int CLASS_FILE_MIN_MAJOR_VERSION = 45;
- /** maximum {@code .class} file major version */
+ /**
+ * maximum {@code .class} file major version
+ *
+ * Note: if you change this, please change "java.class.version" in System.java.
+ */
private static final int CLASS_FILE_MAX_MAJOR_VERSION = 50;
/** maximum {@code .class} file minor version */