Commit 022290b 1 parent 2e59d21 commit 022290b Copy full SHA for 022290b
File tree 2 files changed +8
-5
lines changed
src/jdk.compiler/share/classes/com/sun/tools/javac/parser
test/langtools/tools/javac/doctree
2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -586,14 +586,16 @@ protected DCText inlineWord() {
586
586
case '@' :
587
587
if (newline )
588
588
break loop ;
589
+ break ;
589
590
590
591
case '{' :
591
592
depth ++;
592
593
break ;
593
594
594
595
case '}' :
595
- if (depth == 0 || -- depth == 0 )
596
+ if (depth == 0 )
596
597
return m .at (pos ).newTextTree (newString (pos , bp ));
598
+ depth --;
597
599
break ;
598
600
}
599
601
newline = false ;
Original file line number Diff line number Diff line change 23
23
24
24
/*
25
25
* @test
26
- * @bug 8144287 8273244 8284908
26
+ * @bug 8144287 8273244 8284908 8305620
27
27
* @summary extend com.sun.source API to support parsing javadoc comments
28
28
* @modules jdk.compiler/com.sun.tools.javac.api
29
29
* jdk.compiler/com.sun.tools.javac.file
@@ -155,12 +155,12 @@ void phrase_with_description() { }
155
155
*/
156
156
157
157
/**
158
- * abc {@index {@xyz} "{@see xyz}" def}
158
+ * abc {@index {@xyz} "{@see xyz}"} def
159
159
*/
160
160
void term_and_description_with_nested_tag () {}
161
161
/*
162
162
DocComment[DOC_COMMENT, pos:1
163
- firstSentence: 2
163
+ firstSentence: 3
164
164
Text[TEXT, pos:1, abc_]
165
165
Index[INDEX, pos:5
166
166
term:
@@ -172,8 +172,9 @@ void term_and_description_with_nested_tag() {}
172
172
content: 1
173
173
Text[TEXT, pos:27, xyz]
174
174
]
175
- Text[TEXT, pos:31, "_def ]
175
+ Text[TEXT, pos:31, "]
176
176
]
177
+ Text[TEXT, pos:33, _def]
177
178
body: empty
178
179
block tags: empty
179
180
]
You can’t perform that action at this time.
0 commit comments