Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_langtools
提交
f6e5f3dd
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看板
提交
f6e5f3dd
编写于
3月 23, 2011
作者:
B
bpatel
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
7010342: End tag for element P is not open for few html files generated using new javadoc
Reviewed-by: jjg
上级
e1ce4f9a
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
143 addition
and
24 deletion
+143
-24
src/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeWriterImpl.java
.../tools/doclets/formats/html/AnnotationTypeWriterImpl.java
+3
-3
src/share/classes/com/sun/tools/doclets/formats/html/ClassWriterImpl.java
...s/com/sun/tools/doclets/formats/html/ClassWriterImpl.java
+3
-3
src/share/classes/com/sun/tools/doclets/formats/html/HelpWriter.java
...lasses/com/sun/tools/doclets/formats/html/HelpWriter.java
+2
-2
src/share/classes/com/sun/tools/doclets/formats/html/PackageIndexWriter.java
...om/sun/tools/doclets/formats/html/PackageIndexWriter.java
+9
-9
src/share/classes/com/sun/tools/doclets/formats/html/PackageWriterImpl.java
...com/sun/tools/doclets/formats/html/PackageWriterImpl.java
+5
-5
src/share/classes/com/sun/tools/doclets/internal/toolkit/resources/stylesheet.css
...n/tools/doclets/internal/toolkit/resources/stylesheet.css
+0
-2
test/com/sun/javadoc/testSubTitle/TestSubTitle.java
test/com/sun/javadoc/testSubTitle/TestSubTitle.java
+83
-0
test/com/sun/javadoc/testSubTitle/pkg/C.java
test/com/sun/javadoc/testSubTitle/pkg/C.java
+30
-0
test/com/sun/javadoc/testSubTitle/pkg/package.html
test/com/sun/javadoc/testSubTitle/pkg/package.html
+8
-0
未找到文件。
src/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeWriterImpl.java
浏览文件 @
f6e5f3dd
/*
* Copyright (c) 2003, 201
0
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 201
1
, 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
...
...
@@ -154,8 +154,8 @@ public class AnnotationTypeWriterImpl extends SubWriterHolderWriter
div
.
addStyle
(
HtmlStyle
.
header
);
if
(
pkgname
.
length
()
>
0
)
{
Content
pkgNameContent
=
new
StringContent
(
pkgname
);
Content
pkgName
Para
=
HtmlTree
.
P
(
HtmlStyle
.
subTitle
,
pkgNameContent
);
div
.
addContent
(
pkgName
Para
);
Content
pkgName
Div
=
HtmlTree
.
DIV
(
HtmlStyle
.
subTitle
,
pkgNameContent
);
div
.
addContent
(
pkgName
Div
);
}
LinkInfoImpl
linkInfo
=
new
LinkInfoImpl
(
LinkInfoImpl
.
CONTEXT_CLASS_HEADER
,
annotationType
,
false
);
...
...
src/share/classes/com/sun/tools/doclets/formats/html/ClassWriterImpl.java
浏览文件 @
f6e5f3dd
/*
* Copyright (c) 1997, 201
0
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 201
1
, 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
...
...
@@ -161,8 +161,8 @@ public class ClassWriterImpl extends SubWriterHolderWriter
div
.
addStyle
(
HtmlStyle
.
header
);
if
(
pkgname
.
length
()
>
0
)
{
Content
pkgNameContent
=
new
StringContent
(
pkgname
);
Content
pkgName
Para
=
HtmlTree
.
P
(
HtmlStyle
.
subTitle
,
pkgNameContent
);
div
.
addContent
(
pkgName
Para
);
Content
pkgName
Div
=
HtmlTree
.
DIV
(
HtmlStyle
.
subTitle
,
pkgNameContent
);
div
.
addContent
(
pkgName
Div
);
}
LinkInfoImpl
linkInfo
=
new
LinkInfoImpl
(
LinkInfoImpl
.
CONTEXT_CLASS_HEADER
,
classDoc
,
false
);
...
...
src/share/classes/com/sun/tools/doclets/formats/html/HelpWriter.java
浏览文件 @
f6e5f3dd
/*
* Copyright (c) 1998, 201
0
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 201
1
, 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
...
...
@@ -96,7 +96,7 @@ public class HelpWriter extends HtmlDocletWriter {
Content
heading
=
HtmlTree
.
HEADING
(
HtmlConstants
.
TITLE_HEADING
,
false
,
HtmlStyle
.
title
,
getResource
(
"doclet.Help_line_1"
));
Content
div
=
HtmlTree
.
DIV
(
HtmlStyle
.
header
,
heading
);
Content
line2
=
HtmlTree
.
P
(
HtmlStyle
.
subTitle
,
Content
line2
=
HtmlTree
.
DIV
(
HtmlStyle
.
subTitle
,
getResource
(
"doclet.Help_line_2"
));
div
.
addContent
(
line2
);
contentTree
.
addContent
(
div
);
...
...
src/share/classes/com/sun/tools/doclets/formats/html/PackageIndexWriter.java
浏览文件 @
f6e5f3dd
/*
* Copyright (c) 1997, 201
0
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 201
1
, 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
...
...
@@ -163,10 +163,10 @@ public class PackageIndexWriter extends AbstractPackageIndexWriter {
*/
protected
void
addOverviewHeader
(
Content
body
)
{
if
(
root
.
inlineTags
().
length
>
0
)
{
HtmlTree
p
=
new
HtmlTree
(
HtmlTag
.
P
);
p
.
addStyle
(
HtmlStyle
.
subTitle
);
addSummaryComment
(
root
,
p
);
Content
div
=
HtmlTree
.
DIV
(
HtmlStyle
.
header
,
p
);
HtmlTree
subTitleDiv
=
new
HtmlTree
(
HtmlTag
.
DIV
);
subTitleDiv
.
addStyle
(
HtmlStyle
.
subTitle
);
addSummaryComment
(
root
,
subTitleDiv
);
Content
div
=
HtmlTree
.
DIV
(
HtmlStyle
.
header
,
subTitleDiv
);
Content
see
=
seeLabel
;
see
.
addContent
(
" "
);
Content
descPara
=
HtmlTree
.
P
(
see
);
...
...
@@ -188,10 +188,10 @@ public class PackageIndexWriter extends AbstractPackageIndexWriter {
protected
void
addOverviewComment
(
Content
htmltree
)
{
if
(
root
.
inlineTags
().
length
>
0
)
{
htmltree
.
addContent
(
getMarkerAnchor
(
"overview_description"
));
HtmlTree
p
=
new
HtmlTree
(
HtmlTag
.
P
);
p
.
addStyle
(
HtmlStyle
.
subTitle
);
addInlineComment
(
root
,
p
);
htmltree
.
addContent
(
p
);
HtmlTree
div
=
new
HtmlTree
(
HtmlTag
.
DIV
);
div
.
addStyle
(
HtmlStyle
.
subTitle
);
addInlineComment
(
root
,
div
);
htmltree
.
addContent
(
div
);
}
}
...
...
src/share/classes/com/sun/tools/doclets/formats/html/PackageWriterImpl.java
浏览文件 @
f6e5f3dd
/*
* Copyright (c) 1997, 201
0
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 201
1
, 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
...
...
@@ -115,10 +115,10 @@ public class PackageWriterImpl extends HtmlDocletWriter
tHeading
.
addContent
(
packageHead
);
div
.
addContent
(
tHeading
);
if
(
packageDoc
.
inlineTags
().
length
>
0
&&
!
configuration
.
nocomment
)
{
HtmlTree
p
=
new
HtmlTree
(
HtmlTag
.
P
);
p
.
addStyle
(
HtmlStyle
.
subTitle
);
addSummaryComment
(
packageDoc
,
p
);
div
.
addContent
(
p
);
HtmlTree
subTitleDiv
=
new
HtmlTree
(
HtmlTag
.
DIV
);
subTitleDiv
.
addStyle
(
HtmlStyle
.
subTitle
);
addSummaryComment
(
packageDoc
,
subTitleDiv
);
div
.
addContent
(
subTitleDiv
);
Content
space
=
getSpace
();
Content
descLink
=
getHyperLink
(
""
,
"package_description"
,
descriptionLabel
,
""
,
""
);
...
...
src/share/classes/com/sun/tools/doclets/internal/toolkit/resources/stylesheet.css
浏览文件 @
f6e5f3dd
...
...
@@ -183,8 +183,6 @@ Page header and footer styles
.subTitle
{
margin
:
0
;
padding-top
:
10px
;
font-size
:
0.75em
;
font-weight
:
bold
;
}
/*
Page layout container styles
...
...
test/com/sun/javadoc/testSubTitle/TestSubTitle.java
0 → 100644
浏览文件 @
f6e5f3dd
/*
* Copyright (c) 2011, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 7010342
* @summary Test for correct sub title generation.
* @author Bhavesh Patel
* @library ../lib/
* @build JavadocTester
* @build TestSubTitle
* @run main TestSubTitle
*/
public
class
TestSubTitle
extends
JavadocTester
{
private
static
final
String
BUG_ID
=
"7010342"
;
private
static
final
String
[][]
TEST
=
{
{
BUG_ID
+
FS
+
"pkg"
+
FS
+
"package-summary.html"
,
"<div class=\"subTitle\">"
+
NL
+
"<div class=\"block\">This is the "
+
"description of package pkg.</div>"
+
NL
+
"</div>"
},
{
BUG_ID
+
FS
+
"pkg"
+
FS
+
"C.html"
,
"<div class=\"subTitle\">pkg</div>"
}
};
private
static
final
String
[][]
NEG_TEST
=
{
{
BUG_ID
+
FS
+
"pkg"
+
FS
+
"package-summary.html"
,
"<p class=\"subTitle\">"
+
NL
+
"<div class=\"block\">This is the "
+
"description of package pkg.</div>"
+
NL
+
"</p>"
},
{
BUG_ID
+
FS
+
"pkg"
+
FS
+
"C.html"
,
"<p class=\"subTitle\">pkg</p>"
}
};
private
static
final
String
[]
ARGS
=
new
String
[]{
"-d"
,
BUG_ID
,
"-sourcepath"
,
SRC_DIR
,
"pkg"
};
/**
* The entry point of the test.
* @param args the array of command line arguments.
*/
public
static
void
main
(
String
[]
args
)
{
TestSubTitle
tester
=
new
TestSubTitle
();
run
(
tester
,
ARGS
,
TEST
,
NEG_TEST
);
tester
.
printSummary
();
}
/**
* {@inheritDoc}
*/
public
String
getBugId
()
{
return
BUG_ID
;
}
/**
* {@inheritDoc}
*/
public
String
getBugName
()
{
return
getClass
().
getName
();
}
}
test/com/sun/javadoc/testSubTitle/pkg/C.java
0 → 100644
浏览文件 @
f6e5f3dd
/*
* Copyright (c) 2011, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package
pkg
;
/**
* Source file for C
*/
public
class
C
{
}
test/com/sun/javadoc/testSubTitle/pkg/package.html
0 → 100644
浏览文件 @
f6e5f3dd
<html
lang=
"en"
>
<head>
<title>
Package Summary
</title>
</head>
<body>
This is the description of package pkg.
</body>
</html>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录