langtools/src/jdk.compiler/share/classes/com/sun/tools/javap/JavapTask.java
changeset 27579 d1a63c99cdd5
parent 27388 d694da45bd7a
child 27858 443efec4bf09
--- a/langtools/src/jdk.compiler/share/classes/com/sun/tools/javap/JavapTask.java	Tue Nov 18 15:25:18 2014 -0800
+++ b/langtools/src/jdk.compiler/share/classes/com/sun/tools/javap/JavapTask.java	Wed Dec 03 14:25:46 2014 +0000
@@ -681,6 +681,7 @@
                 final URI uri = new URI(className);
                 final URL url = uri.toURL();
                 final URLConnection conn = url.openConnection();
+                conn.setUseCaches(false);
                 return new JavaFileObject() {
                     @DefinedBy(Api.COMPILER)
                     public Kind getKind() {
@@ -709,7 +710,7 @@
 
                     @DefinedBy(Api.COMPILER)
                     public String getName() {
-                        return url.toString();
+                        return uri.toString();
                     }
 
                     @DefinedBy(Api.COMPILER)