1.1 --- a/src/share/classes/com/sun/tools/javadoc/PackageDocImpl.java Mon Dec 10 16:21:26 2012 +0000 1.2 +++ b/src/share/classes/com/sun/tools/javadoc/PackageDocImpl.java Tue Dec 11 15:05:55 2012 -0800 1.3 @@ -31,6 +31,7 @@ 1.4 import javax.tools.FileObject; 1.5 1.6 import com.sun.javadoc.*; 1.7 +import com.sun.source.util.TreePath; 1.8 import com.sun.tools.javac.code.Attribute; 1.9 import com.sun.tools.javac.code.Scope; 1.10 import com.sun.tools.javac.code.Symbol.ClassSymbol; 1.11 @@ -75,17 +76,16 @@ 1.12 * Constructor 1.13 */ 1.14 public PackageDocImpl(DocEnv env, PackageSymbol sym) { 1.15 - this(env, sym, null, null); 1.16 + this(env, sym, null); 1.17 } 1.18 1.19 /** 1.20 * Constructor 1.21 */ 1.22 - public PackageDocImpl(DocEnv env, PackageSymbol sym, 1.23 - String documentation, JCTree tree) { 1.24 - super(env, documentation); 1.25 + public PackageDocImpl(DocEnv env, PackageSymbol sym, TreePath treePath) { 1.26 + super(env, treePath); 1.27 this.sym = sym; 1.28 - this.tree = (JCCompilationUnit) tree; 1.29 + this.tree = (treePath == null) ? null : (JCCompilationUnit) treePath.getCompilationUnit(); 1.30 foundDoc = (documentation != null); 1.31 } 1.32 1.33 @@ -93,8 +93,8 @@ 1.34 this.tree = (JCCompilationUnit) tree; 1.35 } 1.36 1.37 - public void setRawCommentText(String rawDocumentation) { 1.38 - super.setRawCommentText(rawDocumentation); 1.39 + public void setTreePath(TreePath treePath) { 1.40 + super.setTreePath(treePath); 1.41 checkDoc(); 1.42 } 1.43