langtools/test/tools/javac/parser/T4910483.java
changeset 34560 b6a567b677f7
parent 30730 d3ce7619db2c
equal deleted inserted replaced
34481:e0ff9821f1e8 34560:b6a567b677f7
    47         JavaCompiler compiler = JavaCompiler.instance(new Context());
    47         JavaCompiler compiler = JavaCompiler.instance(new Context());
    48         compiler.keepComments = true;
    48         compiler.keepComments = true;
    49 
    49 
    50         String testSrc = System.getProperty("test.src");
    50         String testSrc = System.getProperty("test.src");
    51         JavacFileManager fm = new JavacFileManager(new Context(), false, null);
    51         JavacFileManager fm = new JavacFileManager(new Context(), false, null);
    52         JavaFileObject f = fm.getFileForInput(testSrc + File.separatorChar + "T4910483.java");
    52         JavaFileObject f = fm.getJavaFileObject(testSrc + File.separatorChar + "T4910483.java");
    53 
    53 
    54         JCTree.JCCompilationUnit cu = compiler.parse(f);
    54         JCTree.JCCompilationUnit cu = compiler.parse(f);
    55         JCTree classDef = cu.getTypeDecls().head;
    55         JCTree classDef = cu.getTypeDecls().head;
    56         String commentText = cu.docComments.getCommentText(classDef);
    56         String commentText = cu.docComments.getCommentText(classDef);
    57 
    57