< prev index next >

test/hotspot/jtreg/testlibrary/ctw/src/sun/hotspot/tools/ctw/Utils.java

Print this page
rev 47464 : 8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
Reviewed-by: duke

*** 191,204 **** * Tests if the filename is valid filename for class file. * * @param filename tested filename */ public static boolean isClassFile(String filename) { - // If the filename has a period after removing '.class', it's not valid class file return endsWithIgnoreCase(filename, CLASSFILE_EXT) ! && (filename.indexOf('.') ! == (filename.length() - CLASSFILE_EXT.length())); } /** * Converts the filename to classname. * --- 191,205 ---- * Tests if the filename is valid filename for class file. * * @param filename tested filename */ public static boolean isClassFile(String filename) { return endsWithIgnoreCase(filename, CLASSFILE_EXT) ! // skip all module-info.class files ! && !(filename.substring(filename.lastIndexOf('/') + 1, ! filename.lastIndexOf('.')) ! .equals("module-info")); } /** * Converts the filename to classname. *
< prev index next >