JDK-8059563 : (proxy) sun.misc.ProxyGenerator.generateProxyClass should create intermediate directories
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang:reflect
  • Affected Version: 6u81
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2014-10-01
  • Updated: 2015-02-02
  • Resolved: 2014-10-09
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7
6u85Fixed 7u80 b03Fixed
Description
Testcase:

import sun.misc.ProxyGenerator;

public class InPackage {
    public static void main(String[] args) throws Throwable {
        ProxyGenerator.generateProxyClass("a.b.c.d",
                new Class[] {Inf.class});
    }

    static interface Inf {
    }
}

------------------------
When the test is executed with -Dsun.misc.ProxyGenerator.saveGeneratedFiles=true, it should created directories a/b/c.
This is already true with jdk8 and later.

The fix was a part of JDK-8004260.