summaryrefslogtreecommitdiffstats
path: root/src/java/com/sun
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2006-09-03 20:29:49 +0000
committerKenneth Russel <[email protected]>2006-09-03 20:29:49 +0000
commit25a8bb55e70085793031d779bdf8f4fd1ccfdb65 (patch)
treec0a27ed0e179cfd4643bc83671117e28b033fbee /src/java/com/sun
parent04897a914009ec3504861bcf3441a3b37d517373 (diff)
Removed use of Class.getDeclaredFields() from ProcAddressHelper due to
security-related issues on Mac OS X git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@47 a78bb65f-1512-4460-ba86-f6dc96a7bf27
Diffstat (limited to 'src/java/com/sun')
-rw-r--r--src/java/com/sun/gluegen/runtime/ProcAddressHelper.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/com/sun/gluegen/runtime/ProcAddressHelper.java b/src/java/com/sun/gluegen/runtime/ProcAddressHelper.java
index 4cf0b76..198519d 100644
--- a/src/java/com/sun/gluegen/runtime/ProcAddressHelper.java
+++ b/src/java/com/sun/gluegen/runtime/ProcAddressHelper.java
@@ -48,7 +48,7 @@ public class ProcAddressHelper {
public static void resetProcAddressTable(Object table,
DynamicLookupHelper lookup) throws RuntimeException {
Class tableClass = table.getClass();
- java.lang.reflect.Field[] fields = tableClass.getDeclaredFields();
+ java.lang.reflect.Field[] fields = tableClass.getFields();
for (int i = 0; i < fields.length; ++i) {
String addressFieldName = fields[i].getName();
@@ -59,7 +59,7 @@ public class ProcAddressHelper {
int startOfMethodName = ProcAddressHelper.PROCADDRESS_VAR_PREFIX.length();
String funcName = addressFieldName.substring(startOfMethodName);
try {
- java.lang.reflect.Field addressField = tableClass.getDeclaredField(addressFieldName);
+ java.lang.reflect.Field addressField = fields[i];
assert(addressField.getType() == Long.TYPE);
long newProcAddress = lookup.dynamicLookupFunction(funcName);
// set the current value of the proc address variable in the table object