diff options
Diffstat (limited to 'test/disabled/jvm')
-rw-r--r-- | test/disabled/jvm/JavaInteraction.check | 4 | ||||
-rw-r--r-- | test/disabled/jvm/JavaInteraction.scala | 23 | ||||
-rw-r--r-- | test/disabled/jvm/libnatives-32.so | bin | 5359 -> 0 bytes | |||
-rw-r--r-- | test/disabled/jvm/libnatives-64.so | bin | 7466 -> 0 bytes | |||
-rw-r--r-- | test/disabled/jvm/libnatives.jnilib | bin | 8456 -> 0 bytes | |||
-rwxr-xr-x | test/disabled/jvm/mkLibNatives.bat | 67 | ||||
-rwxr-xr-x | test/disabled/jvm/mkLibNatives.sh | 61 | ||||
-rw-r--r-- | test/disabled/jvm/natives-32.dll | bin | 40960 -> 0 bytes | |||
-rw-r--r-- | test/disabled/jvm/natives.c | 8 | ||||
-rw-r--r-- | test/disabled/jvm/natives.check | 1 | ||||
-rw-r--r-- | test/disabled/jvm/natives.h | 21 | ||||
-rw-r--r-- | test/disabled/jvm/natives.scala | 23 |
12 files changed, 0 insertions, 208 deletions
diff --git a/test/disabled/jvm/JavaInteraction.check b/test/disabled/jvm/JavaInteraction.check deleted file mode 100644 index fb9d3cdd8c..0000000000 --- a/test/disabled/jvm/JavaInteraction.check +++ /dev/null @@ -1,4 +0,0 @@ -p.x = 5 -p.c = java.awt.Color[r=255,g=0,b=0] -p.getX() = 5.0 -p.getC() = java.awt.Color[r=255,g=0,b=0] diff --git a/test/disabled/jvm/JavaInteraction.scala b/test/disabled/jvm/JavaInteraction.scala deleted file mode 100644 index 1316fad5d4..0000000000 --- a/test/disabled/jvm/JavaInteraction.scala +++ /dev/null @@ -1,23 +0,0 @@ -//############################################################################ -// Test Java interaction -//############################################################################ - -import java.awt.Color; -import java.awt.Point; - -class ColoredPoint(x: Int, y: Int, c_ : Color) extends Point(x, y) { - val c: Color = c_; - def getC(): Color = c; -} - -object Test { - def main(args: Array[String]): Unit = { - val p = new ColoredPoint(5, 7, Color.RED); - Console.println("p.x = " + p.x); - Console.println("p.c = " + p.c); - Console.println("p.getX() = " + p.getX()); - Console.println("p.getC() = " + p.getC()); - } -} - -//############################################################################ diff --git a/test/disabled/jvm/libnatives-32.so b/test/disabled/jvm/libnatives-32.so Binary files differdeleted file mode 100644 index ccbcdd646f..0000000000 --- a/test/disabled/jvm/libnatives-32.so +++ /dev/null diff --git a/test/disabled/jvm/libnatives-64.so b/test/disabled/jvm/libnatives-64.so Binary files differdeleted file mode 100644 index 8cc6152057..0000000000 --- a/test/disabled/jvm/libnatives-64.so +++ /dev/null diff --git a/test/disabled/jvm/libnatives.jnilib b/test/disabled/jvm/libnatives.jnilib Binary files differdeleted file mode 100644 index daac50e3df..0000000000 --- a/test/disabled/jvm/libnatives.jnilib +++ /dev/null diff --git a/test/disabled/jvm/mkLibNatives.bat b/test/disabled/jvm/mkLibNatives.bat deleted file mode 100755 index 100246af79..0000000000 --- a/test/disabled/jvm/mkLibNatives.bat +++ /dev/null @@ -1,67 +0,0 @@ -@echo off
-
-rem ##########################################################################
-rem # Author : Stephane Micheloud
-rem ##########################################################################
-
-rem ##########################################################################
-rem # variables
-
-if "%OS%"=="Windows_NT" @setlocal
-
-rem debug switches are: off=0, on=1
-set DEBUG=0
-set STDOUT=NUL
-if %DEBUG%==1 set STDOUT=CON
-
-set CLASS_NAME=Test$
-set CLASS_DIR=.
-
-set OBJ_NAME=natives
-set LIB_NAME=natives-32
-
-if "%JAVA_HOME%"=="" goto error1
-if "%VSINSTALLDIR%"=="" goto error2
-
-set JAVAH=%JAVA_HOME%\bin\javah
-set JAVAH_OPTIONS=-jni -force -classpath %CLASS_DIR% -o %OBJ_NAME%.h
-
-set CC=%VSINSTALLDIR%\vc\bin\cl
-set CC_OPTIONS=/nologo /c
-set CC_INCLUDES=-I%VSINSTALLDIR%\vc\include -I%JAVA_HOME%\include -I%JAVA_HOME%\include\win32
-
-set LNK_OPTIONS=/nologo /MT /LD
-
-rem variable LIB is used by the C++ linker to find libcmt.lib, ..
-set LIB=%VSINSTALLDIR%\vc\lib
-
-rem ##########################################################################
-rem # commands
-
-del /s/q *.obj *.exp *.lib *.dll 1>%STDOUT%
-
-if %DEBUG%==1 echo %JAVAH% %JAVAH_OPTIONS% %CLASS_NAME%
-%JAVAH% %JAVAH_OPTIONS% %CLASS_NAME%
-
-if %DEBUG%==1 echo %CC% %CC_OPTIONS% %CC_INCLUDES% /Fo%OBJ_NAME%.obj natives.c
-%CC% %CC_OPTIONS% %CC_INCLUDES% /Fo%OBJ_NAME%.obj natives.c 1>%STDOUT%
-
-if %DEBUG%==1 echo %CC% %LNK_OPTIONS% /Fe%LIB_NAME%.dll %OBJ_NAME%.obj
-%CC% %LNK_OPTIONS% /Fe%LIB_NAME%.dll %OBJ_NAME%.obj 1>%STDOUT%
-
-goto end
-
-rem ##########################################################################
-rem # subroutines
-
-:error1
-echo ERROR: environment variable JAVA_HOME is undefined. It should point to your JDK installation.
-goto end
-
-:error2
-echo ERROR: environment variable VSINSTALLDIR is undefined. It should point to your MS Visual Studio installation.
-goto end
-
-:end
-if "%OS%"=="Windows_NT" @endlocal
-
diff --git a/test/disabled/jvm/mkLibNatives.sh b/test/disabled/jvm/mkLibNatives.sh deleted file mode 100755 index ed80c24c3e..0000000000 --- a/test/disabled/jvm/mkLibNatives.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/sh - -############################################################################## -# Author : Stephane Micheloud -############################################################################## - -############################################################################## -# variables - -# set any value to enable debugging output -debug= - -cygwin=false; -darwin=false; -case "`uname`" in - CYGWIN*) cygwin=true ;; - Darwin*) darwin=true ;; -esac - -CLASS_NAME=Test\$ -CLASS_DIR=natives-jvm.obj - -OBJ_NAME=natives -LIB_NAME=libnatives - -if [ -z "${JAVA_HOME}" ]; then - echo "environment variable JAVA_HOME is undefined." - exit -elif $cygwin; then - echo "Cygwin not supported (use 'mkLibNatives.bat')." - exit -fi - -JAVAH=${JAVA_HOME}/bin/javah -JAVAH_OPTIONS="-jni -force -classpath ${CLASS_DIR} -o ${OBJ_NAME}.h" - -CC=gcc - -if $darwin; then - CC_OPTIONS="-c -arch ppc -arch i386" - CC_INCLUDES="-I/System/Library/Frameworks/JavaVM.framework/Headers" - LNK_OPTIONS="-dynamiclib -framework JavaVM" - FULL_LIB_NAME=${LIB_NAME}.jnilib -else - CC_OPTIONS=-c - CC_INCLUDES="-I${JAVA_HOME}/include -I${JAVA_HOME}/include/${OSTYPE}" - LNK_OPTIONS="-shared -Wl,-soname,${LIB_NAME}" - FULL_LIB_NAME=${LIB_NAME}.so -fi - -############################################################################## -# commands - -[ $debug ] && echo ${JAVAH} ${JAVAH_OPTIONS} ${CLASS_NAME} -${JAVAH} ${JAVAH_OPTIONS} ${CLASS_NAME} - -[ $debug ] && echo ${CC} ${CC_OPTIONS} ${CC_INCLUDES} -o ${OBJ_NAME}.o natives.c -${CC} ${CC_OPTIONS} ${CC_INCLUDES} -o ${OBJ_NAME}.o natives.c - -[ $debug ] && echo ${CC} ${LNK_OPTIONS} -o ${FULL_LIB_NAME} ${OBJ_NAME}.o -${CC} ${LNK_OPTIONS} -o ${FULL_LIB_NAME} ${OBJ_NAME}.o diff --git a/test/disabled/jvm/natives-32.dll b/test/disabled/jvm/natives-32.dll Binary files differdeleted file mode 100644 index a06c1da3e3..0000000000 --- a/test/disabled/jvm/natives-32.dll +++ /dev/null diff --git a/test/disabled/jvm/natives.c b/test/disabled/jvm/natives.c deleted file mode 100644 index 7b6d7b5ba5..0000000000 --- a/test/disabled/jvm/natives.c +++ /dev/null @@ -1,8 +0,0 @@ -#include "natives.h" - -JNIEXPORT jstring JNICALL Java_Test_00024_sayHello - (JNIEnv *env, jobject thisobject, jstring js) - -{ - return js; -} diff --git a/test/disabled/jvm/natives.check b/test/disabled/jvm/natives.check deleted file mode 100644 index 2265459198..0000000000 --- a/test/disabled/jvm/natives.check +++ /dev/null @@ -1 +0,0 @@ -Invocation returned "Scala is great!" diff --git a/test/disabled/jvm/natives.h b/test/disabled/jvm/natives.h deleted file mode 100644 index 0d360d3654..0000000000 --- a/test/disabled/jvm/natives.h +++ /dev/null @@ -1,21 +0,0 @@ -/* DO NOT EDIT THIS FILE - it is machine generated */ -#include <jni.h> -/* Header for class Test__ */ - -#ifndef _Included_Test__ -#define _Included_Test__ -#ifdef __cplusplus -extern "C" { -#endif -/* - * Class: Test__ - * Method: sayHello - * Signature: (Ljava/lang/String;)Ljava/lang/String; - */ -JNIEXPORT jstring JNICALL Java_Test_00024_sayHello - (JNIEnv *, jobject, jstring); - -#ifdef __cplusplus -} -#endif -#endif diff --git a/test/disabled/jvm/natives.scala b/test/disabled/jvm/natives.scala deleted file mode 100644 index 14ee4e1c1b..0000000000 --- a/test/disabled/jvm/natives.scala +++ /dev/null @@ -1,23 +0,0 @@ -object Test { - - //println("java.library.path=" + System.getProperty("java.library.path")) - - val sysWordSize = System.getProperty("sun.arch.data.model", "32") - val sysType = System.getProperty("os.name") - - val libName = - if (sysType == "Mac OS X") - "natives" - else - "natives-" + sysWordSize - - System.loadLibrary(libName) - - @native - def sayHello(s: String): String = null - - def main(args: Array[String]) { - val s = sayHello("Scala is great!") - println("Invocation returned \"" + s + "\"") - } -} |