< prev index next >

test/hotspot/jtreg/runtime/appcds/UseAppCDS.java

Print this page

*** 106,122 **** new String[0]); } public static List<String> toClassNames(String filename) throws IOException { ArrayList<String> classes = new ArrayList<>(); ! BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(filename))); for (; ; ) { String line = br.readLine(); ! if (line == null) break; classes.add(line.replaceAll("/", ".")); } return classes; } static void dumpLoadedClasses(boolean useAppCDS, String[] expectedClasses, String[] unexpectedClasses) throws Exception { --- 106,124 ---- new String[0]); } public static List<String> toClassNames(String filename) throws IOException { ArrayList<String> classes = new ArrayList<>(); ! try (BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(filename)))) { for (; ; ) { String line = br.readLine(); ! if (line == null) { break; + } classes.add(line.replaceAll("/", ".")); } + } return classes; } static void dumpLoadedClasses(boolean useAppCDS, String[] expectedClasses, String[] unexpectedClasses) throws Exception {
< prev index next >