Mail Archive Home | fractal-commits List | September 2006 Index
| <-- Date Index --> | <-- Thread Index --> |
Date: Thursday, September 14, 2006 @ 10:12:46
Author: pcdavid
Path: /cvsroot/fractal/fscript/src/org/objectweb/fractal/fscript
Modified: FBean.java
Fixed a bug with primitive boolean attributes handling (compatible setters
where not correctly identified and called). Thanks to Denis Conan for
spotting it.
------------+
FBean.java | 4 ++++
1 files changed, 4 insertions(+)
Index: fscript/src/org/objectweb/fractal/fscript/FBean.java
diff -u fscript/src/org/objectweb/fractal/fscript/FBean.java:1.2
fscript/src/org/objectweb/fractal/fscript/FBean.java:1.3
--- fscript/src/org/objectweb/fractal/fscript/FBean.java:1.2 Tue Jul 18
20:52:17 2006
+++ fscript/src/org/objectweb/fractal/fscript/FBean.java Thu Sep 14
10:12:46 2006
@@ -208,6 +208,8 @@
return true;
} else if (value instanceof Number && isNumericType(pTypes[0])) {
return true;
+ } else if (value instanceof Boolean &&
pTypes[0].equals(Boolean.TYPE)) {
+ return true;
} else {
return pTypes[0].isAssignableFrom(value.getClass());
}
@@ -272,6 +274,8 @@
} else {
throw new RuntimeException("Should not happen.");
}
+ } else if (value instanceof Boolean &&
expected.equals(Boolean.TYPE)) {
+ return value;
} else {
return null;
}
| <-- Date Index --> | <-- Thread Index --> |
Powered by MHonArc.
Copyright © 2006-2007, OW2 Consortium | contact | webmaster.