jdk6: LazyInitialization in java.io.File

Nico R. n-roeser at gmx.net
Mon Jan 18 19:39:01 UTC 2010


In java.io.File.createTempFile(String,String,File) (see
line 1797 says:

        String tmpDir = LazyInitialization.temporaryDirectory();

LazyInitialization, line 1683, has

    static final String temporaryDirectory = temporaryDirectory();

Shouldn’t the createTempFile method read from the /field/ in
LazyInitialization instead of calling the /method/? If I got this
correctly, the brackets in line 1797 should be removed.


More information about the core-libs-dev mailing list