Hi Rory, Dalibor, Balchandra, and Muneer,
I have gotten the Derby build to work using the javac supplied by b100
of java 9 (referenced below). I have tripped across the following problem:
If I use the java 9 javac to compile the attached program down to java 8
byte code thusly...
javac -source 1.8 -target 1.8 ByteBufferTest.java
...then the result runs fine under java 9 but fails under java 8 with
the following error message:
Exception in thread "main" java.lang.NoSuchMethodError:
java.nio.ByteBuffer.clear()Ljava/nio/ByteBuffer;
at ByteBufferTest.main(ByteBufferTest.java:9)
Is there something special which I need to do in order to use the java 9
javac to compile programs which will run under java 8?
Thanks,
-Rick
On 1/15/16 3:02 AM, Rory O'Donnell wrote:
Hi Rick,
Early Access b02 <https://jdk8.java.net/download.html> for JDK 8u76 is
available on java.net, summary of changes are listed here
<http://download.java.net/jdk8u76/changes/jdk8u76-b02.html>.
Early Access b100 <https://jdk9.java.net/download/> for JDK 9 is
available on java.net, summary of changes are listed here
<http://download.java.net/jdk9/changes/jdk-9+100.html>.
Early Access b99 <https://jdk9.java.net/jigsaw/> for JDK 9 with
Project Jigsaw is available on java.net, summary of changes are listed
here <http://download.java.net/jigsaw/archive/99/binaries/jdk-9+99.html> .
Dalibor and I will be at FOSDEM '16, Brussels 30 & 31 January, link to
our presentation here.
<https://fosdem.org/2016/schedule/event/preparing_for_jdk_nine/>
Let us know if you will be there, hopefully we can meet up !
Rgds,Rory
--
Rgds,Rory O'Donnell
Quality Engineering Manager
Oracle EMEA , Dublin, Ireland
import java.nio.ByteBuffer;
public class ByteBufferTest
{
public static void main(String... args) throws Exception
{
ByteBuffer buffer = ByteBuffer.allocate(100);
buffer.clear();
}
}