FYI.
I have put in a minimal class in Java for linear arrays in ATS:
https://github.com/githwxi/ATS-Postiats/blob/master/contrib/JNI/Java/ATSarrayptr.java
https://github.com/githwxi/ATS-Postiats/blob/master/contrib/JNI/TEST/ATSarrayptr_test.java
FYI.
I have put in a minimal class in Java for linear arrays in ATS:
https://github.com/githwxi/ATS-Postiats/blob/master/contrib/JNI/Java/ATSarrayptr.java
https://github.com/githwxi/ATS-Postiats/blob/master/contrib/JNI/TEST/ATSarrayptr_test.java