Skip to content

Commit

Permalink
update commons-lang jar to commit b6b635a00f1e00b205cc02c0f123451e71c…
Browse files Browse the repository at this point in the history
…617fb
  • Loading branch information
joeferner committed Jan 29, 2015
1 parent f38de67 commit f3ea8d8
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 2 deletions.
1 change: 1 addition & 0 deletions commons-lang.jarjar.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rule org.apache.** nodejava.org.apache.@1
Binary file modified commons-lang3-node-java.jar
Binary file not shown.
Binary file added jarjar-1.4.jar
Binary file not shown.
4 changes: 2 additions & 2 deletions src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ jobject javaFindMethod(JNIEnv *env, jclass clazz, std::string& methodName, jobje

return method;
} else {
jclass methodUtilsClazz = env->FindClass("com/nearinfinity/org/apache/commons/lang3/reflect/MethodUtils");
jclass methodUtilsClazz = env->FindClass("nodejava/org/apache/commons/lang3/reflect/MethodUtils");
jmethodID methodUtils_getMatchingAccessibleMethod = env->GetStaticMethodID(methodUtilsClazz, "getMatchingAccessibleMethod", "(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;");
const char *methodNameCStr = methodName.c_str();
jstring methodNameJavaStr = env->NewStringUTF(methodNameCStr);
Expand All @@ -654,7 +654,7 @@ void javaCastArguments(JNIEnv *env, jobjectArray methodArgs, jobject method) {
}

jobject javaFindConstructor(JNIEnv *env, jclass clazz, jobjectArray methodArgs) {
jclass constructorUtilsClazz = env->FindClass("com/nearinfinity/org/apache/commons/lang3/reflect/ConstructorUtils");
jclass constructorUtilsClazz = env->FindClass("nodejava/org/apache/commons/lang3/reflect/ConstructorUtils");
jmethodID constructorUtils_getMatchingAccessibleConstructor = env->GetStaticMethodID(constructorUtilsClazz, "getMatchingAccessibleConstructor", "(Ljava/lang/Class;[Ljava/lang/Class;)Ljava/lang/reflect/Constructor;");
jobjectArray methodArgClasses = javaObjectArrayToClasses(env, methodArgs);
jobject method = env->CallStaticObjectMethod(constructorUtilsClazz, constructorUtils_getMatchingAccessibleConstructor, clazz, methodArgClasses);
Expand Down
15 changes: 15 additions & 0 deletions update-commons-lang.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash -ex

if [ -d build/commons-lang ]; then
cd build/commons-lang
git pull
else
mkdir -p build
cd build
git clone --depth 1 [email protected]:apache/commons-lang.git
cd commons-lang
fi

mvn clean compile package -DskipTests
java -jar ../../jarjar-1.4.jar process ../../commons-lang.jarjar.rules target/commons-lang3*-SNAPSHOT.jar ../../commons-lang3-node-java.jar

0 comments on commit f3ea8d8

Please sign in to comment.