mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-4530 make noDataCheck work
X-SVN-Rev: 18742
This commit is contained in:
parent
b120a3251b
commit
21e2e63740
2 changed files with 11 additions and 5 deletions
|
@ -16,6 +16,7 @@ import java.io.ObjectInputStream;
|
|||
import java.net.JarURLConnection;
|
||||
import java.net.URL;
|
||||
import java.util.Enumeration;
|
||||
import java.util.MissingResourceException;
|
||||
import java.util.jar.JarEntry;
|
||||
import java.util.jar.JarFile;
|
||||
|
||||
|
@ -108,9 +109,11 @@ public class CompatibilityTest extends TestFmwk
|
|||
// }
|
||||
|
||||
if (! handler.hasSameBehavior(inputObjects[i], testObjects[i])) {
|
||||
errln("Input object " + i + " failed behavior test.");
|
||||
warnln("Input object " + i + " failed behavior test.");
|
||||
}
|
||||
}
|
||||
}catch (MissingResourceException e){
|
||||
warnln("Could not load the data. "+e.getMessage());
|
||||
} catch (Exception e) {
|
||||
errln("Exception: " + e.toString());
|
||||
}
|
||||
|
|
|
@ -36,12 +36,12 @@ public class CoverageTest extends CompatibilityTest implements URLHandler.URLVis
|
|||
|
||||
private static Class serializable;
|
||||
|
||||
static {
|
||||
public void init() {
|
||||
try {
|
||||
serializable = Class.forName("java.io.Serializable");
|
||||
} catch (Exception e) {
|
||||
// we're in deep trouble...
|
||||
System.out.println("Woops! Can't get class info for Serializable.");
|
||||
warnln("Woops! Can't get class info for Serializable.");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -132,6 +132,9 @@ public class CoverageTest extends CompatibilityTest implements URLHandler.URLVis
|
|||
|
||||
public void visit(String str)
|
||||
{
|
||||
if(serializable==null){
|
||||
return;
|
||||
}
|
||||
int ix = str.lastIndexOf(".class");
|
||||
|
||||
if (ix >= 0) {
|
||||
|
@ -163,7 +166,7 @@ public class CoverageTest extends CompatibilityTest implements URLHandler.URLVis
|
|||
out.close();
|
||||
byteOut.close();
|
||||
} catch (IOException e) {
|
||||
System.out.println("Eror writing test objects: " + e.toString());
|
||||
warnln("Eror writing test objects: " + e.toString());
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -174,7 +177,7 @@ public class CoverageTest extends CompatibilityTest implements URLHandler.URLVis
|
|||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error processing " + className + ": " + e.toString());
|
||||
warnln("Error processing " + className + ": " + e.toString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue