mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-16 10:17:23 +00:00
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:
parent
bd5fddc33f
commit
1944b97b64
1 changed files with 10 additions and 10 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue