mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
6794582: javadoc should read files using a FileManager
Reviewed-by: darcy, bpatel
This commit is contained in:
parent
19b769a375
commit
981f025a85
13 changed files with 301 additions and 225 deletions
|
@ -25,6 +25,8 @@
|
|||
|
||||
package com.sun.tools.javadoc;
|
||||
|
||||
import java.lang.reflect.Modifier;
|
||||
|
||||
import com.sun.javadoc.*;
|
||||
|
||||
import static com.sun.javadoc.LanguageVersion.*;
|
||||
|
@ -38,9 +40,6 @@ import com.sun.tools.javac.tree.JCTree.JCVariableDecl;
|
|||
|
||||
import com.sun.tools.javac.util.Position;
|
||||
|
||||
import java.lang.reflect.Modifier;
|
||||
|
||||
|
||||
/**
|
||||
* Represents a field in a java class.
|
||||
*
|
||||
|
@ -260,7 +259,7 @@ public class FieldDocImpl extends MemberDocImpl implements FieldDoc {
|
|||
*/
|
||||
public SourcePosition position() {
|
||||
if (sym.enclClass().sourcefile == null) return null;
|
||||
return SourcePositionImpl.make(sym.enclClass().sourcefile.toString(),
|
||||
return SourcePositionImpl.make(sym.enclClass().sourcefile,
|
||||
(tree==null) ? 0 : tree.pos,
|
||||
lineMap);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue