Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_langtools
提交
af9982f0
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看板
提交
af9982f0
编写于
9月 18, 2009
作者:
T
tbell
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
53b38daa
c63d0483
变更
24
隐藏空白更改
内联
并排
Showing
24 changed file
with
796 addition
and
33 deletion
+796
-33
src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java
.../com/sun/tools/doclets/formats/html/HtmlDocletWriter.java
+11
-1
src/share/classes/com/sun/tools/doclets/formats/html/resources/standard.properties
.../tools/doclets/formats/html/resources/standard.properties
+1
-0
src/share/classes/com/sun/tools/javac/code/Source.java
src/share/classes/com/sun/tools/javac/code/Source.java
+6
-0
src/share/classes/com/sun/tools/javac/file/CloseableURLClassLoader.java
...ses/com/sun/tools/javac/file/CloseableURLClassLoader.java
+4
-2
src/share/classes/com/sun/tools/javac/parser/JavacParser.java
...share/classes/com/sun/tools/javac/parser/JavacParser.java
+1
-1
src/share/classes/com/sun/tools/javac/parser/Scanner.java
src/share/classes/com/sun/tools/javac/parser/Scanner.java
+84
-26
src/share/classes/com/sun/tools/javac/resources/compiler.properties
...classes/com/sun/tools/javac/resources/compiler.properties
+12
-1
src/share/classes/com/sun/tools/javadoc/AnnotationDescImpl.java
...are/classes/com/sun/tools/javadoc/AnnotationDescImpl.java
+6
-1
test/com/sun/javadoc/5093723/DocumentedClass.java
test/com/sun/javadoc/5093723/DocumentedClass.java
+34
-0
test/com/sun/javadoc/5093723/T5093723.java
test/com/sun/javadoc/5093723/T5093723.java
+57
-0
test/com/sun/javadoc/5093723/UndocumentedClass.java
test/com/sun/javadoc/5093723/UndocumentedClass.java
+29
-0
test/tools/javac/T6882235.java
test/tools/javac/T6882235.java
+14
-0
test/tools/javac/T6882235.out
test/tools/javac/T6882235.out
+5
-0
test/tools/javac/enum/6384542/T6384542.out
test/tools/javac/enum/6384542/T6384542.out
+1
-1
test/tools/javac/literals/BadBinaryLiterals.6.out
test/tools/javac/literals/BadBinaryLiterals.6.out
+8
-0
test/tools/javac/literals/BadBinaryLiterals.7.out
test/tools/javac/literals/BadBinaryLiterals.7.out
+7
-0
test/tools/javac/literals/BadBinaryLiterals.java
test/tools/javac/literals/BadBinaryLiterals.java
+18
-0
test/tools/javac/literals/BadUnderscoreLiterals.6.out
test/tools/javac/literals/BadUnderscoreLiterals.6.out
+21
-0
test/tools/javac/literals/BadUnderscoreLiterals.7.out
test/tools/javac/literals/BadUnderscoreLiterals.7.out
+19
-0
test/tools/javac/literals/BadUnderscoreLiterals.java
test/tools/javac/literals/BadUnderscoreLiterals.java
+48
-0
test/tools/javac/literals/BinaryLiterals.java
test/tools/javac/literals/BinaryLiterals.java
+132
-0
test/tools/javac/literals/UnderscoreLiterals.java
test/tools/javac/literals/UnderscoreLiterals.java
+195
-0
test/tools/javadoc/annotations/missing/Main.java
test/tools/javadoc/annotations/missing/Main.java
+52
-0
test/tools/javadoc/annotations/missing/somepackage/MissingAnnotationClass.java
...notations/missing/somepackage/MissingAnnotationClass.java
+31
-0
未找到文件。
src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java
浏览文件 @
af9982f0
...
...
@@ -1435,7 +1435,17 @@ public class HtmlDocletWriter extends HtmlDocWriter {
// documented, this must be an inherited link. Redirect it.
// The current class either overrides the referenced member or
// inherits it automatically.
containing
=
((
ClassWriterImpl
)
this
).
getClassDoc
();
if
(
this
instanceof
ClassWriterImpl
)
{
containing
=
((
ClassWriterImpl
)
this
).
getClassDoc
();
}
else
if
(!
containing
.
isPublic
()){
configuration
.
getDocletSpecificMsg
().
warning
(
see
.
position
(),
"doclet.see.class_or_package_not_accessible"
,
tagName
,
containing
.
qualifiedName
());
}
else
{
configuration
.
getDocletSpecificMsg
().
warning
(
see
.
position
(),
"doclet.see.class_or_package_not_found"
,
tagName
,
seetext
);
}
}
if
(
configuration
.
currentcd
!=
containing
)
{
refMemName
=
containing
.
name
()
+
"."
+
refMemName
;
...
...
src/share/classes/com/sun/tools/doclets/formats/html/resources/standard.properties
浏览文件 @
af9982f0
...
...
@@ -69,6 +69,7 @@ doclet.URL_error=Error fetching URL: {0}
doclet.No_Package_Comment_File
=
For Package {0} Package.Comment file not found
doclet.No_Source_For_Class
=
Source information for class {0} not available.
doclet.see.class_or_package_not_found
=
Tag {0}: reference not found: {1}
doclet.see.class_or_package_not_accessible
=
Tag {0}: reference not accessible: {1}
doclet.see.malformed_tag
=
Tag {0}: Malformed: {1}
doclet.Inherited_API_Summary
=
Inherited API Summary
doclet.Deprecated_API
=
Deprecated API
...
...
src/share/classes/com/sun/tools/javac/code/Source.java
浏览文件 @
af9982f0
...
...
@@ -159,6 +159,12 @@ public enum Source {
public
boolean
allowTypeAnnotations
()
{
return
compareTo
(
JDK1_7
)
>=
0
;
}
public
boolean
allowBinaryLiterals
()
{
return
compareTo
(
JDK1_7
)
>=
0
;
}
public
boolean
allowUnderscoresInLiterals
()
{
return
compareTo
(
JDK1_7
)
>=
0
;
}
public
static
SourceVersion
toSourceVersion
(
Source
source
)
{
switch
(
source
)
{
case
JDK1_2:
...
...
src/share/classes/com/sun/tools/javac/file/CloseableURLClassLoader.java
浏览文件 @
af9982f0
...
...
@@ -69,8 +69,10 @@ class CloseableURLClassLoader
if
(
l
.
getClass
().
getName
().
equals
(
"sun.misc.URLClassPath$JarLoader"
))
{
Field
jarField
=
l
.
getClass
().
getDeclaredField
(
"jar"
);
JarFile
jar
=
(
JarFile
)
getField
(
l
,
jarField
);
//System.err.println("CloseableURLClassLoader: closing " + jar);
jar
.
close
();
if
(
jar
!=
null
)
{
//System.err.println("CloseableURLClassLoader: closing " + jar);
jar
.
close
();
}
}
}
}
catch
(
Throwable
t
)
{
...
...
src/share/classes/com/sun/tools/javac/parser/JavacParser.java
浏览文件 @
af9982f0
...
...
@@ -593,7 +593,7 @@ public class JavacParser implements Parser {
//where
boolean
isZero
(
String
s
)
{
char
[]
cs
=
s
.
toCharArray
();
int
base
=
((
Character
.
toLowerCase
(
s
.
charAt
(
1
)
)
==
'x'
)
?
16
:
10
);
int
base
=
((
cs
.
length
>
1
&&
Character
.
toLowerCase
(
cs
[
1
]
)
==
'x'
)
?
16
:
10
);
int
i
=
((
base
==
16
)
?
2
:
0
);
while
(
i
<
cs
.
length
&&
(
cs
[
i
]
==
'0'
||
cs
[
i
]
==
'.'
))
i
++;
return
!(
i
<
cs
.
length
&&
(
Character
.
digit
(
cs
[
i
],
base
)
>
0
));
...
...
src/share/classes/com/sun/tools/javac/parser/Scanner.java
浏览文件 @
af9982f0
...
...
@@ -100,6 +100,18 @@ public class Scanner implements Lexer {
*/
private
boolean
allowHexFloats
;
/** Allow binary literals.
*/
private
boolean
allowBinaryLiterals
;
/** Allow underscores in literals.
*/
private
boolean
allowUnderscoresInLiterals
;
/** The source language setting.
*/
private
Source
source
;
/** The token's position, 0-based offset from beginning of text.
*/
private
int
pos
;
...
...
@@ -162,10 +174,13 @@ public class Scanner implements Lexer {
/** Common code for constructors. */
private
Scanner
(
Factory
fac
)
{
this
.
log
=
fac
.
log
;
this
.
names
=
fac
.
names
;
this
.
keywords
=
fac
.
keywords
;
this
.
allowHexFloats
=
fac
.
source
.
allowHexFloats
();
log
=
fac
.
log
;
names
=
fac
.
names
;
keywords
=
fac
.
keywords
;
source
=
fac
.
source
;
allowBinaryLiterals
=
source
.
allowBinaryLiterals
();
allowHexFloats
=
source
.
allowHexFloats
();
allowUnderscoresInLiterals
=
source
.
allowBinaryLiterals
();
}
private
static
final
boolean
hexFloatsWork
=
hexFloatsWork
();
...
...
@@ -396,23 +411,42 @@ public class Scanner implements Lexer {
scanLitChar
(
true
);
}
private
void
scanDigits
(
int
digitRadix
)
{
char
saveCh
;
int
savePos
;
do
{
if
(
ch
!=
'_'
)
{
putChar
(
ch
);
}
else
{
if
(!
allowUnderscoresInLiterals
)
{
lexError
(
"unsupported.underscore"
,
source
.
name
);
allowUnderscoresInLiterals
=
true
;
}
}
saveCh
=
ch
;
savePos
=
bp
;
scanChar
();
}
while
(
digit
(
digitRadix
)
>=
0
||
ch
==
'_'
);
if
(
saveCh
==
'_'
)
lexError
(
savePos
,
"illegal.underscore"
);
}
/** Read fractional part of hexadecimal floating point number.
*/
private
void
scanHexExponentAndSuffix
()
{
if
(
ch
==
'p'
||
ch
==
'P'
)
{
putChar
(
ch
);
scanChar
();
skipIllegalUnderscores
();
if
(
ch
==
'+'
||
ch
==
'-'
)
{
putChar
(
ch
);
scanChar
();
}
skipIllegalUnderscores
();
if
(
'0'
<=
ch
&&
ch
<=
'9'
)
{
do
{
putChar
(
ch
);
scanChar
();
}
while
(
'0'
<=
ch
&&
ch
<=
'9'
);
scanDigits
(
10
);
if
(!
allowHexFloats
)
{
lexError
(
"unsupported.fp.lit"
);
lexError
(
"unsupported.fp.lit"
,
source
.
name
);
allowHexFloats
=
true
;
}
else
if
(!
hexFloatsWork
)
...
...
@@ -438,23 +472,22 @@ public class Scanner implements Lexer {
/** Read fractional part of floating point number.
*/
private
void
scanFraction
()
{
while
(
digit
(
10
)
>=
0
)
{
putChar
(
ch
);
scan
Char
(
);
skipIllegalUnderscores
();
if
(
'0'
<=
ch
&&
ch
<=
'9'
)
{
scan
Digits
(
10
);
}
int
sp1
=
sp
;
if
(
ch
==
'e'
||
ch
==
'E'
)
{
putChar
(
ch
);
scanChar
();
skipIllegalUnderscores
();
if
(
ch
==
'+'
||
ch
==
'-'
)
{
putChar
(
ch
);
scanChar
();
}
skipIllegalUnderscores
();
if
(
'0'
<=
ch
&&
ch
<=
'9'
)
{
do
{
putChar
(
ch
);
scanChar
();
}
while
(
'0'
<=
ch
&&
ch
<=
'9'
);
scanDigits
(
10
);
return
;
}
lexError
(
"malformed.fp.lit"
);
...
...
@@ -487,10 +520,10 @@ public class Scanner implements Lexer {
assert
ch
==
'.'
;
putChar
(
ch
);
scanChar
();
while
(
digit
(
16
)
>=
0
)
{
skipIllegalUnderscores
();
if
(
digit
(
16
)
>=
0
)
{
seendigit
=
true
;
putChar
(
ch
);
scanChar
();
scanDigits
(
16
);
}
if
(!
seendigit
)
lexError
(
"invalid.hex.number"
);
...
...
@@ -498,28 +531,35 @@ public class Scanner implements Lexer {
scanHexExponentAndSuffix
();
}
private
void
skipIllegalUnderscores
()
{
if
(
ch
==
'_'
)
{
lexError
(
bp
,
"illegal.underscore"
);
while
(
ch
==
'_'
)
scanChar
();
}
}
/** Read a number.
* @param radix The radix of the number; one of 8, 10, 16.
* @param radix The radix of the number; one of
2, j
8, 10, 16.
*/
private
void
scanNumber
(
int
radix
)
{
this
.
radix
=
radix
;
// for octal, allow base-10 digit in case it's a float literal
int
digitRadix
=
(
radix
<=
10
)
?
10
:
16
;
int
digitRadix
=
(
radix
==
8
?
10
:
radix
)
;
boolean
seendigit
=
false
;
while
(
digit
(
digitRadix
)
>=
0
)
{
if
(
digit
(
digitRadix
)
>=
0
)
{
seendigit
=
true
;
putChar
(
ch
);
scanChar
();
scanDigits
(
digitRadix
);
}
if
(
radix
==
16
&&
ch
==
'.'
)
{
scanHexFractionAndSuffix
(
seendigit
);
}
else
if
(
seendigit
&&
radix
==
16
&&
(
ch
==
'p'
||
ch
==
'P'
))
{
scanHexExponentAndSuffix
();
}
else
if
(
radix
<
=
10
&&
ch
==
'.'
)
{
}
else
if
(
digitRadix
=
=
10
&&
ch
==
'.'
)
{
putChar
(
ch
);
scanChar
();
scanFractionAndSuffix
();
}
else
if
(
radix
<
=
10
&&
}
else
if
(
digitRadix
=
=
10
&&
(
ch
==
'e'
||
ch
==
'E'
||
ch
==
'f'
||
ch
==
'F'
||
ch
==
'd'
||
ch
==
'D'
))
{
...
...
@@ -821,6 +861,7 @@ public class Scanner implements Lexer {
scanChar
();
if
(
ch
==
'x'
||
ch
==
'X'
)
{
scanChar
();
skipIllegalUnderscores
();
if
(
ch
==
'.'
)
{
scanHexFractionAndSuffix
(
false
);
}
else
if
(
digit
(
16
)
<
0
)
{
...
...
@@ -828,8 +869,25 @@ public class Scanner implements Lexer {
}
else
{
scanNumber
(
16
);
}
}
else
if
(
ch
==
'b'
||
ch
==
'B'
)
{
if
(!
allowBinaryLiterals
)
{
lexError
(
"unsupported.binary.lit"
,
source
.
name
);
allowBinaryLiterals
=
true
;
}
scanChar
();
skipIllegalUnderscores
();
scanNumber
(
2
);
}
else
{
putChar
(
'0'
);
if
(
ch
==
'_'
)
{
int
savePos
=
bp
;
do
{
scanChar
();
}
while
(
ch
==
'_'
);
if
(
digit
(
10
)
<
0
)
{
lexError
(
savePos
,
"illegal.underscore"
);
}
}
scanNumber
(
8
);
}
return
;
...
...
src/share/classes/com/sun/tools/javac/resources/compiler.properties
浏览文件 @
af9982f0
...
...
@@ -216,6 +216,8 @@ compiler.err.illegal.line.end.in.char.lit=\
illegal line end in character literal
compiler.err.illegal.nonascii.digit
=
\
illegal non-ASCII digit
compiler.err.illegal.underscore
=
\
illegal underscore
compiler.err.illegal.qual.not.icls
=
\
illegal qualifier; {0} is not an inner class
compiler.err.illegal.start.of.expr
=
\
...
...
@@ -1163,7 +1165,16 @@ compiler.misc.varargs.clash.with=\
# Diagnostics for language feature changes
########################################
compiler.err.unsupported.fp.lit
=
\
hexadecimal floating-point literals are not supported before -source 5
hexadecimal floating point literals are not supported in -source {0}
\n\
(use -source 5 or higher to enable hexadecimal floating point literals)
compiler.err.unsupported.binary.lit
=
\
binary literals are not supported in -source {0}
\n\
(use -source 7 or higher to enable binary literals)
compiler.err.unsupported.underscore.lit
=
\
underscores in literals are not supported in -source {0}
\n\
(use -source 7 or higher to enable underscores in literals)
compiler.warn.enum.as.identifier
=
\
as of release 5, ''enum'' is a keyword, and may not be used as an identifier
\n\
...
...
src/share/classes/com/sun/tools/javadoc/AnnotationDescImpl.java
浏览文件 @
af9982f0
...
...
@@ -60,7 +60,12 @@ public class AnnotationDescImpl implements AnnotationDesc {
*/
public
AnnotationTypeDoc
annotationType
()
{
ClassSymbol
atsym
=
(
ClassSymbol
)
annotation
.
type
.
tsym
;
return
(
AnnotationTypeDoc
)
env
.
getClassDoc
(
atsym
);
if
(
annotation
.
type
.
isErroneous
())
{
env
.
warning
(
null
,
"javadoc.class_not_found"
,
annotation
.
type
.
toString
());
return
new
AnnotationTypeDocImpl
(
env
,
atsym
);
}
else
{
return
(
AnnotationTypeDoc
)
env
.
getClassDoc
(
atsym
);
}
}
/**
...
...
test/com/sun/javadoc/5093723/DocumentedClass.java
0 → 100644
浏览文件 @
af9982f0
/*
* Copyright 2009 Google, Inc. 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
/** A documented class. */
public
class
DocumentedClass
extends
UndocumentedClass
{
/** {@link #method} */
public
void
m1
()
{}
/** {@link #publicMethod} */
public
void
m2
()
{}
/** {@link #protectedMethod} */
public
void
m3
()
{}
/** {@link #privateMethod} */
public
void
m4
()
{}
}
test/com/sun/javadoc/5093723/T5093723.java
0 → 100644
浏览文件 @
af9982f0
/*
* Copyright 2009 Google, Inc. 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
/*
* @test
* @bug 5093723
* @summary REGRESSION: ClassCastException in SingleIndexWriter
* @library ../lib/
* @build JavadocTester
* @build T5093723
* @run main T5093723
*/
public
class
T5093723
extends
JavadocTester
{
private
static
final
String
BUG_ID
=
"5093723"
;
private
static
final
String
[]
ARGS
=
new
String
[]
{
"-d"
,
BUG_ID
+
".out"
,
"-source"
,
"5"
,
SRC_DIR
+
"/DocumentedClass.java"
,
SRC_DIR
+
"/UndocumentedClass.java"
};
public
static
void
main
(
String
...
args
)
{
T5093723
tester
=
new
T5093723
();
if
(
tester
.
runJavadoc
(
ARGS
)
!=
0
)
throw
new
AssertionError
(
"non-zero return code from javadoc"
);
}
public
String
getBugId
()
{
return
BUG_ID
;
}
public
String
getBugName
()
{
return
getClass
().
getName
();
}
}
test/com/sun/javadoc/5093723/UndocumentedClass.java
0 → 100644
浏览文件 @
af9982f0
/*
* Copyright 2009 Google, Inc. 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
class
UndocumentedClass
{
void
method
()
{}
public
void
publicMethod
()
{}
protected
void
protectedMethod
()
{}
private
void
privateMethod
()
{}
}
test/tools/javac/T6882235.java
0 → 100644
浏览文件 @
af9982f0
/*
* @test /nodynamiccopyright/
* @bug 6882235
* @summary invalid exponent causes silent javac crash
*
* @compile/fail T6882235.java
* @compile/fail/ref=T6882235.out -XDrawDiagnostics T6882235.java
*/
class
T6882235
{
int
i
=
;
// invalid expression
float
f
=
0
e
*;
// invalid exponent, should not crash compiler
int
j
=
;
// invalid expression
}
test/tools/javac/T6882235.out
0 → 100644
浏览文件 @
af9982f0
T6882235.java:11:13: compiler.err.illegal.start.of.expr
T6882235.java:12:15: compiler.err.malformed.fp.lit
T6882235.java:12:18: compiler.err.illegal.start.of.expr
T6882235.java:13:13: compiler.err.illegal.start.of.expr
4 errors
test/tools/javac/enum/6384542/T6384542.out
浏览文件 @
af9982f0
T6384542.java:10:8: compiler.err.static.import.not.supported.in.source: 1.4
T6384542.java:12:8: compiler.err.enums.not.supported.in.source: 1.4
T6384542.java:14:13: compiler.err.unsupported.fp.lit
T6384542.java:14:13: compiler.err.unsupported.fp.lit
: 1.4
T6384542.java:15:9: compiler.err.generics.not.supported.in.source: 1.4
T6384542.java:16:35: compiler.err.varargs.not.supported.in.source: 1.4
T6384542.java:17:25: compiler.err.foreach.not.supported.in.source: 1.4
...
...
test/tools/javac/literals/BadBinaryLiterals.6.out
0 → 100644
浏览文件 @
af9982f0
BadBinaryLiterals.java:10:17: compiler.err.unsupported.binary.lit: 1.6
BadBinaryLiterals.java:11:24: compiler.err.expected: ';'
BadBinaryLiterals.java:13:21: compiler.err.int.number.too.large: 111111111111111111111111111111111
BadBinaryLiterals.java:15:21: compiler.err.int.number.too.large: 11111111111111111111111111111111111111111111111111111111111111111
BadBinaryLiterals.java:16:27: compiler.err.expected: ';'
BadBinaryLiterals.java:17:27: compiler.err.expected: ';'
BadBinaryLiterals.java:17:30: compiler.err.expected: token.identifier
7 errors
test/tools/javac/literals/BadBinaryLiterals.7.out
0 → 100644
浏览文件 @
af9982f0
BadBinaryLiterals.java:11:24: compiler.err.expected: ';'
BadBinaryLiterals.java:13:21: compiler.err.int.number.too.large: 111111111111111111111111111111111
BadBinaryLiterals.java:15:21: compiler.err.int.number.too.large: 11111111111111111111111111111111111111111111111111111111111111111
BadBinaryLiterals.java:16:27: compiler.err.expected: ';'
BadBinaryLiterals.java:17:27: compiler.err.expected: ';'
BadBinaryLiterals.java:17:30: compiler.err.expected: token.identifier
6 errors
test/tools/javac/literals/BadBinaryLiterals.java
0 → 100644
浏览文件 @
af9982f0
/*
* @test /nodynamiccopyright/
* @bug 6860965
* @summary Project Coin: binary literals
* @compile/fail/ref=BadBinaryLiterals.6.out -XDrawDiagnostics -source 6 BadBinaryLiterals.java
* @compile/fail/ref=BadBinaryLiterals.7.out -XDrawDiagnostics BadBinaryLiterals.java
*/
public
class
BadBinaryLiterals
{
int
valid
=
0b0
;
// valid literal, illegal in source 6
int
baddigit
=
0b01
2
;
// bad digit
//aaaabbbbccccddddeeeeffffgggghhhh
int
overflow1
=
0b111111111111111111111111111111111
;
// too long for int
//aaaabbbbccccddddeeeeffffgggghhhhiiiijjjjkkkkllllmmmmnnnnoooopppp
int
overflow2
=
0b11111111111111111111111111111111111111111111111111111111111111111
L
;
// too long for long
float
badfloat1
=
0b01
.
01
;
// no binary floats
float
badfloat2
=
0b01
e01
;
// no binary floats
}
test/tools/javac/literals/BadUnderscoreLiterals.6.out
0 → 100644
浏览文件 @
af9982f0
BadUnderscoreLiterals.java:14:17: compiler.err.unsupported.underscore: 1.6
BadUnderscoreLiterals.java:18:15: compiler.err.illegal.underscore
BadUnderscoreLiterals.java:22:19: compiler.err.illegal.underscore
BadUnderscoreLiterals.java:25:14: compiler.err.unsupported.binary.lit: 1.6
BadUnderscoreLiterals.java:25:16: compiler.err.illegal.underscore
BadUnderscoreLiterals.java:26:17: compiler.err.illegal.underscore
BadUnderscoreLiterals.java:29:16: compiler.err.illegal.underscore
BadUnderscoreLiterals.java:30:17: compiler.err.illegal.underscore
BadUnderscoreLiterals.java:33:17: compiler.err.illegal.underscore
BadUnderscoreLiterals.java:34:18: compiler.err.illegal.underscore
BadUnderscoreLiterals.java:35:19: compiler.err.illegal.underscore
BadUnderscoreLiterals.java:36:19: compiler.err.illegal.underscore
BadUnderscoreLiterals.java:37:18: compiler.err.illegal.underscore
BadUnderscoreLiterals.java:38:19: compiler.err.illegal.underscore
BadUnderscoreLiterals.java:41:19: compiler.err.illegal.underscore
BadUnderscoreLiterals.java:42:20: compiler.err.illegal.underscore
BadUnderscoreLiterals.java:43:21: compiler.err.illegal.underscore
BadUnderscoreLiterals.java:44:22: compiler.err.illegal.underscore
BadUnderscoreLiterals.java:45:21: compiler.err.illegal.underscore
BadUnderscoreLiterals.java:46:22: compiler.err.illegal.underscore
20 errors
test/tools/javac/literals/BadUnderscoreLiterals.7.out
0 → 100644
浏览文件 @
af9982f0
BadUnderscoreLiterals.java:18:15: compiler.err.illegal.underscore
BadUnderscoreLiterals.java:22:19: compiler.err.illegal.underscore
BadUnderscoreLiterals.java:25:16: compiler.err.illegal.underscore
BadUnderscoreLiterals.java:26:17: compiler.err.illegal.underscore
BadUnderscoreLiterals.java:29:16: compiler.err.illegal.underscore
BadUnderscoreLiterals.java:30:17: compiler.err.illegal.underscore
BadUnderscoreLiterals.java:33:17: compiler.err.illegal.underscore
BadUnderscoreLiterals.java:34:18: compiler.err.illegal.underscore
BadUnderscoreLiterals.java:35:19: compiler.err.illegal.underscore
BadUnderscoreLiterals.java:36:19: compiler.err.illegal.underscore
BadUnderscoreLiterals.java:37:18: compiler.err.illegal.underscore
BadUnderscoreLiterals.java:38:19: compiler.err.illegal.underscore
BadUnderscoreLiterals.java:41:19: compiler.err.illegal.underscore
BadUnderscoreLiterals.java:42:20: compiler.err.illegal.underscore
BadUnderscoreLiterals.java:43:21: compiler.err.illegal.underscore
BadUnderscoreLiterals.java:44:22: compiler.err.illegal.underscore
BadUnderscoreLiterals.java:45:21: compiler.err.illegal.underscore
BadUnderscoreLiterals.java:46:22: compiler.err.illegal.underscore
18 errors
test/tools/javac/literals/BadUnderscoreLiterals.java
0 → 100644
浏览文件 @
af9982f0
/*
* @test /nodynamiccopyright/
* @bug 6860973
* @summary Project Coin: underscores in literals
*
* @compile/fail BadUnderscoreLiterals.java
* @compile/fail/ref=BadUnderscoreLiterals.7.out -XDrawDiagnostics BadUnderscoreLiterals.java
*
* @compile/fail -source 6 BadUnderscoreLiterals.java
* @compile/fail/ref=BadUnderscoreLiterals.6.out -XDrawDiagnostics -source 6 BadUnderscoreLiterals.java
*/
public
class
BadUnderscoreLiterals
{
int
valid
=
1_1
;
// valid literal; illegal in -source 6
// test zero
int
z1
=
_0
;
// valid (but undefined) variable
int
z2
=
0
_
;
// trailing underscore
// test simple (decimal) integers
int
i1
=
_1_2_3
;
// valid (but undefined) variable
int
i2
=
1_2
_3_
;
// trailing underscore
// test binary integers
int
b1
=
0
b_0
;
// leading underscore after radix
int
b2
=
0b0
_
;
// trailing underscore
// test hexadecimal integers
int
x1
=
0
x_0
;
// leading underscore after radix
int
x2
=
0x0
_
;
// trailing underscore
// test floating point numbers
float
f1
=
0
_
.
1
;
// trailing underscore before decimal point
float
f2
=
0
.
_1
;
// leading underscore after decimal point
float
f3
=
0.1
_
;
// trailing underscore
float
f4
=
0.1
_e0
;
// trailing underscore before exponent
float
f5
=
0
e_1
;
// leading underscore in exponent
float
f6
=
0
e1_
;
// trailing underscore in exponent
// hexadecimal floating point
float
xf1
=
0
x_0
.
1
p0
;
// leading underscore after radix
float
xf2
=
0x0
_
.
1
p0
;
// trailing underscore before decimal point
float
xf3
=
0x0
.
_1p0
;
// leading underscore after decimal point
float
xf4
=
0x0
.
1
_p0
;
// trailing underscore before exponent
float
xf5
=
0x0
p_1
;
// leading underscore after exponent
float
xf6
=
0x0
p1_
;
// trailing underscore
}
test/tools/javac/literals/BinaryLiterals.java
0 → 100644
浏览文件 @
af9982f0
/*
* Copyright 2009 Sun Microsystems, Inc. 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
/*
* @test
* @bug 6860965
* @summary Project Coin: binary literals
*/
public
class
BinaryLiterals
{
public
static
void
main
(
String
...
args
)
throws
Exception
{
new
BinaryLiterals
().
run
();
}
public
void
run
()
throws
Exception
{
test
(
0
,
0B0
);
test
(
1
,
0B1
);
test
(
2
,
0B10
);
test
(
3
,
0B11
);
test
(
0
,
0b0
);
test
(
1
,
0b1
);
test
(
2
,
0b10
);
test
(
3
,
0b11
);
test
(-
0
,
-
0b0
);
test
(-
1
,
-
0b1
);
test
(-
2
,
-
0b10
);
test
(-
3
,
-
0b11
);
test
(-
1
,
0b11111111111111111111111111111111
);
test
(-
2
,
0b11111111111111111111111111111110
);
test
(-
3
,
0b11111111111111111111111111111101
);
test
(
1
,
-
0b11111111111111111111111111111111
);
test
(
2
,
-
0b11111111111111111111111111111110
);
test
(
3
,
-
0b11111111111111111111111111111101
);
test
(
0
,
0b00
);
test
(
1
,
0b001
);
test
(
2
,
0b00010
);
test
(
3
,
0b000011
);
// aaaabbbbccccddddeeeeffffgggghhhh
test
(
0x10
,
0b10000
);
test
(
0x100
,
0b100000000
);
test
(
0x10000
,
0b10000000000000000
);
test
(
0x80000000
,
0b10000000000000000000000000000000
);
test
(
0xffffffff
,
0b11111111111111111111111111111111
);
test
(
0L
,
0b0
L
);
test
(
1L
,
0b1
L
);
test
(
2L
,
0b10
L
);
test
(
3L
,
0b11
L
);
test
(
0
,
0b00
L
);
test
(
1
,
0b001
L
);
test
(
2
,
0b00010
L
);
test
(
3
,
0b000011
L
);
// aaaabbbbccccddddeeeeffffgggghhhhiiiijjjjkkkkllllmmmmnnnnoooopppp
test
(
0x10
L
,
0b10000
L
);
test
(
0x100
L
,
0b100000000
L
);
test
(
0x10000
L
,
0b10000000000000000
L
);
test
(
0x80000000
L
,
0b10000000000000000000000000000000
L
);
test
(
0xffffffff
L
,
0b11111111111111111111111111111111
L
);
test
(
0x8000000000000000
L
,
0b1000000000000000000000000000000000000000000000000000000000000000
L
);
test
(
0xffffffffffffffff
L
,
0b1111111111111111111111111111111111111111111111111111111111111111
L
);
test
(
0
l
,
0b0
l
);
test
(
1
l
,
0b1
l
);
test
(
2
l
,
0b10
l
);
test
(
3
l
,
0b11
l
);
test
(
0
,
0b00
l
);
test
(
1
,
0b001
l
);
test
(
2
,
0b00010
l
);
test
(
3
,
0b000011
l
);
// aaaabbbbccccddddeeeeffffgggghhhhiiiijjjjkkkkllllmmmmnnnnoooopppp
test
(
0x10
l
,
0b10000
l
);
test
(
0x100
l
,
0b100000000
l
);
test
(
0x10000
l
,
0b10000000000000000
l
);
test
(
0x80000000
l
,
0b10000000000000000000000000000000
l
);
test
(
0xffffffff
l
,
0b11111111111111111111111111111111
l
);
test
(
0x8000000000000000
l
,
0b1000000000000000000000000000000000000000000000000000000000000000
l
);
test
(
0xffffffffffffffff
l
,
0b1111111111111111111111111111111111111111111111111111111111111111
l
);
if
(
errors
>
0
)
throw
new
Exception
(
errors
+
" errors found"
);
}
void
test
(
int
expect
,
int
found
)
{
count
++;
if
(
found
!=
expect
)
error
(
"test "
+
count
+
"\nexpected: 0x"
+
Integer
.
toHexString
(
expect
)
+
"\n found: 0x"
+
Integer
.
toHexString
(
found
));
}
void
test
(
long
expect
,
long
found
)
{
count
++;
if
(
found
!=
expect
)
error
(
"test "
+
count
+
"\nexpected: 0x"
+
Long
.
toHexString
(
expect
)
+
"\n found: 0x"
+
Long
.
toHexString
(
found
));
}
void
error
(
String
message
)
{
System
.
out
.
println
(
message
);
errors
++;
}
int
count
;
int
errors
;
}
test/tools/javac/literals/UnderscoreLiterals.java
0 → 100644
浏览文件 @
af9982f0
/*
* Copyright 2009 Sun Microsystems, Inc. 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
/*
* @test
* @bug 6860973
* @summary Project Coin: Underscores in literals
*/
public
class
UnderscoreLiterals
{
public
static
void
main
(
String
...
args
)
throws
Exception
{
new
UnderscoreLiterals
().
run
();
}
public
void
run
()
throws
Exception
{
// decimal
test
(
1
,
1
);
test
(
10
,
10
);
test
(
1_0
,
10
);
test
(
1__0
,
10
);
test
(
1_0
_0
,
100
);
test
(
1__0
__0
,
100
);
test
(
123_456_789
,
123456789
);
// long
test
(
1
l
,
1
l
);
test
(
10
l
,
10
l
);
test
(
1_0
l
,
10
l
);
test
(
1__0
l
,
10
l
);
test
(
1_0
_0l
,
100
l
);
test
(
1__0
__0l
,
100
l
);
test
(
123_456_789
l
,
123456789
l
);
// float
test
(.
1
f
,
.
1
f
);
test
(.
10
f
,
.
10
f
);
test
(.
1_0
f
,
.
10
f
);
test
(.
1__0
f
,
.
10
f
);
test
(.
1_0
_0f
,
.
100
f
);
test
(.
1__0
__0f
,
.
100
f
);
test
(
1
e1
,
1
e1
);
test
(
1
e10
,
1
e10
);
test
(
1
e1_0
,
1
e10
);
test
(
1
e1__0
,
1
e10
);
test
(
1
e1_0_0
,
1
e100
);
test
(
1
e1__0__0
,
1
e100
);
test
(.
123_456_789
f
,
.
123456789
f
);
test
(
0.1f
,
0.1f
);
test
(
0.10f
,
0.10f
);
test
(
0.1_0f
,
0.10f
);
test
(
0.1__0f
,
0.10f
);
test
(
0.1_0
_0f
,
0.100f
);
test
(
0.1__0
__0f
,
0.100f
);
test
(
0.123_456_789f
,
0.123456789f
);
test
(
1_1.1f
,
1_1.1f
);
test
(
1_1.10f
,
1_1.10f
);
test
(
1_1.1_0f
,
1_1.10f
);
test
(
1_1.1__0f
,
1_1.10f
);
test
(
1_1.1_0
_0f
,
1_1.100f
);
test
(
1_1.1__0
__0f
,
1_1.100f
);
test
(
1_1.123_456_789f
,
1_1.123456789f
);
// double
test
(.
1
d
,
.
1
d
);
test
(.
10
d
,
.
10
d
);
test
(.
1_0
d
,
.
10
d
);
test
(.
1__0
d
,
.
10
d
);
test
(.
1_0
_0d
,
.
100
d
);
test
(.
1__0
__0d
,
.
100
d
);
test
(
1
e1
,
1
e1
);
test
(
1
e10
,
1
e10
);
test
(
1
e1_0
,
1
e10
);
test
(
1
e1__0
,
1
e10
);
test
(
1
e1_0_0
,
1
e100
);
test
(
1
e1__0__0
,
1
e100
);
test
(.
123_456_789
d
,
.
123456789
d
);
test
(
0.1d
,
0.1d
);
test
(
0.10d
,
0.10d
);
test
(
0.1_0d
,
0.10d
);
test
(
0.1__0d
,
0.10d
);
test
(
0.1_0
_0d
,
0.100d
);
test
(
0.1__0
__0d
,
0.100d
);
test
(
0.123_456_789d
,
0.123456789d
);
test
(
1_1.1d
,
1_1.1d
);
test
(
1_1.10d
,
1_1.10d
);
test
(
1_1.1_0d
,
1_1.10d
);
test
(
1_1.1__0d
,
1_1.10d
);
test
(
1_1.1_0
_0d
,
1_1.100d
);
test
(
1_1.1__0
__0d
,
1_1.100d
);
test
(
1_1.123_456_789d
,
1_1.123456789d
);
// binary
test
(
0b1
,
1
);
test
(
0b10
,
2
);
test
(
0b1_0
,
2
);
test
(
0b1__0
,
2
);
test
(
0b1_0
_0
,
4
);
test
(
0b1__0
__0
,
4
);
test
(
0b0001_0010_0011
,
0x123
);
// octal
test
(
01
,
1
);
test
(
010
,
8
);
test
(
01_0
,
8
);
test
(
01__0
,
8
);
test
(
01_0
_0
,
64
);
test
(
01__0
__0
,
64
);
test
(
0_1
,
1
);
test
(
0_10
,
8
);
test
(
0_1
_0
,
8
);
test
(
0_1
__0
,
8
);
test
(
0_1
_0_0
,
64
);
test
(
0_1
__0__0
,
64
);
test
(
0_001_002_003
,
01002003
);
// hexadecimal
test
(
0x1
,
1
);
test
(
0x10
,
16
);
test
(
0x1_0
,
16
);
test
(
0x1__0
,
16
);
test
(
0x1_0
_0
,
256
);
test
(
0x1__0
__0
,
256
);
test
(
0x01_02_03_04
,
0x1020304
);
// misc
long
creditCardNumber
=
1234_5678_9012_3456L
;
test
(
creditCardNumber
,
1234567890123456L
);
long
socialSecurityNumbers
=
999_99_9999L
;
test
(
socialSecurityNumbers
,
999999999L
);
double
monetaryAmount
=
12_345_132.12d
;
test
(
monetaryAmount
,
12345132.12d
);
long
hexBytes
=
0xFF_EC_DE_5E
;
test
(
hexBytes
,
0xffecde5e
);
long
hexWords
=
0xFFEC_DE5E
;
test
(
hexWords
,
0xffecde5e
);
long
maxLong
=
0x7fff_ffff_ffff_ffff
L
;
test
(
maxLong
,
0x7fffffffffffffff
L
);
long
maxLongDecimal
=
9223372036854775807L
;
long
alsoMaxLong
=
9_223_372_036_854_775_807L
;
test
(
alsoMaxLong
,
maxLongDecimal
);
double
whyWouldYouEverDoThis
=
0x1
.
ffff_ffff_ffff_fp10_23
;
double
whyWouldYouEverDoEvenThis
=
0x1
.
fffffffffffffp1023
;
test
(
whyWouldYouEverDoThis
,
whyWouldYouEverDoEvenThis
);
if
(
errors
>
0
)
throw
new
Exception
(
errors
+
" errors found"
);
}
void
test
(
int
value
,
int
expect
)
{
count
++;
if
(
value
!=
expect
)
error
(
"test "
+
count
+
"\nexpected: 0x"
+
Integer
.
toHexString
(
expect
)
+
"\n found: 0x"
+
Integer
.
toHexString
(
value
));
}
void
test
(
double
value
,
double
expect
)
{
count
++;
if
(
value
!=
expect
)
error
(
"test "
+
count
+
"\nexpected: 0x"
+
expect
+
"\n found: 0x"
+
value
);
}
void
test
(
long
value
,
long
expect
)
{
count
++;
if
(
value
!=
expect
)
error
(
"test "
+
count
+
"\nexpected: 0x"
+
Long
.
toHexString
(
expect
)
+
"\n found: 0x"
+
Long
.
toHexString
(
value
));
}
void
error
(
String
message
)
{
System
.
out
.
println
(
message
);
errors
++;
}
int
count
;
int
errors
;
}
test/tools/javadoc/annotations/missing/Main.java
0 → 100644
浏览文件 @
af9982f0
/*
* Copyright 2009 Google, Inc. 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
/*
* @test
* @bug 6709246
* @summary Class-cast exception when annotation type is missing.
* @library ../../lib
*/
import
java.io.IOException
;
import
com.sun.javadoc.RootDoc
;
import
com.sun.javadoc.ClassDoc
;
import
com.sun.javadoc.AnnotationDesc
;
public
class
Main
extends
Tester
.
Doclet
{
private
static
final
Tester
tester
=
new
Tester
(
"Main"
,
"somepackage"
);
public
static
void
main
(
String
...
args
)
throws
Exception
{
tester
.
run
();
}
public
static
boolean
start
(
RootDoc
root
)
{
for
(
ClassDoc
d
:
root
.
classes
())
{
for
(
AnnotationDesc
a
:
d
.
annotations
())
{
System
.
out
.
println
(
a
.
annotationType
());
}
}
return
true
;
}
}
test/tools/javadoc/annotations/missing/somepackage/MissingAnnotationClass.java
0 → 100644
浏览文件 @
af9982f0
/*
* Copyright 2009 Google, Inc. 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
package
somepackage
;
/**
* This class has an annotation which is not available.
*/
@NoSuchAnnotation
public
class
MissingAnnotationClass
{
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录