equal
deleted
inserted
replaced
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 |