United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6495350 openjdk: bootstrap on Mac
JDK-6495350 : openjdk: bootstrap on Mac

Details
Type:
Bug
Submit Date:
2006-11-19
Status:
Closed
Updated Date:
2011-05-18
Project Name:
JDK
Resolved Date:
2011-05-18
Component:
tools
OS:
generic
Sub-Component:
javac
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:

Related Reports

Sub Tasks

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
EVALUATION

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

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

Webrev of changes: http://sa.sfbay/projects/langtools/bugid_summary.pl?bugid=6495350
See also attachment 6495350.tar.gz
                                     
2006-11-19
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.*;
                                     
2006-11-19



Hardware and Software, Engineered to Work Together