* NOT PART OF TBOX BUILDS *
Fixed bug with attributes handling. Reported by Arthur Barrett git-svn-id: svn://10.0.0.236/trunk@79968 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -55,7 +55,7 @@ DSO_LDOPTS += \
|
||||
-L$(JDKHOME)/jre/lib/$(HOSTTYPE)/ \
|
||||
-L$(JDKHOME)/jre/lib/$(HOSTTYPE)/classic \
|
||||
-L$(JDKHOME)/jre/lib/$(HOSTTYPE)/native_threads \
|
||||
-ljvm -lhpi -ljava\
|
||||
-ljvm -lhpi -ljava -lawt\
|
||||
$(NULL)
|
||||
|
||||
#DSO_LDOPTS += \
|
||||
|
||||
@@ -107,9 +107,17 @@ JNIEXPORT jobjectArray JNICALL Java_org_mozilla_xpcom_Utilities_getInterfaceMeth
|
||||
for (int i = 0; i < num; i++) {
|
||||
interfaceInfo->GetMethodInfo(i, (const nsXPTMethodInfo **)&info);
|
||||
const char* name = info->GetName();
|
||||
// first letter of the method name is in lowercase in java
|
||||
sprintf(buf, "%c%s", tolower(*name), name + 1);
|
||||
env->SetObjectArrayElement(names, i, env->NewStringUTF(buf));
|
||||
|
||||
if (info->IsGetter()) {
|
||||
sprintf(buf, "get%c%s", toupper(*name), name+1);
|
||||
} else if (info->IsSetter()) {
|
||||
sprintf(buf, "set%c%s", toupper(*name), name+1);
|
||||
} else {
|
||||
// first letter of the method name is in lowercase in java
|
||||
sprintf(buf, "%c%s", tolower(*name), name + 1);
|
||||
}
|
||||
env->SetObjectArrayElement(names, i, env->NewStringUTF(buf));
|
||||
}
|
||||
return names;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user