Commit 01eb4a21 authored by Ryan Berkheimer's avatar Ryan Berkheimer

checkpoint commit - debugging C api in rhel7 context. will be several more debugs.

parent 5b085c0c
......@@ -27,7 +27,7 @@
"fields": ["initial-value", "string-test", "int-list-test"]}],
"connections": [{"id": "1",
"collections": ["coll-1"],
"constructor": {"native-library": "/Users/rberkheimer/projects/asos/ingest/libraries/messageapi/lib/test/native/demoendpointlibrary/libDemoEndpointLibrary.jnilib",
"constructor": {"native-library": "/proc_lg/berkheimer/messageapi/lib/test/native/demoendpointlibrary/libDemoEndpointLibrary.so",
"default-fields": [{"id": "test-integer",
"type": "integer",
"required": false}],
......@@ -35,4 +35,4 @@
"type": "integer",
"required": false,
"value": 0}]}}]
}
\ No newline at end of file
}
......@@ -90,7 +90,7 @@ ifeq ($(UNAME), Darwin)
LNFLAGS=-dynamiclib -shared -lgfortran -I$(JVMHEADERS) -framework JavaVM
endif
CFLAGS=-I$(JVMHEADERS) -I$(COMMONCPPPATH) -I$(COMMONCPATH) -I$(USERCPPPATH) -I$(USERCPATH) -I$(JNIDIR) -I$(JNIMDDIR) -fpic
CFLAGS=-I$(JVMHEADERS) -I$(COMMONCPPPATH) -I$(COMMONCPATH) -I$(USERCPPPATH) -I$(USERCPATH) -I$(JNIDIR) -I$(JNIMDDIR) -fpic -std=c99
FFLAGS=-I$(COMMONFORTRANPATH) -I$(USERFORTRANPATH) -fPIC -fopenmp
#The following is the target library for the native jni library.
......
......@@ -162,15 +162,14 @@ void MessageApiEndpoint::loadConditionMethodIds()
*/
void MessageApiEndpoint::loadValueTypeMethodIds()
{
jclass jListClass = static_cast<jclass>(this->jvm->NewLocalRef(this->jvm->FindClass("java/util/List")));
this->getJListSizeMethodId = this->jvm->GetMethodID(jListClass, "size", "()I");
this->getJListItemMethodId = this->jvm->GetMethodID(jListClass, "get", "(I)Ljava/lang/Object;");
this->addJListItemMethodId = this->jvm->GetMethodID(jListClass, "add", "(Ljava/lang/Object;)Z");
this->jvm->DeleteLocalRef(jListClass);
jclass jArrayListClass = static_cast<jclass>(this->jvm->NewLocalRef(this->jvm->FindClass("java/util/ArrayList")));
this->createJListMethodId = this->jvm->GetMethodID(jArrayListClass, "<init>", "()V");
this->jvm->DeleteLocalRef(jArrayListClass);
jclass jListClazz = this->getNamedClass("java/util/List");
this->getJListSizeMethodId = this->jvm->GetMethodID(jListClazz, "size", "()I");
this->getJListItemMethodId = this->jvm->GetMethodID(jListClazz, "get", "(I)Ljava/lang/Object;");
this->addJListItemMethodId = this->jvm->GetMethodID(jListClazz, "add", "(Ljava/lang/Object;)Z");
this->jvm->DeleteLocalRef(jListClazz);
/*Initialization for list as ArrayList (not List)*/
this->createJListMethodId = this->jvm->GetMethodID(this->jListClass, "<init>", "()V");
jclass jBoolClass = this->getNamedClass("java/lang/Boolean");
this->getJBoolMethodId = this->jvm->GetMethodID(jBoolClass, "booleanValue", "()Z");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment