8048806: Javadoc errors out on some valid HTML tags

Reviewed-by: bpatel
This commit is contained in:
Jonathan Gibbons 2014-07-11 18:51:32 -07:00
parent 0dd95d497b
commit 84e4fca0c8
2 changed files with 72 additions and 6 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -23,7 +23,7 @@
/*
* @test
* @bug 8004832
* @bug 8004832 8048806
* @summary Add new doclint package
* @build DocLintTester
* @run main DocLintTester ValidTest.java
@ -35,6 +35,38 @@ class ValidTest {
*/
void entities() { }
/**
* <abbr>abbreviation<abbr>
* <acronym>ABC</acronym>
* <cite>citation</cite>
* <code>code</code>
* <dfn>defining instance</dfn>
* <em>emphasis</em>
* <kbd>keyboard<kbd>
* <samp>sample</samp>
* <var>variable</var>
* <strong>strong</strong>
*/
void phraseElements() { }
/**
* <address>1 Main St., USA</address>
*/
void address() { }
/**
* <del>deleted</del>
* <ins>inserted</del>
*/
void docChanges() {}
/**
* <blockquote>
* A fine thing.
* </blockquote>
* <q>A fine thing.</q>
*/
/**
* <h1> ... </h1>
* <h2> ... </h2>