mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-17 23:05:21 +00:00
Bump the minimum version of Java required.
NEWS:
README.Java:
Required at least Java SE 6 or equivalent.
m4/mercury.m4:
Check for at least the above version of Java.
This commit is contained in:
3
NEWS
3
NEWS
@@ -88,6 +88,9 @@ Changes that may break compatibility:
|
||||
* We have deleted the builtin modes `no' and `oo': their uses should be
|
||||
replaced with `oa' and `ia' respectively.
|
||||
|
||||
* The minimum version of the Java platform required by Mercury's Java
|
||||
backend is now Java SE 6.
|
||||
|
||||
Changes to the Mercury language:
|
||||
|
||||
* We have added a new kind of scope to the language: determinism checks
|
||||
|
||||
20
README.Java
20
README.Java
@@ -2,24 +2,22 @@
|
||||
|
||||
INTRODUCTION
|
||||
|
||||
This release of Mercury contains a port to Java,
|
||||
in particular to Sun Microsystems' Java 2 Platform, Standard Edition (J2SE).
|
||||
The Mercury compiler will generate Java source code that can be compiled into
|
||||
Java bytecode suitable for running in the J2SE runtime system.
|
||||
The Mercury compiler can generate Java source code that can be compiled into
|
||||
Java bytecode suitable for running the Java SE runtime system. The port is
|
||||
mostly complete, but some parts of the Mercury standard library are not yet
|
||||
implemented (for a full list see the FAQ below).
|
||||
|
||||
The port is mostly complete, but some parts of the Mercury standard
|
||||
library are not yet implemented (for a full list see the FAQ below).
|
||||
|
||||
The port is currently targeted at J2SE version 1.5 or higher.
|
||||
The port requires Java SE 6 or higher -- older versions of Java are *not*
|
||||
supported.
|
||||
|
||||
PREREQUISITES
|
||||
|
||||
In order to try this system you will need
|
||||
|
||||
- The J2SE SDK, which can be downloaded for free from
|
||||
<http://java.sun.com/downloads/index.html>
|
||||
* The J2SE SDK, which can be downloaded for free from
|
||||
<http://www.oracle.com/technetwork/indexes/downloads/index.html>
|
||||
|
||||
OR any other compatible Java implementation.
|
||||
* OR any other compatible Java implementation, such as OpenJDK.
|
||||
|
||||
-----------------------------------------------------------------------------
|
||||
|
||||
|
||||
@@ -492,7 +492,7 @@ if test "$JAVAC" != "" -a "$JAVA_INTERPRETER" != "" -a "$JAR" != ""; then
|
||||
cat > conftest.java << EOF
|
||||
// This program simply retrieves the constant
|
||||
// specifying the version number of the Java SDK and
|
||||
// checks it is at least 1.5, printing "Hello, world"
|
||||
// checks it is at least 1.6, printing "Hello, world"
|
||||
// if successful.
|
||||
public class conftest {
|
||||
public static void main (String[[]] args) {
|
||||
@@ -512,7 +512,7 @@ if test "$JAVAC" != "" -a "$JAVA_INTERPRETER" != "" -a "$JAR" != ""; then
|
||||
version = 0f;
|
||||
}
|
||||
|
||||
if (version >= 1.5f) {
|
||||
if (version >= 1.6) {
|
||||
System.out.println("Hello, world\n");
|
||||
} else {
|
||||
System.out.println("Nope, sorry.\n");
|
||||
|
||||
Reference in New Issue
Block a user