diff --git a/WHATSNEW b/WHATSNEW index 5f4f34385..49e332481 100644 --- a/WHATSNEW +++ b/WHATSNEW @@ -214,6 +214,12 @@ Changes that could break older environments: This means, the jikes compiler adapter now requires Jikes 1.15 or later. Bugzilla Reports 25868, 26404 and 32609. +* The gcj compiler adapter used to include the Java runtime classes + even if includeJavaRuntime was set to false, unless the + bootclasspath has been specified as well. It will now always adhere + to includeJavaRuntime, you may need to set it to true explicitly now + if you relied on the old behavior. + Other changes: -------------- diff --git a/src/main/org/apache/tools/ant/taskdefs/compilers/Gcj.java b/src/main/org/apache/tools/ant/taskdefs/compilers/Gcj.java index d3779da51..d864085ba 100644 --- a/src/main/org/apache/tools/ant/taskdefs/compilers/Gcj.java +++ b/src/main/org/apache/tools/ant/taskdefs/compilers/Gcj.java @@ -1,5 +1,5 @@ /* - * Copyright 2001-2004 The Apache Software Foundation + * Copyright 2001-2005 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -61,10 +61,6 @@ public class Gcj extends DefaultCompilerAdapter { // so we'll emulate it for compatibility and convenience. classpath.addExtdirs(extdirs); - if (bootclasspath == null || bootclasspath.size() == 0) { - // no bootclasspath, therefore, get one from the java runtime - includeJavaRuntime = true; - } classpath.append(getCompileClasspath()); // Gcj has no option for source-path so we