Skip to content
This repository was archived by the owner on Sep 2, 2022. It is now read-only.

Commit c398a82

Browse files
8258916: javac/doclint reports broken HTML on multiline mailto links
Reviewed-by: jlaskey, iris
1 parent 23b83c5 commit c398a82

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/jdk.compiler/share/classes/com/sun/tools/javac/parser/DocCommentParser.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -917,6 +917,7 @@ protected List<DCTree> htmlAttrs() {
917917
nextChar();
918918
skipWhitespace();
919919
if (ch == '\'' || ch == '"') {
920+
newline = false;
920921
vkind = (ch == '\'') ? ValueKind.SINGLE : ValueKind.DOUBLE;
921922
char quote = ch;
922923
nextChar();

test/langtools/tools/doclint/HtmlAttrsTest.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* @test /nodynamiccopyright/
3-
* @bug 8004832
3+
* @bug 8004832 8258916
44
* @summary Add new doclint package
55
* @modules jdk.javadoc/jdk.javadoc.internal.doclint
66
* @build DocLintTester
@@ -24,5 +24,11 @@ public void obsolete() { }
2424
* <font size="3"> text </font>
2525
*/
2626
public void obsolete_use_css() { }
27+
28+
/**
29+
* multi-line mailto <a
30+
* href="mailto:nobody@example.com">nobody</a>
31+
*/
32+
public void multiline_mailto() { }
2733
}
2834

0 commit comments

Comments
 (0)