< prev index next >

src/java.base/share/classes/java/lang/reflect/ProxyGenerator.java

Print this page

        

*** 32,42 **** import java.io.OutputStream; import java.lang.reflect.Array; import java.lang.reflect.Method; import java.nio.file.Files; import java.nio.file.Path; - import java.nio.file.Paths; import java.util.ArrayList; import java.util.HashMap; import java.util.LinkedList; import java.util.List; import java.util.ListIterator; --- 32,41 ----
*** 344,358 **** public Void run() { try { int i = name.lastIndexOf('.'); Path path; if (i > 0) { ! Path dir = Paths.get(name.substring(0, i).replace('.', File.separatorChar)); Files.createDirectories(dir); path = dir.resolve(name.substring(i+1, name.length()) + ".class"); } else { ! path = Paths.get(name + ".class"); } Files.write(path, classFile); return null; } catch (IOException e) { throw new InternalError( --- 343,357 ---- public Void run() { try { int i = name.lastIndexOf('.'); Path path; if (i > 0) { ! Path dir = Path.get(name.substring(0, i).replace('.', File.separatorChar)); Files.createDirectories(dir); path = dir.resolve(name.substring(i+1, name.length()) + ".class"); } else { ! path = Path.get(name + ".class"); } Files.write(path, classFile); return null; } catch (IOException e) { throw new InternalError(
< prev index next >