Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_langtools
提交
dd975d93
D
dragonwell8_langtools
项目概览
openanolis
/
dragonwell8_langtools
通知
0
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_langtools
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
dd975d93
编写于
10月 23, 2013
作者:
B
bpatel
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8026770: javadoc creates invalid HTML in profile summary pages
Reviewed-by: jjg
上级
15a3ba0f
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
41 addition
and
4 deletion
+41
-4
src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java
.../com/sun/tools/doclets/formats/html/HtmlDocletWriter.java
+1
-2
src/share/classes/com/sun/tools/doclets/formats/html/ProfilePackageWriterImpl.java
.../tools/doclets/formats/html/ProfilePackageWriterImpl.java
+4
-1
test/com/sun/javadoc/testProfiles/TestProfiles.java
test/com/sun/javadoc/testProfiles/TestProfiles.java
+36
-1
未找到文件。
src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java
浏览文件 @
dd975d93
...
...
@@ -391,8 +391,7 @@ public class HtmlDocletWriter extends HtmlDocWriter {
tbody
.
addContent
(
tr
);
}
table
.
addContent
(
tbody
);
Content
li
=
HtmlTree
.
LI
(
HtmlStyle
.
blockList
,
table
);
summaryContentTree
.
addContent
(
li
);
summaryContentTree
.
addContent
(
table
);
}
}
...
...
src/share/classes/com/sun/tools/doclets/formats/html/ProfilePackageWriterImpl.java
浏览文件 @
dd975d93
...
...
@@ -175,8 +175,11 @@ public class ProfilePackageWriterImpl extends HtmlDocletWriter
*/
public
void
addClassesSummary
(
ClassDoc
[]
classes
,
String
label
,
String
tableSummary
,
String
[]
tableHeader
,
Content
packageSummaryContentTree
)
{
HtmlTree
li
=
new
HtmlTree
(
HtmlTag
.
LI
);
li
.
addStyle
(
HtmlStyle
.
blockList
);
addClassesSummary
(
classes
,
label
,
tableSummary
,
tableHeader
,
packageSummaryContentTree
,
profileValue
);
li
,
profileValue
);
packageSummaryContentTree
.
addContent
(
li
);
}
/**
...
...
test/com/sun/javadoc/testProfiles/TestProfiles.java
浏览文件 @
dd975d93
...
...
@@ -23,7 +23,7 @@
/*
* @test
* @bug 8006124 8009684 8016921 8023700 8024096 8008164 8026567
* @bug 8006124 8009684 8016921 8023700 8024096 8008164 8026567
8026770
* @summary Test javadoc support for profiles.
* @author Bhavesh Patel, Evgeniya Stepanova
* @library ../lib/
...
...
@@ -85,6 +85,20 @@ public class TestProfiles extends JavadocTester {
"<h3><a href=\"pkg2/compact2-package-summary.html\" "
+
"target=\"classFrame\">pkg2</a></h3>"
},
{
PROFILE_BUG_ID
+
FS
+
"compact2-summary.html"
,
"<ul class=\"blockList\">"
+
NL
+
"<li class=\"blockList\">"
+
NL
+
"<h3><a href=\"pkg2/compact2-package-summary.html\" target=\"classFrame\">"
+
"pkg2</a></h3>"
+
NL
+
"<table class=\"typeSummary\" border=\"0\" "
+
"cellpadding=\"3\" cellspacing=\"0\" summary=\"Class Summary table, "
+
"listing classes, and an explanation\">"
},
{
PROFILE_BUG_ID
+
FS
+
"compact2-summary.html"
,
"<ul class=\"blockList\">"
+
NL
+
"<li class=\"blockList\">"
+
NL
+
"<h3><a href=\"pkg4/compact2-package-summary.html\" target=\"classFrame\">"
+
"pkg4</a></h3>"
+
NL
+
"<table class=\"typeSummary\" border=\"0\" "
+
"cellpadding=\"3\" cellspacing=\"0\" summary=\"Class Summary table, "
+
"listing classes, and an explanation\">"
},
// Tests for profileName-package-summary.html listing the summary for a
// package in a profile.
{
PROFILE_BUG_ID
+
FS
+
"pkg5"
+
FS
+
"compact3-package-summary.html"
,
...
...
@@ -94,6 +108,12 @@ public class TestProfiles extends JavadocTester {
{
PROFILE_BUG_ID
+
FS
+
"pkg5"
+
FS
+
"compact3-package-summary.html"
,
"<div class=\"subTitle\">compact3</div>"
},
{
PROFILE_BUG_ID
+
FS
+
"pkg5"
+
FS
+
"compact3-package-summary.html"
,
"<ul class=\"blockList\">"
+
NL
+
"<li class=\"blockList\">"
+
NL
+
"<table class=\"typeSummary\" border=\"0\" cellpadding=\"3\" "
+
"cellspacing=\"0\" summary=\"Interface Summary table, listing "
+
"interfaces, and an explanation\">"
},
//Test for "overview-frame.html" showing the "All Profiles" link.
{
PROFILE_BUG_ID
+
FS
+
"overview-frame.html"
,
"<span><a href=\"profile-overview-frame.html\" "
...
...
@@ -171,6 +191,21 @@ public class TestProfiles extends JavadocTester {
+
"target=\"classFrame\">Anno1Pkg4</a></li>"
},
{
PROFILE_BUG_ID
+
FS
+
"compact1-summary.html"
,
"<li>Use</li>"
},
{
PROFILE_BUG_ID
+
FS
+
"compact2-summary.html"
,
"<ul class=\"blockList\">"
+
NL
+
"<li class=\"blockList\">"
+
NL
+
"<h3><a href=\"pkg2/compact2-package-summary.html\" target=\"classFrame\">"
+
"pkg2</a></h3>"
+
NL
+
"<li class=\"blockList\">"
+
NL
+
"<table class=\"typeSummary\" border=\"0\" "
+
"cellpadding=\"3\" cellspacing=\"0\" summary=\"Class Summary table, "
+
"listing classes, and an explanation\">"
},
{
PROFILE_BUG_ID
+
FS
+
"pkg5"
+
FS
+
"compact3-package-summary.html"
,
"<ul class=\"blockList\">"
+
NL
+
"<li class=\"blockList\">"
+
NL
+
"<li class=\"blockList\">"
+
NL
+
"<table class=\"typeSummary\" border=\"0\" cellpadding=\"3\" "
+
"cellspacing=\"0\" summary=\"Interface Summary table, listing "
+
"interfaces, and an explanation\">"
}
};
private
static
final
String
[][]
PACKAGES_TEST
=
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录