From 5af1c6b21037ddd55c8b36ac814bc7e80906128f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Mon, 27 Jul 2015 09:49:41 -0400 Subject: [PATCH] contrib/jwrapper tests: add 2 tests with static properties and a generic class MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- contrib/jwrapper/Makefile | 4 ++++ contrib/jwrapper/tests/generics.javap | 6 ++++++ contrib/jwrapper/tests/statics.javap | 18 ++++++++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 contrib/jwrapper/tests/generics.javap create mode 100644 contrib/jwrapper/tests/statics.javap diff --git a/contrib/jwrapper/Makefile b/contrib/jwrapper/Makefile index 4a52abf..ceb9722 100644 --- a/contrib/jwrapper/Makefile +++ b/contrib/jwrapper/Makefile @@ -20,6 +20,10 @@ clean: check: bin/jwrapper tests/wildcards.javap mkdir -p tmp + bin/jwrapper -v -u stub -o tests/statics.nit tests/statics.javap + ../../bin/nitpick -q tests/statics.nit + bin/jwrapper -v -u comment -o tests/generics.nit tests/generics.javap + ../../bin/nitpick -q tests/generics.nit bin/jwrapper -v -u comment -o tests/long.nit tests/long.javap ../../bin/nitpick -q tests/long.nit bin/jwrapper -v -u comment -o tests/inits.nit tests/inits.javap diff --git a/contrib/jwrapper/tests/generics.javap b/contrib/jwrapper/tests/generics.javap new file mode 100644 index 0000000..0753c90 --- /dev/null +++ b/contrib/jwrapper/tests/generics.javap @@ -0,0 +1,6 @@ +public abstract class android.os.asynctask { + public android.os.asynctask(); + public final android.os.asynctask$status getstatus(); + public final result get(long, java.util.concurrent.timeunit) throws java.lang.interruptedexception, java.util.concurrent.executionexception, java.util.concurrent.timeoutexception; + public final android.os.asynctask execute(params...); +} diff --git a/contrib/jwrapper/tests/statics.javap b/contrib/jwrapper/tests/statics.javap new file mode 100644 index 0000000..a10cc75 --- /dev/null +++ b/contrib/jwrapper/tests/statics.javap @@ -0,0 +1,18 @@ +public final class com.oracle.net.Sdp { + public static java.net.Socket openSocket() throws java.io.IOException; + public static java.net.ServerSocket openServerSocket() throws java.io.IOException; + public static java.nio.channels.SocketChannel openSocketChannel() throws java.io.IOException; + public static java.nio.channels.ServerSocketChannel openServerSocketChannel() throws java.io.IOException; +} +public class com.sun.activation.registries.LogSupport { + public static void log(java.lang.String); + public static void log(java.lang.String, java.lang.Throwable); + public static boolean isLoggable(); +} +public class com.sun.activation.registries.MailcapTokenizer { + public static final int UNKNOWN_TOKEN; +} +public final class com.sun.beans.TypeResolver { + public com.sun.beans.TypeResolver(); + public static java.lang.reflect.Type resolveInClass(java.lang.Class, java.lang.reflect.Type); +} -- 1.7.9.5