# HG changeset patch # User lagergren # Date 1409834550 -7200 # Node ID 31155daecdc7f9c23d6cf346c8401ae50b5483a8 # Parent a741f78085070b199b27c4e8ac1a88e3fd09a934 8057551: Let the -d flag dump _all_ generated classes to disk and work outside --compile-only mode Reviewed-by: attila, jlaskey diff -r a741f7808507 -r 31155daecdc7 nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/codegen/DumpBytecode.java --- a/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/codegen/DumpBytecode.java Thu Sep 04 10:52:42 2014 +0200 +++ b/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/codegen/DumpBytecode.java Thu Sep 04 14:42:30 2014 +0200 @@ -89,7 +89,7 @@ // should code be dumped to disk - only valid in compile_only mode? - if (env._dest_dir != null && env._compile_only) { + if (env._dest_dir != null) { final String fileName = className.replace('.', File.separatorChar) + ".class"; final int index = fileName.lastIndexOf(File.separatorChar);