You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that kjtest.sh produces a generator error, when a division by zero is performed, which makes it really difficult to find the problem. Would it be possible that kjtest checks, if the same exception is produced by Java?
int a =0;
int b = 234;
int c = b / a;
System.out.println(""+c);
Moreover, in some cases K-Java reports a division by zero exception, even though it should not, since the result should be Infinity, when the computation is done with doubles or floats.
int a =0;
double b = 234;
double c = b / a;
System.out.println(""+c);
The text was updated successfully, but these errors were encountered:
I noticed that kjtest.sh produces a generator error, when a division by zero is performed, which makes it really difficult to find the problem. Would it be possible that kjtest checks, if the same exception is produced by Java?
Moreover, in some cases K-Java reports a division by zero exception, even though it should not, since the result should be Infinity, when the computation is done with doubles or floats.
The text was updated successfully, but these errors were encountered: