< prev index next >

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

Print this page

        

@@ -83,11 +83,11 @@
     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.ctx = new Context(new String[0]);
         this.nativeSrc = nativeSrc;
         this.pkg = pkg;
         this.javaSrcFiles = javaSrcFiles;
     }
 

@@ -126,17 +126,19 @@
         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 >