File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
src/jdk.compiler/share/classes/com/sun/tools/javac/parser
test/langtools/tools/javac/doctree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -586,14 +586,16 @@ protected DCText inlineWord() {
586586 case '@' :
587587 if (newline )
588588 break loop ;
589+ break ;
589590
590591 case '{' :
591592 depth ++;
592593 break ;
593594
594595 case '}' :
595- if (depth == 0 || -- depth == 0 )
596+ if (depth == 0 )
596597 return m .at (pos ).newTextTree (newString (pos , bp ));
598+ depth --;
597599 break ;
598600 }
599601 newline = false ;
Original file line number Diff line number Diff line change 2323
2424/*
2525 * @test
26- * @bug 8144287 8273244 8284908
26+ * @bug 8144287 8273244 8284908 8305620
2727 * @summary extend com.sun.source API to support parsing javadoc comments
2828 * @modules jdk.compiler/com.sun.tools.javac.api
2929 * jdk.compiler/com.sun.tools.javac.file
@@ -155,12 +155,12 @@ void phrase_with_description() { }
155155*/
156156
157157 /**
158- * abc {@index {@xyz} "{@see xyz}" def}
158+ * abc {@index {@xyz} "{@see xyz}"} def
159159 */
160160 void term_and_description_with_nested_tag () {}
161161/*
162162DocComment[DOC_COMMENT, pos:1
163- firstSentence: 2
163+ firstSentence: 3
164164 Text[TEXT, pos:1, abc_]
165165 Index[INDEX, pos:5
166166 term:
@@ -172,8 +172,9 @@ void term_and_description_with_nested_tag() {}
172172 content: 1
173173 Text[TEXT, pos:27, xyz]
174174 ]
175- Text[TEXT, pos:31, "_def ]
175+ Text[TEXT, pos:31, "]
176176 ]
177+ Text[TEXT, pos:33, _def]
177178 body: empty
178179 block tags: empty
179180]
You can’t perform that action at this time.
0 commit comments