more java tests moved to community

This commit is contained in:
Alexey Kudravtsev
2010-06-25 12:46:40 +04:00
parent 735a9d17a8
commit 2718da9fc7
1139 changed files with 14287 additions and 0 deletions
@@ -0,0 +1,16 @@
// "Move catch for 'java.io.IOException' before 'java.lang.Exception'" "true"
import java.io.*;
class a {
void f(int i) {
try {
if (i==0) throw new IOException();
} catch (IOException e) {
int ioexcep = 0;
} catch (Exception e) {
int excep = 0;
}<caret>
}
}
@@ -0,0 +1,16 @@
// "Move catch for 'java.io.IOException' before 'java.lang.Exception'" "true"
import java.io.*;
class a {
void f(int i) {
try {
if (i==0) throw new IOException();
} catch (Exception e) {
int excep = 0;
} catch (<caret>IOException e) {
int ioexcep = 0;
}
}
}
@@ -0,0 +1,18 @@
// "Move catch for 'java.io.IOException' before 'java.io.FileNotFoundException'" "false"
import java.io.*;
class a {
void f(int i) {
try {
int p = 0;
}
catch (FileNotFoundException e) {
int excep = 0;
}
catch (<caret>IOException e) {
int ioexcep = 0;
}
}
}