projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
reinstate debian/ content on the debian branch only
[fw/altos]
/
altoslib
/
AltosJson.java
diff --git
a/altoslib/AltosJson.java
b/altoslib/AltosJson.java
index 80d83e48c94c89cb9621d327a04b56dcff543910..67f3a00ad3fdc2502e7921cc962ad98b5a8e5bb1 100644
(file)
--- a/
altoslib/AltosJson.java
+++ b/
altoslib/AltosJson.java
@@
-1063,7
+1063,7
@@
public class AltosJson extends JsonUtil {
} else {
object = c.newInstance();
}
} else {
object = c.newInstance();
}
- for (; c !=
null
; c = c.getSuperclass()) {
+ for (; c !=
Object.class
; c = c.getSuperclass()) {
for (Field field : c.getDeclaredFields()) {
String fieldName = field.getName();
Class fieldClass = field.getType();
for (Field field : c.getDeclaredFields()) {
String fieldName = field.getName();
Class fieldClass = field.getType();
@@
-1080,17
+1080,27
@@
public class AltosJson extends JsonUtil {
field.set(object, val);
}
} catch (IllegalAccessException ie) {
field.set(object, val);
}
} catch (IllegalAccessException ie) {
+ System.out.printf("%s:%s %s\n",
+ c.getName(), fieldName, ie.toString());
}
}
}
ret = object;
} catch (InvocationTargetException ie) {
}
}
}
ret = object;
} catch (InvocationTargetException ie) {
+ System.out.printf("%s: %s\n",
+ c.getName(), ie.toString());
ret = null;
} catch (NoSuchMethodException ie) {
ret = null;
} catch (NoSuchMethodException ie) {
+ System.out.printf("%s: %s\n",
+ c.getName(), ie.toString());
ret = null;
} catch (InstantiationException ie) {
ret = null;
} catch (InstantiationException ie) {
+ System.out.printf("%s: %s\n",
+ c.getName(), ie.toString());
ret = null;
} catch (IllegalAccessException ie) {
ret = null;
} catch (IllegalAccessException ie) {
+ System.out.printf("%s: %s\n",
+ c.getName(), ie.toString());
ret = null;
}
}
ret = null;
}
}
@@
-1198,7
+1208,7
@@
public class AltosJson extends JsonUtil {
}
} else {
assert_hash(true);
}
} else {
assert_hash(true);
- for (Class c = object.getClass(); c !=
null
; c = c.getSuperclass()) {
+ for (Class c = object.getClass(); c !=
Object.class
; c = c.getSuperclass()) {
for (Field field : c.getDeclaredFields()) {
String fieldName = field.getName();
for (Field field : c.getDeclaredFields()) {
String fieldName = field.getName();
@@
-1223,6
+1233,8
@@
public class AltosJson extends JsonUtil {
put(fieldName, json);
}
} catch (IllegalAccessException ie) {
put(fieldName, json);
}
} catch (IllegalAccessException ie) {
+ System.out.printf("%s:%s %s\n",
+ c.getName(), fieldName, ie.toString());
}
}
}
}
}
}