Community
Participate
Working Groups
Build Identifier: 201109282102 Type mismatch: cannot convert from null to int/long Reproducible: Always Steps to Reproduce: 1. Check out project "org.eclipse.edt.eunit.test" from kan-cvs. 2. Add java generator to the project. 3. Clean the whole workspace. 4. Such errors exist in many places, for example: fvt.librarysupport.TestMathLib2Lib
This is a valid defect, but the testcases should be changed to avoid it. The problem happens when null is passed as an argument to a function, and the function's parameter is not nullable. For example, fvt.librarysupport.TestMathLib2LibtestStringAsInt4() contains this line LogResult.assertBigIntEqual1(null, nullableBigint); And the first parameter of assertBigIntEqual1 is "expected bigint in". Notice that it's not nullable. In RBD you can pass null to a non-nullable parameter, and it's like passing in the variable's default value (zero, empty string, etc. depending on the parameter's type). But in EDT if you assign null to a non-nullable variable, or pass null to a non-nullable parameter, we'll throw a NullValueException. In other words, once the JavaGen error is fixed, this code won't work.
a different fix must have corrected this.
Verified in build 20111020