< prev index next >

src/jdk.jextract/share/classes/com/sun/tools/jextract/JarWriter.java

Print this page

        

@@ -52,11 +52,11 @@
     }
 
     public void writeJarFile(JarOutputStream jar, String[] args) {
         writer.results().forEach((cls, bytes) -> {
                 try {
-                    String path = cls.replace('.', File.separatorChar) + ".class";
+                    String path = cls.replace('.', '/') + ".class";
                     log.print(Level.FINE, () -> "Add " + path);
                     jar.putNextEntry(new ZipEntry(path));
                     jar.write(bytes);
                     jar.closeEntry();
                 } catch (IOException ioe) {
< prev index next >