- // get method ID
- mid = (*env)->GetMethodID(env, cls, "getMaxSerializeLength", "()I");
- if(!mid)
- {
- printf(":!c: Method getMaxSerializeLength() not found! \n");
- return 0; // ma se pri selhani RecvInfa davat tvrdy return?
- }
-
-/*
- // get fieldID
- if((fieldID = (*env)->GetFieldID(env,cls_instance,"seconds","I")) == NULL)
- return((*env)->NewStringUTF(env, "error when reading Java-ntpTime"));
- // get objects value
- time.seconds = (int32_t) (*env)->GetIntField(env,j_ntpTime,fieldID);
-*/
-
-
-
-
- // get class MessageData
- cls = (*env)->GetObjectClass(env, j_instance);
- if(cls == 0)