JDK-6495350 : openjdk: bootstrap on Mac
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 6
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2006-11-19
  • Updated: 2014-02-27
  • Resolved: 2011-05-18
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 7
7 b03Fixed
Description
The compiler sources can't be build on Mac OS X because com.sun.tools.javac.tree.Tree
was renamed to com.sun.tools.javac.tree.JCTree and the old version conflicts with
com.sun.source.tree.Tree when imported on demand (import com.sun.source.tree.*).

Comments
SUGGESTED FIX Index: j2se/src/share/classes/com/sun/tools/javac/api/JavacTaskImpl.java --- /tmp/geta24237 2006-11-19 14:25:02.000000000 -0800 +++ /tmp/getb24237 2006-11-19 14:25:02.000000000 -0800 @@ -21,6 +21,7 @@ import javax.lang.model.type.TypeMirror; import javax.tools.*; +import com.sun.source.tree.Tree; import com.sun.source.tree.*; import com.sun.source.util.*; import com.sun.tools.javac.code.*; Index: j2se/src/share/classes/com/sun/tools/javac/tree/TreeCopier.java --- /tmp/geta24244 2006-11-19 14:25:37.000000000 -0800 +++ /tmp/getb24244 2006-11-19 14:25:37.000000000 -0800 @@ -10,6 +10,7 @@ package com.sun.tools.javac.tree; +import com.sun.source.tree.Tree; import com.sun.source.tree.*; import com.sun.tools.javac.tree.JCTree.*; import com.sun.tools.javac.util.List; Index: j2se/src/share/classes/com/sun/tools/javac/tree/JCTree.java --- /tmp/geta24255 2006-11-19 14:26:38.000000000 -0800 +++ /tmp/getb24255 2006-11-19 14:26:38.000000000 -0800 @@ -26,6 +26,7 @@ import com.sun.tools.javac.code.*; import com.sun.tools.javac.code.Scope; import com.sun.tools.javac.code.Symbol.*; +import com.sun.source.tree.Tree; import com.sun.source.tree.*; import static com.sun.tools.javac.code.BoundKind.*;
19-11-2006

SUGGESTED FIX Webrev of changes: http://sa.sfbay/projects/langtools/bugid_summary.pl?bugid=6495350 See also attachment 6495350.tar.gz
19-11-2006

EVALUATION No regression tests added as this relies on having an older version of the JDK available.
19-11-2006

EVALUATION Should be solved by adding a few explicit imports of com.sun.source.tree.Tree.
19-11-2006