RFR: 8229031: Exporting CLASSPATH from shell can result in build failures

Erik Joelsson erikj at openjdk.java.net
Fri Aug 27 18:05:28 UTC 2021


On Fri, 27 Aug 2021 14:28:07 GMT, Magnus Ihse Bursie <ihse at openjdk.org> wrote:

> Having the environment variable CLASSPATH set when building can cause hard-to-diagnose build errors. We should not silently accept the CLASSPATH variable when building. Normally, the classpath should be correctly setup for all invocations of java during the build. If the user wants to have a hard-coded value for CLASSPATH, they must set it explicitly in `configure`.

Marked as reviewed by erikj (Reviewer).

-------------

PR: https://git.openjdk.java.net/jdk/pull/5280



More information about the build-dev mailing list