From 072ac81a76db9c9eb24c639a38bee75bf0ed5c9e Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 11 Jun 2013 16:27:15 +0200 Subject: Adapt to GlueGen commit 1a01dce6c42b398cdd68d405828774a3ab366456 --- make/joal-common-CustomJavaCode.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'make/joal-common-CustomJavaCode.java') diff --git a/make/joal-common-CustomJavaCode.java b/make/joal-common-CustomJavaCode.java index be6b8a7..436f462 100644 --- a/make/joal-common-CustomJavaCode.java +++ b/make/joal-common-CustomJavaCode.java @@ -7,12 +7,11 @@ static { throw new RuntimeException("Couldn't instantiate ALProcAddressTable"); } - alDynamicLookupHelper = (DynamicLibraryBundle) - AccessController.doPrivileged(new PrivilegedAction() { - public Object run() { - return new DynamicLibraryBundle(new ALDynamicLibraryBundleInfo()); - } - }); + alDynamicLookupHelper = AccessController.doPrivileged(new PrivilegedAction() { + public DynamicLibraryBundle run() { + return new DynamicLibraryBundle(new ALDynamicLibraryBundleInfo()); + } } ); + if(null==alDynamicLookupHelper) { throw new RuntimeException("Null ALDynamicLookupHelper"); } -- cgit v1.2.3