RFR: timestamp oddities -sourcepath vs zip/jar

Andreas Lundblad andreas.lundblad at oracle.com
Thu Jun 5 11:34:29 UTC 2014


On Tue, Nov 12, 2013 at 10:54:18AM +0100, Fredrik Öhrström wrote:
> I have now created the bug JDK-8028196 "Javac allows timestamps inside
> rt.jar to affect compilation when using -sourcepath." to track the problem.
> 
> I also found that Erik Joelsson had already reported JDK-8025702, which has
> a good description of the kind of mysterious and difficult to track down
> error messages that you get when javac starts preferring rt.jar classes to
> your own sources.

Picking up this old thread just to report that this has been resolved [1].

By providing -XXuserPathsFirst sourcepaths and classpaths are scanned before boot classpath.

[1] http://hg.openjdk.java.net/jdk9/dev/langtools/rev/baf35a88504b

-- Andreas


More information about the compiler-dev mailing list