ICU-6376 Moved the check for serialVersionUID in CoverageTest.CoverageTarget.execute() to before the test for a null inputStream

X-SVN-Rev: 24441
This commit is contained in:
Kedar Rajwade 2008-08-05 18:58:52 +00:00
parent bd5fddc33f
commit 1944b97b64

View file

@ -1,6 +1,6 @@
/*
*******************************************************************************
* Copyright (C) 2005-2007, International Business Machines Corporation and *
* Copyright (C) 2005-2008, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*
@ -105,17 +105,17 @@ public class CoverageTest extends CompatibilityTest implements URLHandler.URLVis
public void execute() throws Exception
{
Class c = Class.forName(name);
try {
/*Field uid = */c.getDeclaredField("serialVersionUID");
} catch (Exception e) {
errln("No serialVersionUID");
}
if (inputStream == null) {
params.testCount += 1;
} else {
Class c = Class.forName(name);
try {
/*Field uid = */c.getDeclaredField("serialVersionUID");
} catch (Exception e) {
errln("No serialVersionUID");
}
if (path != null) {
if (path != null) {
writeFile(name, bytes);
}
@ -144,7 +144,7 @@ public class CoverageTest extends CompatibilityTest implements URLHandler.URLVis
int m = c.getModifiers();
if (serializable.isAssignableFrom(c)) {
if (Modifier.isPublic(m)) {
if (Modifier.isPublic(m) && !Modifier.isInterface(m)) {
SerializableTest.Handler handler = SerializableTest.getHandler(className);
if (handler != null) {