< prev index next >

test/jdk/com/sun/tools/jextract/Runner.java

Print this page

        

*** 83,93 **** private Map<String, byte[]> actualClz; private ClassLoader actualCL; private Object[][] clz_data; public Runner(Path nativeSrc, String pkg, Path[] javaSrcFiles) { ! this.ctx = new Context(); this.nativeSrc = nativeSrc; this.pkg = pkg; this.javaSrcFiles = javaSrcFiles; } --- 83,93 ---- private Map<String, byte[]> actualClz; private ClassLoader actualCL; private Object[][] clz_data; public Runner(Path nativeSrc, String pkg, Path[] javaSrcFiles) { ! this.ctx = new Context(new String[0]); this.nativeSrc = nativeSrc; this.pkg = pkg; this.javaSrcFiles = javaSrcFiles; }
*** 126,142 **** --- 126,144 ---- for (JarEntry e = jis.getNextJarEntry(); e != null; e = jis.getNextJarEntry()) { if (e.isDirectory()) { continue; } String name = e.getName(); + if (! name.endsWith(".properties")) { if (! name.endsWith(".class")) { // Should not have file not class files System.err.println("Warning: unexpected file " + name); } name = name.substring(0, name.length() - 6); files.add(name.replace(File.separatorChar, '.')); } + } assertEquals(files, mfm.listClasses()); } private void verifyNativeLocation(NativeLocation actual, NativeLocation expected) {
< prev index next >