Consider the following code:
public class Main {
public static void main(String[] args) {
int y = 0;
double z = y;
System.out.println("0");
}
}
This is a legitimate Java program, but running it in the live and local versions of SA both yield a Runtime Exception message:
Exception in thread "Thread-0"
java.lang.RuntimeException
This behaviour seems to be confined to int to double conversion, as replacing "double" with "float" solves the problem. More testing needed to determine if there are any other buggy cases.
Consider the following code:
This is a legitimate Java program, but running it in the live and local versions of SA both yield a Runtime Exception message:
This behaviour seems to be confined to int to double conversion, as replacing "double" with "float" solves the problem. More testing needed to determine if there are any other buggy cases.