Due to the removal of support for compound boxing operations, the following
program should not compile. The current compiler generates code that does
not verify.
class T {
public void assertion2() {
Character ch = 95;
ch++;
System.out.println("The value of char is : "+ch);
}
public static void main(String args[]) {
T ref = new T();
ref.assertion2();
}
}
program should not compile. The current compiler generates code that does
not verify.
class T {
public void assertion2() {
Character ch = 95;
ch++;
System.out.println("The value of char is : "+ch);
}
public static void main(String args[]) {
T ref = new T();
ref.assertion2();
}
}