I am about to complete my test suite. I stepped over an interestig little glitch. My code uses reflection to access some fields. This works most of the time, exception for some fields of java.lang.Math, where I get a NaN, but I should get something else. My code reads:
Dear Leaningtech,
I am about to complete my test suite. I stepped over an interestig little glitch. My code uses reflection to access some fields. This works most of the time, exception for some fields of java.lang.Math, where I get a NaN, but I should get something else. My code reads:
The expected result is:
field=public static final double java.lang.Math.PI, obj=null, res=3.141592653589793
What happens in CheerpJ is the following:
field=public static final double java.lang.Math.PI, obj=null, res=NaN