Code: Select all
class serialtest {
public static void main(String args[]) {
if (true)
String str;
}
}
Code: Select all
C:\OPA\2nd semister\Papaioannou\bug report\serialtest.java:4: not a statement
String str;
^
C:\OPA\2nd semister\Papaioannou\bug report\serialtest.java:4: ';' expected
String str;
^
2 errors
Process completed.

Code: Select all
class serialtest {
public static void main(String args[]) {
if (true) {
String str;
}
}
}
To πρόβλημα εντοπίζεται εδώ:
if (true) {
String str;
}Αν αφαιρέσω τα άγκυστρα πάπαλα ο compiler

Πρόκειται για bug?