ICU-13159 Fixed Java 6 compatibility issue in NumberFormatTest. Also fixed a test data loading problem in UTS46Test.
X-SVN-Rev: 40207
This commit is contained in:
parent
ade067638e
commit
d1e192dd1e
@ -5497,7 +5497,7 @@ public class NumberFormatTest extends TestFmwk {
|
||||
e.getCause() instanceof NullPointerException);
|
||||
} catch (Exception e) {
|
||||
// Other reflection exceptions
|
||||
throw new AssertionError("Reflection error in method " + npeMethod, e);
|
||||
throw new AssertionError("Reflection error in method " + npeMethod + ": " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -743,7 +743,7 @@ public class UTS46Test extends TestFmwk {
|
||||
|
||||
@Test
|
||||
public void IdnaTest() throws IOException {
|
||||
BufferedReader idnaTestFile = TestUtil.getDataReader("unicode/IdnaTest.txt");
|
||||
BufferedReader idnaTestFile = TestUtil.getDataReader("unicode/IdnaTest.txt", "UTF-8");
|
||||
Pattern semi = Pattern.compile(";");
|
||||
try {
|
||||
String line;
|
||||
|
Loading…
Reference in New Issue
Block a user