Skip to content

Commit b7eb4ee

Browse files
committed
class-version.sh: update JDK names
The platform was called "J2SE" from 1.2 thru 6.0, and referred to as "Java SE" starting with Java 7. But all of that is stupid and confusing marketing. Let's just call it "Java" everywhere. The "1.x" vs "x" issue still remains, but it's less terrible than before.
1 parent 7bd22bf commit b7eb4ee

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

class-version.sh

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,24 @@ class_version() {
1717
# derive Java version
1818
case $major in
1919
45)
20-
version="JDK 1.1"
20+
version="Java 1.0/1.1"
2121
;;
2222
46)
23-
version="JDK 1.2"
23+
version="Java 1.2"
2424
;;
2525
47)
26-
version="JDK 1.3"
26+
version="Java 1.3"
2727
;;
2828
48)
29-
version="JDK 1.4"
29+
version="Java 1.4"
3030
;;
3131
49)
32-
version="J2SE 5.0"
33-
;;
34-
50)
35-
version="J2SE 6.0"
32+
version="Java 5"
3633
;;
3734
*)
38-
if [ "$major" -gt 50 ]
35+
if [ "$major" -gt 49 ]
3936
then
40-
version="J2SE $(expr $major - 44)"
37+
version="Java $(expr $major - 44)"
4138
else
4239
version="Unknown"
4340
fi

0 commit comments

Comments
 (0)