1. SmartClient Version: v8.3p_2013-02-06/Enterprise Deployment (built 2013-02-06)
The same result occurs with the 4.0d build from 2013-05-30
2. N/A (Server-side), but IE 9 and Firefox 21.0
3. Logs do not indicate any error
4. no problem processing the response
5. no error
6. JUnit test cases:
This incorrect behavior is causing some hibernate queries to fail, when searching for objects containing an attribute of type boolean that are set to false.
The same result occurs with the 4.0d build from 2013-05-30
2. N/A (Server-side), but IE 9 and Firefox 21.0
3. Logs do not indicate any error
4. no problem processing the response
5. no error
6. JUnit test cases:
Code:
/** * Test Functionality of the isomorphic castValue method. */ public class DataToolsCastValue { @Test public void castFalseValue() throws Exception { final String falseString = "false"; final Boolean output = (Boolean) DataTools.castValue(falseString, Boolean.class); assertFalse("'false' is not cast to false.", output); // fails } @Test public void castTrueValue() throws Exception { final String trueString = "true"; final Boolean output = (Boolean) DataTools.castValue(trueString, Boolean.class); assertTrue("'true' is not cast to true.", output); // passes } }
Comment