Merge
This commit is contained in:
commit
cec6ecbe3e
@ -23,60 +23,34 @@
|
||||
# have any questions.
|
||||
#
|
||||
|
||||
apt.msg.usage.header=\
|
||||
\u4f7f\u7528\u6cd5: {0} <apt \u304a\u3088\u3073 javac \u30aa\u30d7\u30b7\u30e7\u30f3> <\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb>\n\
|
||||
\u6b21\u306e apt \u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u3042\u308a\u307e\u3059:
|
||||
apt.msg.usage.header=\u4f7f\u7528\u6cd5: {0} <apt \u304a\u3088\u3073 javac \u30aa\u30d7\u30b7\u30e7\u30f3> <\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb>\n\u6b21\u306e apt \u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u3042\u308a\u307e\u3059:
|
||||
|
||||
apt.msg.usage.footer=\
|
||||
javac \u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u3064\u3044\u3066\u306f\u3001javac -help \u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002
|
||||
apt.msg.usage.footer=javac \u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u3064\u3044\u3066\u306f\u3001javac -help \u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002
|
||||
|
||||
apt.msg.usage.nonstandard.footer=\
|
||||
\u3053\u308c\u3089\u306f\u975e\u6a19\u6e96\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u3042\u308a\u4e88\u544a\u306a\u3057\u306b\u5909\u66f4\u3055\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\n\u8868\u793a\u5f62\u5f0f\u306f\u540c\u3058\u3067\u3059\u3002
|
||||
apt.msg.usage.nonstandard.footer=\u3053\u308c\u3089\u306f\u975e\u6a19\u6e96\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u3042\u308a\u4e88\u544a\u306a\u3057\u306b\u5909\u66f4\u3055\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\n\u8868\u793a\u5f62\u5f0f\u306f\u540c\u3058\u3067\u3059\u3002
|
||||
|
||||
apt.msg.bug=\
|
||||
\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u4f8b\u5916\u304c\u767a\u751f\u3057\u307e\u3057\u305f ({0})\u3002\
|
||||
Bug Parade \u306b\u540c\u3058\u30d0\u30b0\u304c\u767b\u9332\u3055\u308c\u3066\u3044\u306a\u3044\u3053\u3068\u3092\u3054\u78ba\u8a8d\u306e\u4e0a\u3001Java Developer Connection \
|
||||
(http://java.sun.com/webapps/bugreport) \u306b\u3066\u30d0\u30b0\u306e\u767b\u9332\u3092\u304a\u9858\u3044\u3044\u305f\u3057\u307e\u3059\u3002 \
|
||||
\u30ec\u30dd\u30fc\u30c8\u306b\u306f\u3001\u305d\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3068\u4e0b\u8a18\u306e\u8a3a\u65ad\u5185\u5bb9\u3092\u542b\u3081\u3066\u304f\u3060\u3055\u3044\u3002\u3054\u5354\u529b\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002
|
||||
apt.msg.bug=\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u4f8b\u5916\u304c\u767a\u751f\u3057\u307e\u3057\u305f ({0})\u3002Bug Parade \u306b\u540c\u3058\u30d0\u30b0\u304c\u767b\u9332\u3055\u308c\u3066\u3044\u306a\u3044\u3053\u3068\u3092\u3054\u78ba\u8a8d\u306e\u4e0a\u3001Java Developer Connection (http://java.sun.com/webapps/bugreport) \u306b\u3066\u30d0\u30b0\u306e\u767b\u9332\u3092\u304a\u9858\u3044\u3044\u305f\u3057\u307e\u3059\u3002 \u30ec\u30dd\u30fc\u30c8\u306b\u306f\u3001\u305d\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3068\u4e0b\u8a18\u306e\u8a3a\u65ad\u5185\u5bb9\u3092\u542b\u3081\u3066\u304f\u3060\u3055\u3044\u3002\u3054\u5354\u529b\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002
|
||||
|
||||
## apt options
|
||||
|
||||
apt.opt.A=\
|
||||
\u6ce8\u91c8\u30d7\u30ed\u30bb\u30c3\u30b5\u306b\u6e21\u3055\u308c\u308b\u30aa\u30d7\u30b7\u30e7\u30f3
|
||||
apt.opt.arg.class=\
|
||||
<class>
|
||||
apt.opt.arg.directory=\
|
||||
\u30d7\u30ed\u30bb\u30c3\u30b5\u304a\u3088\u3073 javac \u304c\u751f\u6210\u3057\u305f\u30af\u30e9\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u7f6e\u304f\u4f4d\u7f6e\u3092\u6307\u5b9a\u3059\u308b
|
||||
apt.opt.classpath=\
|
||||
\u30e6\u30fc\u30b6\u30af\u30e9\u30b9\u30d5\u30a1\u30a4\u30eb\u304a\u3088\u3073\u6ce8\u91c8\u30d7\u30ed\u30bb\u30c3\u30b5\u30d5\u30a1\u30af\u30c8\u30ea\u3092\u691c\u7d22\u3059\u308b\u4f4d\u7f6e\u3092\u6307\u5b9a\u3059\u308b
|
||||
apt.opt.d=\
|
||||
\u30d7\u30ed\u30bb\u30c3\u30b5\u304a\u3088\u3073 javac \u304c\u751f\u6210\u3057\u305f\u30af\u30e9\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u7f6e\u304f\u4f4d\u7f6e\u3092\u6307\u5b9a\u3059\u308b
|
||||
apt.opt.factory=\
|
||||
\u4f7f\u7528\u3059\u308b AnnotationProcessorFactory \u306e\u540d\u524d\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u691c\u51fa\u51e6\u7406\u3092\u30d0\u30a4\u30d1\u30b9
|
||||
apt.opt.factorypath=\
|
||||
\u6ce8\u91c8\u30d7\u30ed\u30bb\u30c3\u30b5\u30d5\u30a1\u30af\u30c8\u30ea\u306e\u691c\u7d22\u5834\u6240\u3092\u6307\u5b9a\u3059\u308b
|
||||
apt.opt.s=\
|
||||
\u30d7\u30ed\u30bb\u30c3\u30b5\u304c\u751f\u6210\u3057\u305f\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u7f6e\u304f\u4f4d\u7f6e\u3092\u6307\u5b9a\u3059\u308b
|
||||
apt.opt.help=\
|
||||
\u6a19\u6e96\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u6982\u8981\u3092\u51fa\u529b\u3059\u308b\u3002\u8a73\u7d30\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u3064\u3044\u3066\u306f javac -help \u3092\u53c2\u7167
|
||||
apt.opt.print=\
|
||||
\u6307\u5b9a\u3057\u305f\u578b\u306e\u30c6\u30ad\u30b9\u30c8\u8868\u793a\u3092\u51fa\u529b\u3059\u308b
|
||||
apt.opt.nocompile=\
|
||||
\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u30af\u30e9\u30b9\u30d5\u30a1\u30a4\u30eb\u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u306a\u3044
|
||||
apt.opt.proc.flag=\
|
||||
[key[=value]]
|
||||
apt.opt.version=\
|
||||
\u30d0\u30fc\u30b8\u30e7\u30f3\u60c5\u5831
|
||||
apt.opt.XListAnnotationTypes=\
|
||||
\u898b\u3064\u304b\u3063\u305f\u6ce8\u91c8\u578b\u3092\u30ea\u30b9\u30c8\u3059\u308b
|
||||
apt.opt.XListDeclarations=\
|
||||
\u6307\u5b9a\u3055\u308c\u305f\u5ba3\u8a00\u304a\u3088\u3073\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u3055\u308c\u305f\u5ba3\u8a00\u3092\u30ea\u30b9\u30c8\u3059\u308b
|
||||
apt.opt.XPrintAptRounds=\
|
||||
\u521d\u671f\u304a\u3088\u3073\u518d\u5e30 apt \u5f80\u5fa9\u306b\u3064\u3044\u3066\u306e\u60c5\u5831\u3092\u5370\u5237\u3059\u308b
|
||||
apt.opt.XPrintFactoryInfo=\
|
||||
\u30d5\u30a1\u30af\u30c8\u30ea\u304c\u51e6\u7406\u3092\u4f9d\u983c\u3055\u308c\u308b\u6ce8\u91c8\u306b\u3064\u3044\u3066\u306e\u60c5\u5831\u3092\u5370\u5237\u3059\u308b
|
||||
apt.opt.XClassesAsDecls=\
|
||||
\u30af\u30e9\u30b9\u3068\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u4e21\u65b9\u3068\u3082\u51e6\u7406\u3059\u308b\u5ba3\u8a00\u3068\u3057\u3066\u51e6\u7406
|
||||
apt.opt.A=\u6ce8\u91c8\u30d7\u30ed\u30bb\u30c3\u30b5\u306b\u6e21\u3055\u308c\u308b\u30aa\u30d7\u30b7\u30e7\u30f3
|
||||
apt.opt.arg.class=<class>
|
||||
apt.opt.arg.directory=\u30d7\u30ed\u30bb\u30c3\u30b5\u304a\u3088\u3073 javac \u304c\u751f\u6210\u3057\u305f\u30af\u30e9\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u7f6e\u304f\u4f4d\u7f6e\u3092\u6307\u5b9a\u3059\u308b
|
||||
apt.opt.classpath=\u30e6\u30fc\u30b6\u30af\u30e9\u30b9\u30d5\u30a1\u30a4\u30eb\u304a\u3088\u3073\u6ce8\u91c8\u30d7\u30ed\u30bb\u30c3\u30b5\u30d5\u30a1\u30af\u30c8\u30ea\u3092\u691c\u7d22\u3059\u308b\u4f4d\u7f6e\u3092\u6307\u5b9a\u3059\u308b
|
||||
apt.opt.d=\u30d7\u30ed\u30bb\u30c3\u30b5\u304a\u3088\u3073 javac \u304c\u751f\u6210\u3057\u305f\u30af\u30e9\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u7f6e\u304f\u4f4d\u7f6e\u3092\u6307\u5b9a\u3059\u308b
|
||||
apt.opt.factory=\u4f7f\u7528\u3059\u308b AnnotationProcessorFactory \u306e\u540d\u524d\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u691c\u51fa\u51e6\u7406\u3092\u30d0\u30a4\u30d1\u30b9
|
||||
apt.opt.factorypath=\u6ce8\u91c8\u30d7\u30ed\u30bb\u30c3\u30b5\u30d5\u30a1\u30af\u30c8\u30ea\u306e\u691c\u7d22\u5834\u6240\u3092\u6307\u5b9a\u3059\u308b
|
||||
apt.opt.s=\u30d7\u30ed\u30bb\u30c3\u30b5\u304c\u751f\u6210\u3057\u305f\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u7f6e\u304f\u4f4d\u7f6e\u3092\u6307\u5b9a\u3059\u308b
|
||||
apt.opt.help=\u6a19\u6e96\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u6982\u8981\u3092\u51fa\u529b\u3059\u308b\u3002\u8a73\u7d30\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u3064\u3044\u3066\u306f javac -help \u3092\u53c2\u7167
|
||||
apt.opt.print=\u6307\u5b9a\u3057\u305f\u578b\u306e\u30c6\u30ad\u30b9\u30c8\u8868\u793a\u3092\u51fa\u529b\u3059\u308b
|
||||
apt.opt.nocompile=\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u30af\u30e9\u30b9\u30d5\u30a1\u30a4\u30eb\u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u306a\u3044
|
||||
apt.opt.proc.flag=[key[=value]]
|
||||
apt.opt.version=\u30d0\u30fc\u30b8\u30e7\u30f3\u60c5\u5831
|
||||
apt.opt.XListAnnotationTypes=\u898b\u3064\u304b\u3063\u305f\u6ce8\u91c8\u578b\u3092\u30ea\u30b9\u30c8\u3059\u308b
|
||||
apt.opt.XListDeclarations=\u6307\u5b9a\u3055\u308c\u305f\u5ba3\u8a00\u304a\u3088\u3073\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u3055\u308c\u305f\u5ba3\u8a00\u3092\u30ea\u30b9\u30c8\u3059\u308b
|
||||
apt.opt.XPrintAptRounds=\u521d\u671f\u304a\u3088\u3073\u518d\u5e30 apt \u5f80\u5fa9\u306b\u3064\u3044\u3066\u306e\u60c5\u5831\u3092\u5370\u5237\u3059\u308b
|
||||
apt.opt.XPrintFactoryInfo=\u30d5\u30a1\u30af\u30c8\u30ea\u304c\u51e6\u7406\u3092\u4f9d\u983c\u3055\u308c\u308b\u6ce8\u91c8\u306b\u3064\u3044\u3066\u306e\u60c5\u5831\u3092\u5370\u5237\u3059\u308b
|
||||
apt.opt.XClassesAsDecls=\u30af\u30e9\u30b9\u3068\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u4e21\u65b9\u3068\u3082\u51e6\u7406\u3059\u308b\u5ba3\u8a00\u3068\u3057\u3066\u51e6\u7406
|
||||
|
||||
##
|
||||
## errors
|
||||
@ -85,92 +59,68 @@ apt.opt.XClassesAsDecls=\
|
||||
## All errors which do not refer to a particular line in the source code are
|
||||
## preceded by this string.
|
||||
|
||||
apt.err.error=\
|
||||
\u30a8\u30e9\u30fc:
|
||||
apt.err.error=\u30a8\u30e9\u30fc:
|
||||
|
||||
apt.err.unsupported.source.version=\
|
||||
\u30bd\u30fc\u30b9\u30ea\u30ea\u30fc\u30b9 {0} \u306f\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u30ea\u30ea\u30fc\u30b9 5 \u4ee5\u524d\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044
|
||||
apt.err.unsupported.source.version=\u30bd\u30fc\u30b9\u30ea\u30ea\u30fc\u30b9 {0} \u306f\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u30ea\u30ea\u30fc\u30b9 5 \u4ee5\u524d\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044
|
||||
|
||||
apt.err.unsupported.target.version=\
|
||||
\u30bf\u30fc\u30b2\u30c3\u30c8\u30ea\u30ea\u30fc\u30b9 {0} \u306f\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u30ea\u30ea\u30fc\u30b9 5 \u4ee5\u524d\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044
|
||||
apt.err.unsupported.target.version=\u30bf\u30fc\u30b2\u30c3\u30c8\u30ea\u30ea\u30fc\u30b9 {0} \u306f\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u30ea\u30ea\u30fc\u30b9 5 \u4ee5\u524d\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044
|
||||
|
||||
apt.err.BadDeclaration=\
|
||||
\u6ce8\u91c8\u578b {0} \u7528\u306b\u4f5c\u6210\u3055\u308c\u305f\u7121\u52b9\u306a\u5ba3\u8a00\u3067\u3059\u3002
|
||||
apt.err.BadDeclaration=\u6ce8\u91c8\u578b {0} \u7528\u306b\u4f5c\u6210\u3055\u308c\u305f\u7121\u52b9\u306a\u5ba3\u8a00\u3067\u3059\u3002
|
||||
|
||||
apt.err.CantFindClass=\
|
||||
{0} \u306e\u30af\u30e9\u30b9\u30d5\u30a1\u30a4\u30eb\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3002
|
||||
apt.err.CantFindClass={0} \u306e\u30af\u30e9\u30b9\u30d5\u30a1\u30a4\u30eb\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3002
|
||||
|
||||
apt.err.DeclarationCreation=\
|
||||
\u6ce8\u91c8\u578b {0} \u7528\u306b\u5ba3\u8a00\u3092\u4f5c\u6210\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002
|
||||
apt.err.DeclarationCreation=\u6ce8\u91c8\u578b {0} \u7528\u306b\u5ba3\u8a00\u3092\u4f5c\u6210\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002
|
||||
|
||||
# Print an error from the Messager
|
||||
apt.err.Messager=\
|
||||
{0}
|
||||
apt.err.Messager={0}
|
||||
|
||||
##
|
||||
## miscellaneous strings
|
||||
##
|
||||
|
||||
apt.misc.Problem=\
|
||||
\u6ce8\u91c8\u306e\u51e6\u7406\u4e2d\u306b\u554f\u984c\u304c\u691c\u51fa\u3055\u308c\u307e\u3057\u305f\u3002\n\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001\u4e0b\u8a18\u306e\u30b9\u30bf\u30c3\u30af\u30c8\u30ec\u30fc\u30b9\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002
|
||||
apt.misc.Deprecation=\n\u8b66\u544a: apt \u30c4\u30fc\u30eb\u3068\u3053\u308c\u306b\u95a2\u9023\u3059\u308b API \u306f\u3001\u6b21\u306e JDK \u30e1\u30b8\u30e3\u30fc\u30ea\u30ea\u30fc\u30b9\u3067\n\u524a\u9664\u3055\u308c\u308b\u4e88\u5b9a\u3067\u3059\u3002\u3053\u308c\u3089\u306e\u6a5f\u80fd\u306f\u3001\njavac \u304a\u3088\u3073\u6a19\u6e96\u5316\u6ce8\u91c8\u51e6\u7406 API \n(javax.annotation.processing \u3068 javax.lang.model) \u306b\u7f6e\u304d\u63db\u3048\u3089\u308c\u307e\u3057\u305f\u3002javac \u306e\n\u6ce8\u91c8\u51e6\u7406\u6a5f\u80fd\u3078\u306e\u79fb\u884c\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u3002\u8a73\u7d30\u306f\u3001\njavac \u306e\u30de\u30cb\u30e5\u30a2\u30eb\u30da\u30fc\u30b8\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n
|
||||
|
||||
apt.misc.SunMiscService=\
|
||||
\u6ce8\u91c8\u30d7\u30ed\u30bb\u30c3\u30b5\u30d5\u30a1\u30af\u30c8\u30ea\u306e\u691c\u7d22\u30a8\u30e9\u30fc\u3067\u3059\u3002\nMETA-INF/services \u5185\u306e\u60c5\u5831\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002
|
||||
apt.misc.Problem=\u6ce8\u91c8\u306e\u51e6\u7406\u4e2d\u306b\u554f\u984c\u304c\u691c\u51fa\u3055\u308c\u307e\u3057\u305f\u3002\n\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001\u4e0b\u8a18\u306e\u30b9\u30bf\u30c3\u30af\u30c8\u30ec\u30fc\u30b9\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002
|
||||
|
||||
apt.misc.SunMiscService=\u6ce8\u91c8\u30d7\u30ed\u30bb\u30c3\u30b5\u30d5\u30a1\u30af\u30c8\u30ea\u306e\u691c\u7d22\u30a8\u30e9\u30fc\u3067\u3059\u3002\nMETA-INF/services \u5185\u306e\u60c5\u5831\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002
|
||||
|
||||
# Print a notice from the Messager
|
||||
apt.note.Messager=\
|
||||
{0}
|
||||
apt.note.Messager={0}
|
||||
|
||||
##
|
||||
## warnings
|
||||
##
|
||||
|
||||
## All warning messages are preceded by the following string.
|
||||
apt.warn.warning=\
|
||||
\u8b66\u544a:
|
||||
apt.warn.warning=\u8b66\u544a:
|
||||
|
||||
apt.warn.AnnotationsWithoutProcessors=\
|
||||
\u30d7\u30ed\u30bb\u30c3\u30b5\u306a\u3057\u306e\u6ce8\u91c8\u578b\u3067\u3059: {0}
|
||||
apt.warn.AnnotationsWithoutProcessors=\u30d7\u30ed\u30bb\u30c3\u30b5\u306a\u3057\u306e\u6ce8\u91c8\u578b\u3067\u3059: {0}
|
||||
|
||||
apt.warn.BadFactory=\
|
||||
\u6ce8\u91c8\u30d7\u30ed\u30bb\u30c3\u30b5\u30d5\u30a1\u30af\u30c8\u30ea\u304c\u7121\u52b9\u3067\u3059: {0}
|
||||
apt.warn.BadFactory=\u6ce8\u91c8\u30d7\u30ed\u30bb\u30c3\u30b5\u30d5\u30a1\u30af\u30c8\u30ea\u304c\u7121\u52b9\u3067\u3059: {0}
|
||||
|
||||
apt.warn.BadParentDirectory=\
|
||||
{0} \u306e\u3044\u304f\u3064\u304b\u306e\u89aa\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4f5c\u6210\u306b\u5931\u6557\u3057\u307e\u3057\u305f
|
||||
apt.warn.BadParentDirectory={0} \u306e\u3044\u304f\u3064\u304b\u306e\u89aa\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4f5c\u6210\u306b\u5931\u6557\u3057\u307e\u3057\u305f
|
||||
|
||||
apt.warn.FactoryCantInstantiate=\
|
||||
\u30d5\u30a1\u30af\u30c8\u30ea ''{0}'' \u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5316\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002
|
||||
apt.warn.FactoryCantInstantiate=\u30d5\u30a1\u30af\u30c8\u30ea ''{0}'' \u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5316\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002
|
||||
|
||||
apt.warn.FactoryWrongType=\
|
||||
\u6307\u5b9a\u3057\u305f\u30d5\u30a1\u30af\u30c8\u30ea ''{0}'' \u306f AnnotationProcessorFactory \u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002
|
||||
apt.warn.FactoryWrongType=\u6307\u5b9a\u3057\u305f\u30d5\u30a1\u30af\u30c8\u30ea ''{0}'' \u306f AnnotationProcessorFactory \u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002
|
||||
|
||||
apt.warn.FactoryNotFound=\
|
||||
\u6307\u5b9a\u3057\u305f AnnotationProcessorFactory ''{0}'' \u306f\u691c\u7d22\u30d1\u30b9\u3067\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002
|
||||
apt.warn.FactoryNotFound=\u6307\u5b9a\u3057\u305f AnnotationProcessorFactory ''{0}'' \u306f\u691c\u7d22\u30d1\u30b9\u3067\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002
|
||||
|
||||
apt.warn.FileReopening=\
|
||||
''{0}'' \u3092\u8907\u6570\u56de\u4f5c\u6210\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u307e\u3059\u3002
|
||||
apt.warn.FileReopening=''{0}'' \u3092\u8907\u6570\u56de\u4f5c\u6210\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u307e\u3059\u3002
|
||||
|
||||
apt.warn.IllegalFileName=\
|
||||
\u7121\u52b9\u306a\u540d\u524d ''{0}'' \u306e\u30d5\u30a1\u30a4\u30eb\u306f\u4f5c\u6210\u3067\u304d\u307e\u305b\u3093\u3002
|
||||
apt.warn.IllegalFileName=\u7121\u52b9\u306a\u540d\u524d ''{0}'' \u306e\u30d5\u30a1\u30a4\u30eb\u306f\u4f5c\u6210\u3067\u304d\u307e\u305b\u3093\u3002
|
||||
|
||||
apt.warn.MalformedSupportedString=\
|
||||
\u30d5\u30a1\u30af\u30c8\u30ea\u304c\u8fd4\u3057\u305f\u6ce8\u91c8\u30b5\u30dd\u30fc\u30c8 ''{0}'' \u306e\u6587\u5b57\u5217\u304c\u4e0d\u6b63\u3067\u3059\u3002
|
||||
apt.warn.MalformedSupportedString=\u30d5\u30a1\u30af\u30c8\u30ea\u304c\u8fd4\u3057\u305f\u6ce8\u91c8\u30b5\u30dd\u30fc\u30c8 ''{0}'' \u306e\u6587\u5b57\u5217\u304c\u4e0d\u6b63\u3067\u3059\u3002
|
||||
|
||||
apt.warn.NoNewFilesAfterRound=\
|
||||
\u5f80\u5fa9\u306e\u7d42\u4e86\u5f8c\u306b\u30d5\u30a1\u30a4\u30eb ''{0}'' \u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002
|
||||
apt.warn.NoNewFilesAfterRound=\u5f80\u5fa9\u306e\u7d42\u4e86\u5f8c\u306b\u30d5\u30a1\u30a4\u30eb ''{0}'' \u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002
|
||||
|
||||
# Print a warning from the Messager
|
||||
apt.warn.Messager=\
|
||||
{0}
|
||||
apt.warn.Messager={0}
|
||||
|
||||
apt.warn.NoAnnotationProcessors=\
|
||||
\u6ce8\u91c8\u30d7\u30ed\u30bb\u30c3\u30b5\u306f\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u304c\u3001\u6ce8\u91c8\u306f\u5b58\u5728\u3057\u307e\u3059\u3002
|
||||
apt.warn.NoAnnotationProcessors=\u6ce8\u91c8\u30d7\u30ed\u30bb\u30c3\u30b5\u306f\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u304c\u3001\u6ce8\u91c8\u306f\u5b58\u5728\u3057\u307e\u3059\u3002
|
||||
|
||||
apt.warn.NullProcessor=\
|
||||
\u30d5\u30a1\u30af\u30c8\u30ea {0} \u304c\u6ce8\u91c8\u30d7\u30ed\u30bb\u30c3\u30b5\u306b null \u3092\u8fd4\u3057\u307e\u3057\u305f\u3002
|
||||
apt.warn.NullProcessor=\u30d5\u30a1\u30af\u30c8\u30ea {0} \u304c\u6ce8\u91c8\u30d7\u30ed\u30bb\u30c3\u30b5\u306b null \u3092\u8fd4\u3057\u307e\u3057\u305f\u3002
|
||||
|
||||
apt.warn.CorrespondingClassFile=\
|
||||
\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb ''{0}'' \u306b\u5bfe\u5fdc\u3059\u308b\u30af\u30e9\u30b9\u30d5\u30a1\u30a4\u30eb\u306f\u3059\u3067\u306b\u4f5c\u6210\u3055\u308c\u3066\u3044\u307e\u3059\u3002
|
||||
apt.warn.CorrespondingClassFile=\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb ''{0}'' \u306b\u5bfe\u5fdc\u3059\u308b\u30af\u30e9\u30b9\u30d5\u30a1\u30a4\u30eb\u306f\u3059\u3067\u306b\u4f5c\u6210\u3055\u308c\u3066\u3044\u307e\u3059\u3002
|
||||
|
||||
apt.warn.CorrespondingSourceFile=\
|
||||
\u30af\u30e9\u30b9\u30d5\u30a1\u30a4\u30eb ''{0}'' \u306b\u5bfe\u5fdc\u3059\u308b\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u306f\u3059\u3067\u306b\u4f5c\u6210\u3055\u308c\u3066\u3044\u307e\u3059\u3002
|
||||
apt.warn.CorrespondingSourceFile=\u30af\u30e9\u30b9\u30d5\u30a1\u30a4\u30eb ''{0}'' \u306b\u5bfe\u5fdc\u3059\u308b\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u306f\u3059\u3067\u306b\u4f5c\u6210\u3055\u308c\u3066\u3044\u307e\u3059\u3002
|
||||
|
@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# Copyright 2004-2006 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
|
||||
@ -23,60 +23,34 @@
|
||||
# have any questions.
|
||||
#
|
||||
|
||||
apt.msg.usage.header=\
|
||||
\u7528\u6cd5\uff1a{0} <apt \u548c javac \u9009\u9879> <\u6e90\u6587\u4ef6>\n\
|
||||
\u5176\u4e2d\uff0capt \u9009\u9879\u5305\u62ec\uff1a
|
||||
apt.msg.usage.header=\u7528\u6cd5\uff1a{0} <apt \u548c javac \u9009\u9879> <\u6e90\u6587\u4ef6>\n\u5176\u4e2d\uff0capt \u9009\u9879\u5305\u62ec\uff1a
|
||||
|
||||
apt.msg.usage.footer=\
|
||||
\u6709\u5173 javac \u9009\u9879\u7684\u4fe1\u606f\uff0c\u8bf7\u53c2\u89c1 javac -help\u3002
|
||||
apt.msg.usage.footer=\u6709\u5173 javac \u9009\u9879\u7684\u4fe1\u606f\uff0c\u8bf7\u53c2\u89c1 javac -help\u3002
|
||||
|
||||
apt.msg.usage.nonstandard.footer=\
|
||||
\u8fd9\u4e9b\u9009\u9879\u53ca\u5176\u8f93\u51fa\u683c\u5f0f\u90fd\u4e0d\u662f\u6807\u51c6\u7684\uff0c\n\u5982\u6709\u66f4\u6539\uff0c\u6055\u4e0d\u53e6\u884c\u901a\u77e5\u3002
|
||||
apt.msg.usage.nonstandard.footer=\u8fd9\u4e9b\u9009\u9879\u53ca\u5176\u8f93\u51fa\u683c\u5f0f\u90fd\u4e0d\u662f\u6807\u51c6\u7684\uff0c\n\u5982\u6709\u66f4\u6539\uff0c\u6055\u4e0d\u53e6\u884c\u901a\u77e5\u3002
|
||||
|
||||
apt.msg.bug=\
|
||||
apt ({0}) \u4e2d\u51fa\u73b0\u5f02\u5e38\u3002 \
|
||||
\u5982\u679c\u5728 Bug Parade \u4e2d\u6ca1\u6709\u627e\u5230\u8be5\u9519\u8bef\uff0c\u8bf7\u5728 Java Developer Connection (http://java.sun.com/webapps/bugreport) \
|
||||
\u5bf9\u8be5\u9519\u8bef\u8fdb\u884c\u5f52\u6863\u3002 \
|
||||
\u8bf7\u5728\u62a5\u544a\u4e2d\u9644\u4e0a\u60a8\u7684\u7a0b\u5e8f\u548c\u4ee5\u4e0b\u8bca\u65ad\u4fe1\u606f\u3002\u8c22\u8c22\u60a8\u7684\u5408\u4f5c\u3002
|
||||
apt.msg.bug=apt ({0}) \u4e2d\u51fa\u73b0\u5f02\u5e38\u3002 \u5982\u679c\u5728 Bug Parade \u4e2d\u6ca1\u6709\u627e\u5230\u8be5\u9519\u8bef\uff0c\u8bf7\u5728 Java Developer Connection (http://java.sun.com/webapps/bugreport) \u5bf9\u8be5\u9519\u8bef\u8fdb\u884c\u5f52\u6863\u3002 \u8bf7\u5728\u62a5\u544a\u4e2d\u9644\u4e0a\u60a8\u7684\u7a0b\u5e8f\u548c\u4ee5\u4e0b\u8bca\u65ad\u4fe1\u606f\u3002\u8c22\u8c22\u60a8\u7684\u5408\u4f5c\u3002
|
||||
|
||||
## apt options
|
||||
|
||||
apt.opt.A=\
|
||||
\u4f20\u9012\u7ed9\u6ce8\u91ca\u5904\u7406\u5668\u7684\u9009\u9879
|
||||
apt.opt.arg.class=\
|
||||
<\u7c7b>
|
||||
apt.opt.arg.directory=\
|
||||
\u6307\u5b9a\u5b58\u653e\u5904\u7406\u5668\u548c javac \u751f\u6210\u7684\u7c7b\u6587\u4ef6\u7684\u4f4d\u7f6e
|
||||
apt.opt.classpath=\
|
||||
\u6307\u5b9a\u67e5\u627e\u7528\u6237\u7c7b\u6587\u4ef6\u548c\u6ce8\u91ca\u5904\u7406\u5668\u5de5\u5382\u7684\u4f4d\u7f6e
|
||||
apt.opt.d=\
|
||||
\u6307\u5b9a\u5b58\u653e\u5904\u7406\u5668\u548c javac \u751f\u6210\u7684\u7c7b\u6587\u4ef6\u7684\u4f4d\u7f6e
|
||||
apt.opt.factory=\
|
||||
\u8981\u4f7f\u7528\u7684 AnnotationProcessorFactory \u7684\u540d\u79f0\uff1b\u7ed5\u8fc7\u9ed8\u8ba4\u7684\u641c\u7d22\u8fdb\u7a0b
|
||||
apt.opt.factorypath=\
|
||||
\u6307\u5b9a\u67e5\u627e\u6ce8\u91ca\u5904\u7406\u5668\u5de5\u5382\u7684\u4f4d\u7f6e
|
||||
apt.opt.s=\
|
||||
\u6307\u5b9a\u5b58\u653e\u5904\u7406\u5668\u751f\u6210\u7684\u6e90\u6587\u4ef6\u7684\u4f4d\u7f6e
|
||||
apt.opt.help=\
|
||||
\u8f93\u51fa\u6807\u51c6\u9009\u9879\u7684\u63d0\u8981\uff1b\u4f7f\u7528 javac -help \u53ef\u4ee5\u5f97\u5230\u66f4\u591a\u9009\u9879
|
||||
apt.opt.print=\
|
||||
\u8f93\u51fa\u6307\u5b9a\u7c7b\u578b\u7684\u6587\u672c\u8868\u793a
|
||||
apt.opt.nocompile=\
|
||||
\u8bf7\u52ff\u5c06\u6e90\u6587\u4ef6\u7f16\u8bd1\u4e3a\u7c7b\u6587\u4ef6
|
||||
apt.opt.proc.flag=\
|
||||
[\u5173\u952e\u5b57[=\u503c]]
|
||||
apt.opt.version=\
|
||||
\u7248\u672c\u4fe1\u606f
|
||||
apt.opt.XListAnnotationTypes=\
|
||||
\u5217\u51fa\u627e\u5230\u7684\u6ce8\u91ca\u7c7b\u578b
|
||||
apt.opt.XListDeclarations=\
|
||||
\u5217\u51fa\u6307\u5b9a\u548c\u5305\u542b\u7684\u58f0\u660e
|
||||
apt.opt.XPrintAptRounds=\
|
||||
\u8f93\u51fa\u6709\u5173\u521d\u59cb\u548c\u9012\u5f52 apt \u5faa\u73af\u7684\u4fe1\u606f
|
||||
apt.opt.XPrintFactoryInfo=\
|
||||
\u8f93\u51fa\u6709\u5173\u8bf7\u6c42\u5de5\u5382\u5904\u7406\u54ea\u4e9b\u6ce8\u91ca\u7684\u4fe1\u606f
|
||||
apt.opt.XClassesAsDecls=\
|
||||
\u5c06\u7c7b\u6587\u4ef6\u548c\u6e90\u6587\u4ef6\u90fd\u89c6\u4e3a\u8981\u5904\u7406\u7684\u58f0\u660e
|
||||
apt.opt.A=\u4f20\u9012\u7ed9\u6ce8\u91ca\u5904\u7406\u5668\u7684\u9009\u9879
|
||||
apt.opt.arg.class=<\u7c7b>
|
||||
apt.opt.arg.directory=\u6307\u5b9a\u5b58\u653e\u5904\u7406\u5668\u548c javac \u751f\u6210\u7684\u7c7b\u6587\u4ef6\u7684\u4f4d\u7f6e
|
||||
apt.opt.classpath=\u6307\u5b9a\u67e5\u627e\u7528\u6237\u7c7b\u6587\u4ef6\u548c\u6ce8\u91ca\u5904\u7406\u5668\u5de5\u5382\u7684\u4f4d\u7f6e
|
||||
apt.opt.d=\u6307\u5b9a\u5b58\u653e\u5904\u7406\u5668\u548c javac \u751f\u6210\u7684\u7c7b\u6587\u4ef6\u7684\u4f4d\u7f6e
|
||||
apt.opt.factory=\u8981\u4f7f\u7528\u7684 AnnotationProcessorFactory \u7684\u540d\u79f0\uff1b\u7ed5\u8fc7\u9ed8\u8ba4\u7684\u641c\u7d22\u8fdb\u7a0b
|
||||
apt.opt.factorypath=\u6307\u5b9a\u67e5\u627e\u6ce8\u91ca\u5904\u7406\u5668\u5de5\u5382\u7684\u4f4d\u7f6e
|
||||
apt.opt.s=\u6307\u5b9a\u5b58\u653e\u5904\u7406\u5668\u751f\u6210\u7684\u6e90\u6587\u4ef6\u7684\u4f4d\u7f6e
|
||||
apt.opt.help=\u8f93\u51fa\u6807\u51c6\u9009\u9879\u7684\u63d0\u8981\uff1b\u4f7f\u7528 javac -help \u53ef\u4ee5\u5f97\u5230\u66f4\u591a\u9009\u9879
|
||||
apt.opt.print=\u8f93\u51fa\u6307\u5b9a\u7c7b\u578b\u7684\u6587\u672c\u8868\u793a
|
||||
apt.opt.nocompile=\u8bf7\u52ff\u5c06\u6e90\u6587\u4ef6\u7f16\u8bd1\u4e3a\u7c7b\u6587\u4ef6
|
||||
apt.opt.proc.flag=[\u5173\u952e\u5b57[=\u503c]]
|
||||
apt.opt.version=\u7248\u672c\u4fe1\u606f
|
||||
apt.opt.XListAnnotationTypes=\u5217\u51fa\u627e\u5230\u7684\u6ce8\u91ca\u7c7b\u578b
|
||||
apt.opt.XListDeclarations=\u5217\u51fa\u6307\u5b9a\u548c\u5305\u542b\u7684\u58f0\u660e
|
||||
apt.opt.XPrintAptRounds=\u8f93\u51fa\u6709\u5173\u521d\u59cb\u548c\u9012\u5f52 apt \u5faa\u73af\u7684\u4fe1\u606f
|
||||
apt.opt.XPrintFactoryInfo=\u8f93\u51fa\u6709\u5173\u8bf7\u6c42\u5de5\u5382\u5904\u7406\u54ea\u4e9b\u6ce8\u91ca\u7684\u4fe1\u606f
|
||||
apt.opt.XClassesAsDecls=\u5c06\u7c7b\u6587\u4ef6\u548c\u6e90\u6587\u4ef6\u90fd\u89c6\u4e3a\u8981\u5904\u7406\u7684\u58f0\u660e
|
||||
|
||||
##
|
||||
## errors
|
||||
@ -85,92 +59,68 @@ apt.opt.XClassesAsDecls=\
|
||||
## All errors which do not refer to a particular line in the source code are
|
||||
## preceded by this string.
|
||||
|
||||
apt.err.error=\
|
||||
\u9519\u8bef\uff1a
|
||||
apt.err.error=\u9519\u8bef\uff1a
|
||||
|
||||
apt.err.unsupported.source.version=\
|
||||
\u4e0d\u652f\u6301\u6e90\u7248\u672c {0}\uff1b\u8bf7\u4f7f\u7528\u7248\u672c 5 \u6216\u65e9\u671f\u7248\u672c
|
||||
apt.err.unsupported.source.version=\u4e0d\u652f\u6301\u6e90\u7248\u672c {0}\uff1b\u8bf7\u4f7f\u7528\u7248\u672c 5 \u6216\u65e9\u671f\u7248\u672c
|
||||
|
||||
apt.err.unsupported.target.version=\
|
||||
\u4e0d\u652f\u6301\u76ee\u6807\u7248\u672c {0}\uff1b\u8bf7\u4f7f\u7528\u7248\u672c 5 \u6216\u65e9\u671f\u7248\u672c
|
||||
apt.err.unsupported.target.version=\u4e0d\u652f\u6301\u76ee\u6807\u7248\u672c {0}\uff1b\u8bf7\u4f7f\u7528\u7248\u672c 5 \u6216\u65e9\u671f\u7248\u672c
|
||||
|
||||
apt.err.BadDeclaration=\
|
||||
\u4e3a\u6ce8\u91ca\u7c7b\u578b {0} \u521b\u5efa\u7684\u58f0\u660e\u51fa\u73b0\u9519\u8bef
|
||||
apt.err.BadDeclaration=\u4e3a\u6ce8\u91ca\u7c7b\u578b {0} \u521b\u5efa\u7684\u58f0\u660e\u51fa\u73b0\u9519\u8bef
|
||||
|
||||
apt.err.CantFindClass=\
|
||||
\u627e\u4e0d\u5230 {0} \u7684\u7c7b\u6587\u4ef6
|
||||
apt.err.CantFindClass=\u627e\u4e0d\u5230 {0} \u7684\u7c7b\u6587\u4ef6
|
||||
|
||||
apt.err.DeclarationCreation=\
|
||||
\u65e0\u6cd5\u4e3a\u6ce8\u91ca\u7c7b\u578b {0} \u521b\u5efa\u58f0\u660e
|
||||
apt.err.DeclarationCreation=\u65e0\u6cd5\u4e3a\u6ce8\u91ca\u7c7b\u578b {0} \u521b\u5efa\u58f0\u660e
|
||||
|
||||
# Print an error from the Messager
|
||||
apt.err.Messager=\
|
||||
{0}
|
||||
apt.err.Messager={0}
|
||||
|
||||
##
|
||||
## miscellaneous strings
|
||||
##
|
||||
|
||||
apt.misc.Problem=\
|
||||
\u6ce8\u91ca\u5904\u7406\u8fc7\u7a0b\u4e2d\u9047\u5230\u95ee\u9898\uff1b\n\u6709\u5173\u66f4\u591a\u4fe1\u606f\uff0c\u8bf7\u53c2\u89c1\u4e0b\u9762\u7684\u5806\u6808\u8ffd\u8e2a\u3002
|
||||
apt.misc.Deprecation=\n\u8b66\u544a\uff1a\u5728\u4e0b\u4e00\u4e2a JDK \u4e3b\u8981\u7248\u672c\u4e2d\uff0c\napt \u5de5\u5177\u53ca\u5176\u5173\u8054\u7684 API \u5c06\u88ab\u5220\u9664\u3002\u5176\u4e2d\u7684\u529f\u80fd\u5df2\u88ab javac \u4ee5\u53ca\n\u6807\u51c6\u5316\u6ce8\u91ca\u5904\u7406 API \njavax.annotation.processing \u548c javax.lang.model \u53d6\u4ee3\u3002\u5efa\u8bae\u7528\u6237\n\u6539\u7528 javac \u7684\u6ce8\u91ca\u5904\u7406\u529f\u80fd\uff1b\n\u6709\u5173\u8be6\u7ec6\u4fe1\u606f\uff0c\u8bf7\u53c2\u89c1 javac \u624b\u518c\u9875\u3002\n
|
||||
|
||||
apt.misc.SunMiscService=\
|
||||
\u67e5\u627e\u6ce8\u91ca\u5904\u7406\u5668\u5de5\u5382\u65f6\u51fa\u9519\uff1b\n\u8bf7\u67e5\u770b META-INF/\u670d\u52a1\u4fe1\u606f\u3002
|
||||
apt.misc.Problem=\u6ce8\u91ca\u5904\u7406\u8fc7\u7a0b\u4e2d\u9047\u5230\u95ee\u9898\uff1b\n\u6709\u5173\u66f4\u591a\u4fe1\u606f\uff0c\u8bf7\u53c2\u89c1\u4e0b\u9762\u7684\u5806\u6808\u8ffd\u8e2a\u3002
|
||||
|
||||
apt.misc.SunMiscService=\u67e5\u627e\u6ce8\u91ca\u5904\u7406\u5668\u5de5\u5382\u65f6\u51fa\u9519\uff1b\n\u8bf7\u67e5\u770b META-INF/\u670d\u52a1\u4fe1\u606f\u3002
|
||||
|
||||
# Print a notice from the Messager
|
||||
apt.note.Messager=\
|
||||
{0}
|
||||
apt.note.Messager={0}
|
||||
|
||||
##
|
||||
## warnings
|
||||
##
|
||||
|
||||
## All warning messages are preceded by the following string.
|
||||
apt.warn.warning=\
|
||||
\u8b66\u544a\uff1a
|
||||
apt.warn.warning=\u8b66\u544a\uff1a
|
||||
|
||||
apt.warn.AnnotationsWithoutProcessors=\
|
||||
\u4e0d\u5e26\u5904\u7406\u5668\u7684\u6ce8\u91ca\u7c7b\u578b\uff1a {0}
|
||||
apt.warn.AnnotationsWithoutProcessors=\u4e0d\u5e26\u5904\u7406\u5668\u7684\u6ce8\u91ca\u7c7b\u578b\uff1a {0}
|
||||
|
||||
apt.warn.BadFactory=\
|
||||
\u6ce8\u91ca\u5904\u7406\u5668\u5de5\u5382\u51fa\u73b0\u9519\u8bef\uff1a {0}
|
||||
apt.warn.BadFactory=\u6ce8\u91ca\u5904\u7406\u5668\u5de5\u5382\u51fa\u73b0\u9519\u8bef\uff1a {0}
|
||||
|
||||
apt.warn.BadParentDirectory=\
|
||||
\u65e0\u6cd5\u521b\u5efa {0} \u7684\u67d0\u4e9b\u7236\u76ee\u5f55
|
||||
apt.warn.BadParentDirectory=\u65e0\u6cd5\u521b\u5efa {0} \u7684\u67d0\u4e9b\u7236\u76ee\u5f55
|
||||
|
||||
apt.warn.FactoryCantInstantiate=\
|
||||
\u65e0\u6cd5\u5b9e\u4f8b\u5316\u5de5\u5382 "{0}" \u7684\u5b9e\u4f8b\u3002
|
||||
apt.warn.FactoryCantInstantiate=\u65e0\u6cd5\u5b9e\u4f8b\u5316\u5de5\u5382 "{0}" \u7684\u5b9e\u4f8b\u3002
|
||||
|
||||
apt.warn.FactoryWrongType=\
|
||||
\u6307\u5b9a\u7684\u5de5\u5382 "{0}" \u4e0d\u662f AnnotationProcessorFactory\u3002
|
||||
apt.warn.FactoryWrongType=\u6307\u5b9a\u7684\u5de5\u5382 "{0}" \u4e0d\u662f AnnotationProcessorFactory\u3002
|
||||
|
||||
apt.warn.FactoryNotFound=\
|
||||
\u5728\u641c\u7d22\u8def\u5f84\u4e2d\u627e\u4e0d\u5230\u6307\u5b9a\u7684 AnnotationProcessorFactory "{0}"\u3002
|
||||
apt.warn.FactoryNotFound=\u5728\u641c\u7d22\u8def\u5f84\u4e2d\u627e\u4e0d\u5230\u6307\u5b9a\u7684 AnnotationProcessorFactory "{0}"\u3002
|
||||
|
||||
apt.warn.FileReopening=\
|
||||
\u5c1d\u8bd5\u591a\u6b21\u521b\u5efa "{0}"
|
||||
apt.warn.FileReopening=\u5c1d\u8bd5\u591a\u6b21\u521b\u5efa "{0}"
|
||||
|
||||
apt.warn.IllegalFileName=\
|
||||
\u65e0\u6cd5\u521b\u5efa\u5e26\u6709\u975e\u6cd5\u540d\u79f0 "{0}" \u7684\u6587\u4ef6\u3002
|
||||
apt.warn.IllegalFileName=\u65e0\u6cd5\u521b\u5efa\u5e26\u6709\u975e\u6cd5\u540d\u79f0 "{0}" \u7684\u6587\u4ef6\u3002
|
||||
|
||||
apt.warn.MalformedSupportedString=\
|
||||
\u5de5\u5382\u8fd4\u56de\u4e0d\u89c4\u5219\u7684\u6ce8\u91ca\u652f\u6301\u5b57\u7b26\u4e32 "{0}"\u3002
|
||||
apt.warn.MalformedSupportedString=\u5de5\u5382\u8fd4\u56de\u4e0d\u89c4\u5219\u7684\u6ce8\u91ca\u652f\u6301\u5b57\u7b26\u4e32 "{0}"\u3002
|
||||
|
||||
apt.warn.NoNewFilesAfterRound=\
|
||||
\u5faa\u73af\u7ed3\u675f\u540e\u65e0\u6cd5\u521b\u5efa\u6587\u4ef6 "{0}"\u3002
|
||||
apt.warn.NoNewFilesAfterRound=\u5faa\u73af\u7ed3\u675f\u540e\u65e0\u6cd5\u521b\u5efa\u6587\u4ef6 "{0}"\u3002
|
||||
|
||||
# Print a warning from the Messager
|
||||
apt.warn.Messager=\
|
||||
{0}
|
||||
apt.warn.Messager={0}
|
||||
|
||||
apt.warn.NoAnnotationProcessors=\
|
||||
\u672a\u627e\u5230\u6ce8\u91ca\u5904\u7406\u5668\uff0c\u4f46\u5b58\u5728\u6ce8\u91ca\u3002
|
||||
apt.warn.NoAnnotationProcessors=\u672a\u627e\u5230\u6ce8\u91ca\u5904\u7406\u5668\uff0c\u4f46\u5b58\u5728\u6ce8\u91ca\u3002
|
||||
|
||||
apt.warn.NullProcessor=\
|
||||
\u5bf9\u4e8e\u67d0\u4e2a\u6ce8\u91ca\u5904\u7406\u5668\uff0c\u5de5\u5382 {0} \u8fd4\u56de\u7684\u503c\u4e3a null\u3002
|
||||
apt.warn.NullProcessor=\u5bf9\u4e8e\u67d0\u4e2a\u6ce8\u91ca\u5904\u7406\u5668\uff0c\u5de5\u5382 {0} \u8fd4\u56de\u7684\u503c\u4e3a null\u3002
|
||||
|
||||
apt.warn.CorrespondingClassFile=\
|
||||
\u5df2\u521b\u5efa\u4e0e\u6e90\u6587\u4ef6 "{0}" \u76f8\u5bf9\u5e94\u7684\u7c7b\u6587\u4ef6\u3002
|
||||
apt.warn.CorrespondingClassFile=\u5df2\u521b\u5efa\u4e0e\u6e90\u6587\u4ef6 "{0}" \u76f8\u5bf9\u5e94\u7684\u7c7b\u6587\u4ef6\u3002
|
||||
|
||||
apt.warn.CorrespondingSourceFile=\
|
||||
\u5df2\u521b\u5efa\u4e0e\u7c7b\u6587\u4ef6 "{0}" \u76f8\u5bf9\u5e94\u7684\u6e90\u6587\u4ef6\u3002
|
||||
apt.warn.CorrespondingSourceFile=\u5df2\u521b\u5efa\u4e0e\u7c7b\u6587\u4ef6 "{0}" \u76f8\u5bf9\u5e94\u7684\u6e90\u6587\u4ef6\u3002
|
||||
|
File diff suppressed because one or more lines are too long
@ -83,6 +83,17 @@ doclet.Deprecated_Constructors=\u5df2\u8fc7\u65f6\u7684\u6784\u9020\u65b9\u6cd5
|
||||
doclet.Deprecated_Methods=\u5df2\u8fc7\u65f6\u7684\u65b9\u6cd5
|
||||
doclet.Deprecated_Enum_Constants=\u5df2\u8fc7\u65f6\u7684\u679a\u4e3e\u5e38\u91cf
|
||||
doclet.Deprecated_Annotation_Type_Members=\u5df2\u8fc7\u65f6\u7684\u6ce8\u91ca\u7c7b\u578b\u5143\u7d20
|
||||
doclet.deprecated_classes=\u5df2\u8fc7\u65f6\u7684\u7c7b
|
||||
doclet.deprecated_enums=\u5df2\u8fc7\u65f6\u7684\u679a\u4e3e
|
||||
doclet.deprecated_interfaces=\u5df2\u8fc7\u65f6\u7684\u63a5\u53e3
|
||||
doclet.deprecated_exceptions=\u5df2\u8fc7\u65f6\u7684\u5f02\u5e38
|
||||
doclet.deprecated_annotation_types=\u5df2\u8fc7\u65f6\u7684\u6ce8\u91ca\u7c7b\u578b
|
||||
doclet.deprecated_errors=\u5df2\u8fc7\u65f6\u7684\u9519\u8bef
|
||||
doclet.deprecated_fields=\u5df2\u8fc7\u65f6\u7684\u5b57\u6bb5
|
||||
doclet.deprecated_constructors=\u5df2\u8fc7\u65f6\u7684\u6784\u9020\u51fd\u6570
|
||||
doclet.deprecated_methods=\u5df2\u8fc7\u65f6\u7684\u65b9\u6cd5
|
||||
doclet.deprecated_enum_constants=\u5df2\u8fc7\u65f6\u7684\u679a\u4e3e\u5e38\u91cf
|
||||
doclet.deprecated_annotation_type_members=\u5df2\u8fc7\u65f6\u7684\u6ce8\u91ca\u7c7b\u578b\u5143\u7d20
|
||||
doclet.Frame_Output=\u6846\u67b6\u8f93\u51fa
|
||||
doclet.Docs_generated_by_Javadoc=\u7531 Javadoc \u751f\u6210\u7684\u6587\u6863\u3002
|
||||
doclet.Generated_Docs_Untitled=\u751f\u6210\u7684\u6587\u6863\uff08\u65e0\u6807\u9898\uff09
|
||||
@ -171,6 +182,7 @@ doclet.Style_line_8=\u5de6\u4fa7\u7684\u6846\u67b6\u5217\u8868\u4e2d\u4f7f\u7528
|
||||
doclet.Style_line_9=\u6846\u67b6\u4e2d\u5c0f\u53f7 sans-serif \u5b57\u4f53\u7684\u793a\u4f8b
|
||||
doclet.Style_line_10=\u5bfc\u822a\u680f\u5b57\u4f53\u548c\u989c\u8272
|
||||
doclet.Style_line_11=\u6df1\u84dd\u8272
|
||||
doclet.Style_line_12=\u8868\u683c\u6807\u9898\u6837\u5f0f
|
||||
doclet.ClassUse_Packages.that.use.0=\u4f7f\u7528 {0} \u7684\u8f6f\u4ef6\u5305
|
||||
doclet.ClassUse_Uses.of.0.in.1={1} \u4e2d {0} \u7684\u4f7f\u7528
|
||||
doclet.ClassUse_Classes.in.0.used.by.1={1} \u4f7f\u7528\u7684 {0} \u4e2d\u7684\u7c7b
|
||||
@ -206,44 +218,7 @@ doclet.Groupname_already_used=\u5728 -group \u9009\u9879\u4e2d\uff0cgroupname \u
|
||||
doclet.Same_package_name_used=\u8f6f\u4ef6\u5305\u540d\u79f0\u5f62\u5f0f\u4f7f\u7528\u4e86\u4e24\u6b21\uff1a {0}
|
||||
doclet.Serialization.Excluded_Class=\u975e\u77ac\u6001\u5b57\u6bb5 {1} \u4f7f\u7528\u4e86\u6392\u9664\u7684\u7c7b {0}\u3002
|
||||
doclet.Serialization.Nonexcluded_Class=\u975e\u77ac\u6001\u5b57\u6bb5 {1} \u4f7f\u7528\u4e86\u9690\u85cf\u7684\u3001\u672a\u5305\u542b\u7684\u7c7b {0}\u3002
|
||||
doclet.usage=\u901a\u8fc7\u6807\u51c6 doclet \u63d0\u4f9b:\n\
|
||||
-d <directory> \u8f93\u51fa\u6587\u4ef6\u7684\u76ee\u6807\u76ee\u5f55\n\
|
||||
-use \u521b\u5efa\u7c7b\u548c\u5305\u7528\u6cd5\u9875\u9762\n\
|
||||
-version \u5305\u542b @version \u6bb5\n\
|
||||
-author \u5305\u542b @author \u6bb5\n\
|
||||
-docfilessubdirs \u9012\u5f52\u590d\u5236\u6587\u6863\u6587\u4ef6\u5b50\u76ee\u5f55\n\
|
||||
-splitindex \u5c06\u7d22\u5f15\u5206\u4e3a\u6bcf\u4e2a\u5b57\u6bcd\u5bf9\u5e94\u4e00\u4e2a\u6587\u4ef6\n\
|
||||
-windowtitle <text> \u6587\u6863\u7684\u6d4f\u89c8\u5668\u7a97\u53e3\u6807\u9898\n\
|
||||
-doctitle <html-code> \u5305\u542b\u6982\u8ff0\u9875\u9762\u7684\u6807\u9898\n\
|
||||
-header <html-code> \u5305\u542b\u6bcf\u4e2a\u9875\u9762\u7684\u9875\u7709\u6587\u672c\n\
|
||||
-footer <html-code> \u5305\u542b\u6bcf\u4e2a\u9875\u9762\u7684\u9875\u811a\u6587\u672c\n\
|
||||
-top <html-code> \u5305\u542b\u6bcf\u4e2a\u9875\u9762\u7684\u9876\u90e8\u6587\u672c\n\
|
||||
-bottom <html-code> \u5305\u542b\u6bcf\u4e2a\u9875\u9762\u7684\u5e95\u90e8\u6587\u672c\n\
|
||||
-link <url> \u521b\u5efa\u6307\u5411\u4f4d\u4e8e <url> \u7684 javadoc \u8f93\u51fa\u7684\u94fe\u63a5\n\
|
||||
-linkoffline <url> <url2> \u5229\u7528\u4f4d\u4e8e <url2> \u7684\u5305\u5217\u8868\u94fe\u63a5\u81f3\u4f4d\u4e8e <url> \u7684\u6587\u6863\n\
|
||||
-excludedocfilessubdir <name1>:..\u6392\u9664\u5177\u6709\u7ed9\u5b9a\u540d\u79f0\u7684\u6240\u6709\u6587\u6863\u6587\u4ef6\u5b50\u76ee\u5f55\u3002\n\
|
||||
-group <name> <p1>:<p2>..\u5728\u6982\u8ff0\u9875\u9762\u4e2d\uff0c\u5c06\u6307\u5b9a\u7684\u5305\u5206\u7ec4\n\
|
||||
-nocomment \u4e0d\u751f\u6210\u63cf\u8ff0\u548c\u6807\u8bb0\uff0c\u53ea\u751f\u6210\u58f0\u660e\u3002\n\
|
||||
-nodeprecated \u4e0d\u5305\u542b @deprecated \u4fe1\u606f\n\
|
||||
-noqualifier <name1>:<name2>:...\u8f93\u51fa\u4e2d\u4e0d\u5305\u62ec\u6307\u5b9a\u9650\u5b9a\u7b26\u7684\u5217\u8868\u3002\n\
|
||||
-nosince \u4e0d\u5305\u542b @since \u4fe1\u606f\n\
|
||||
-notimestamp \u4e0d\u5305\u542b\u9690\u85cf\u65f6\u95f4\u6233\n\
|
||||
-nodeprecatedlist \u4e0d\u751f\u6210\u5df2\u8fc7\u65f6\u7684\u5217\u8868\n\
|
||||
-notree \u4e0d\u751f\u6210\u7c7b\u5206\u5c42\u7ed3\u6784\n\
|
||||
-noindex \u4e0d\u751f\u6210\u7d22\u5f15\n\
|
||||
-nohelp \u4e0d\u751f\u6210\u5e2e\u52a9\u94fe\u63a5\n\
|
||||
-nonavbar \u4e0d\u751f\u6210\u5bfc\u822a\u680f\n\
|
||||
-serialwarn \u751f\u6210\u6709\u5173 @serial \u6807\u8bb0\u7684\u8b66\u544a\n\
|
||||
-tag <name>:<locations>:<header> \u6307\u5b9a\u5355\u4e2a\u53c2\u6570\u81ea\u5b9a\u4e49\u6807\u8bb0\n\
|
||||
-taglet \u8981\u6ce8\u518c\u7684 Taglet \u7684\u5168\u9650\u5b9a\u540d\u79f0\n\
|
||||
-tagletpath Taglet \u7684\u8def\u5f84\n\
|
||||
-charset <charset> \u7528\u4e8e\u8de8\u5e73\u53f0\u67e5\u770b\u751f\u6210\u7684\u6587\u6863\u7684\u5b57\u7b26\u96c6\u3002\n\
|
||||
-helpfile <file> \u5305\u542b\u5e2e\u52a9\u94fe\u63a5\u6240\u94fe\u63a5\u5230\u7684\u6587\u4ef6\n\
|
||||
-linksource \u4ee5 HTML \u683c\u5f0f\u751f\u6210\u6e90\u6587\u4ef6\n\
|
||||
-sourcetab <tab length> \u6307\u5b9a\u6e90\u4e2d\u6bcf\u4e2a\u5236\u8868\u7b26\u5360\u636e\u7684\u7a7a\u683c\u6570\n\
|
||||
-keywords \u4f7f\u5305\u3001\u7c7b\u548c\u6210\u5458\u4fe1\u606f\u9644\u5e26 HTML \u5143\u6807\u8bb0\n\
|
||||
-stylesheetfile <path> \u7528\u4e8e\u66f4\u6539\u751f\u6210\u6587\u6863\u7684\u6837\u5f0f\u7684\u6587\u4ef6\n\
|
||||
-docencoding <name> \u8f93\u51fa\u7f16\u7801\u540d\u79f0
|
||||
doclet.usage=\u901a\u8fc7\u6807\u51c6 doclet \u63d0\u4f9b:\n-d <directory> \u8f93\u51fa\u6587\u4ef6\u7684\u76ee\u6807\u76ee\u5f55\n-use \u521b\u5efa\u7c7b\u548c\u5305\u7528\u6cd5\u9875\u9762\n-version \u5305\u542b @version \u6bb5\n-author \u5305\u542b @author \u6bb5\n-docfilessubdirs \u9012\u5f52\u590d\u5236\u6587\u6863\u6587\u4ef6\u5b50\u76ee\u5f55\n-splitindex \u5c06\u7d22\u5f15\u5206\u4e3a\u6bcf\u4e2a\u5b57\u6bcd\u5bf9\u5e94\u4e00\u4e2a\u6587\u4ef6\n-windowtitle <text> \u6587\u6863\u7684\u6d4f\u89c8\u5668\u7a97\u53e3\u6807\u9898\n-doctitle <html-code> \u5305\u542b\u6982\u8ff0\u9875\u9762\u7684\u6807\u9898\n-header <html-code> \u5305\u542b\u6bcf\u4e2a\u9875\u9762\u7684\u9875\u7709\u6587\u672c\n-footer <html-code> \u5305\u542b\u6bcf\u4e2a\u9875\u9762\u7684\u9875\u811a\u6587\u672c\n-top <html-code> \u5305\u542b\u6bcf\u4e2a\u9875\u9762\u7684\u9876\u90e8\u6587\u672c\n-bottom <html-code> \u5305\u542b\u6bcf\u4e2a\u9875\u9762\u7684\u5e95\u90e8\u6587\u672c\n-link <url> \u521b\u5efa\u6307\u5411\u4f4d\u4e8e <url> \u7684 javadoc \u8f93\u51fa\u7684\u94fe\u63a5\n-linkoffline <url> <url2> \u5229\u7528\u4f4d\u4e8e <url2> \u7684\u5305\u5217\u8868\u94fe\u63a5\u81f3\u4f4d\u4e8e <url> \u7684\u6587\u6863\n-excludedocfilessubdir <name1>:..\u6392\u9664\u5177\u6709\u7ed9\u5b9a\u540d\u79f0\u7684\u6240\u6709\u6587\u6863\u6587\u4ef6\u5b50\u76ee\u5f55\u3002\n-group <name> <p1>:<p2>..\u5728\u6982\u8ff0\u9875\u9762\u4e2d\uff0c\u5c06\u6307\u5b9a\u7684\u5305\u5206\u7ec4\n-nocomment \u4e0d\u751f\u6210\u63cf\u8ff0\u548c\u6807\u8bb0\uff0c\u53ea\u751f\u6210\u58f0\u660e\u3002\n-nodeprecated \u4e0d\u5305\u542b @deprecated \u4fe1\u606f\n-noqualifier <name1>:<name2>:...\u8f93\u51fa\u4e2d\u4e0d\u5305\u62ec\u6307\u5b9a\u9650\u5b9a\u7b26\u7684\u5217\u8868\u3002\n-nosince \u4e0d\u5305\u542b @since \u4fe1\u606f\n-notimestamp \u4e0d\u5305\u542b\u9690\u85cf\u65f6\u95f4\u6233\n-nodeprecatedlist \u4e0d\u751f\u6210\u5df2\u8fc7\u65f6\u7684\u5217\u8868\n-notree \u4e0d\u751f\u6210\u7c7b\u5206\u5c42\u7ed3\u6784\n-noindex \u4e0d\u751f\u6210\u7d22\u5f15\n-nohelp \u4e0d\u751f\u6210\u5e2e\u52a9\u94fe\u63a5\n-nonavbar \u4e0d\u751f\u6210\u5bfc\u822a\u680f\n-serialwarn \u751f\u6210\u6709\u5173 @serial \u6807\u8bb0\u7684\u8b66\u544a\n-tag <name>:<locations>:<header> \u6307\u5b9a\u5355\u4e2a\u53c2\u6570\u81ea\u5b9a\u4e49\u6807\u8bb0\n-taglet \u8981\u6ce8\u518c\u7684 Taglet \u7684\u5168\u9650\u5b9a\u540d\u79f0\n-tagletpath Taglet \u7684\u8def\u5f84\n-charset <charset> \u7528\u4e8e\u8de8\u5e73\u53f0\u67e5\u770b\u751f\u6210\u7684\u6587\u6863\u7684\u5b57\u7b26\u96c6\u3002\n-helpfile <\u6587\u4ef6> \u5305\u542b\u5e2e\u52a9\u94fe\u63a5\u6240\u94fe\u63a5\u5230\u7684\u6587\u4ef6\n-linksource \u4ee5 HTML \u683c\u5f0f\u751f\u6210\u6e90\u6587\u4ef6\n-sourcetab <tab length> \u6307\u5b9a\u6e90\u4e2d\u6bcf\u4e2a\u5236\u8868\u7b26\u5360\u636e\u7684\u7a7a\u683c\u6570\n-keywords \u4f7f\u5305\u3001\u7c7b\u548c\u6210\u5458\u4fe1\u606f\u9644\u5e26 HTML \u5143\u6807\u8bb0\n-stylesheetfile <\u8def\u5f84> \u7528\u4e8e\u66f4\u6539\u751f\u6210\u6587\u6863\u7684\u6837\u5f0f\u7684\u6587\u4ef6\n-docencoding <\u540d\u79f0> \u8f93\u51fa\u7f16\u7801\u540d\u79f0
|
||||
|
||||
|
||||
|
||||
|
@ -11,10 +11,8 @@ doclet.Class_0_implements_serializable=Class {0} implements Serializable
|
||||
doclet.Class_0_extends_implements_serializable=Class {0} extends {1} implements Serializable
|
||||
doclet.Option_conflict=\u30aa\u30d7\u30b7\u30e7\u30f3 {0} \u304c {1} \u3068\u77db\u76fe\u3057\u307e\u3059
|
||||
doclet.Option_reuse=\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u518d\u4f7f\u7528\u3055\u308c\u3066\u3044\u307e\u3059: {0}
|
||||
doclet.exception_encountered= {0} \u3092\u691c\u51fa \n\
|
||||
\t\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210\u4e2d: {1}
|
||||
doclet.perform_copy_exception_encountered= \u30b3\u30d4\u30fc\u5b9f\u884c\u4e2d\u306b {0} \u3092 \n\
|
||||
\u691c\u51fa\u3057\u307e\u3057\u305f\u3002
|
||||
doclet.exception_encountered= {0} \u3092\u691c\u51fa \n\t\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210\u4e2d: {1}
|
||||
doclet.perform_copy_exception_encountered= \u30b3\u30d4\u30fc\u5b9f\u884c\u4e2d\u306b {0} \u3092 \n\u691c\u51fa\u3057\u307e\u3057\u305f\u3002
|
||||
doclet.File_not_found=\u30d5\u30a1\u30a4\u30eb\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093: {0}
|
||||
doclet.Copy_Overwrite_warning=\u30d5\u30a1\u30a4\u30eb {0} \u306f\u540c\u3058\u540d\u524d\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308b\u306e\u3067 {1} \u306b\u30b3\u30d4\u30fc\u3055\u308c\u307e\u305b\u3093\u3067\u3057\u305f...
|
||||
doclet.Copying_File_0_To_Dir_1=\u30d5\u30a1\u30a4\u30eb {0} \u3092\u30c7\u30a3\u30ec\u30af\u30c8\u30ea {1} \u306b\u30b3\u30d4\u30fc\u4e2d...
|
||||
@ -81,6 +79,8 @@ doclet.AnnotationTypes=\u6ce8\u91c8\u578b
|
||||
doclet.Exceptions=\u4f8b\u5916
|
||||
doclet.Errors=\u30a8\u30e9\u30fc
|
||||
doclet.Classes=\u30af\u30e9\u30b9
|
||||
doclet.Packages=\u30d1\u30c3\u30b1\u30fc\u30b8
|
||||
doclet.packages=\u30d1\u30c3\u30b1\u30fc\u30b8
|
||||
doclet.All_Classes=\u3059\u3079\u3066\u306e\u30af\u30e9\u30b9
|
||||
doclet.All_Superinterfaces=\u3059\u3079\u3066\u306e\u30b9\u30fc\u30d1\u30fc\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9:
|
||||
doclet.All_Implemented_Interfaces=\u3059\u3079\u3066\u306e\u5b9f\u88c5\u3055\u308c\u305f\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9:
|
||||
@ -91,14 +91,20 @@ doclet.Interface=\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9
|
||||
doclet.Class=\u30af\u30e9\u30b9
|
||||
doclet.AnnotationType=\u6ce8\u91c8\u578b
|
||||
doclet.annotationtype=\u6ce8\u91c8\u578b
|
||||
doclet.annotationtypes=\u6ce8\u91c8\u578b
|
||||
doclet.Enum=\u5217\u6319\u578b
|
||||
doclet.enum=\u5217\u6319
|
||||
doclet.enums=\u5217\u6319\u578b
|
||||
doclet.interface=\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9
|
||||
doclet.interfaces=\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9
|
||||
doclet.class=\u30af\u30e9\u30b9
|
||||
doclet.classes=\u30af\u30e9\u30b9
|
||||
doclet.Error=\u30a8\u30e9\u30fc
|
||||
doclet.error=\u30a8\u30e9\u30fc
|
||||
doclet.errors=\u30a8\u30e9\u30fc
|
||||
doclet.Exception=\u4f8b\u5916
|
||||
doclet.exception=\u4f8b\u5916
|
||||
doclet.exceptions=\u4f8b\u5916
|
||||
doclet.extended_by=\u4e0a\u4f4d\u3092\u62e1\u5f35
|
||||
doclet.extends=extends
|
||||
doclet.Package_private=(package private)
|
||||
@ -124,24 +130,34 @@ doclet.value_tag_invalid_reference={0} (@value \u30bf\u30b0\u306b\u3088\u308a\u5
|
||||
doclet.value_tag_invalid_constant=@value \u30bf\u30b0 ({0} \u3092\u53c2\u7167\u3057\u3066\u3044\u308b) \u306f\u5b9a\u6570\u5185\u3067\u306e\u307f\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002
|
||||
doclet.dest_dir_create=\u5b9b\u5148\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4f5c\u6210\u4e2d: "{0}"
|
||||
doclet.in={1} \u306e {0}
|
||||
doclet.Use_Table_Summary=\u8868\u3001\u4e00\u89a7 {0}\u3001\u8aac\u660e\u3092\u4f7f\u7528
|
||||
doclet.Constants_Table_Summary={0} \u8868\u3001\u5b9a\u6570\u30d5\u30a3\u30fc\u30eb\u30c9\u4e00\u89a7\u3001\u5024
|
||||
doclet.Member_Table_Summary={0} \u8868\u3001\u4e00\u89a7 {1}\u3001\u8aac\u660e
|
||||
doclet.fields=\u30d5\u30a3\u30fc\u30eb\u30c9
|
||||
doclet.constructors=\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf
|
||||
doclet.methods=\u30e1\u30bd\u30c3\u30c9
|
||||
doclet.annotation_type_optional_members=\u4efb\u610f\u8981\u7d20
|
||||
doclet.annotation_type_required_members=\u5fc5\u9808\u8981\u7d20
|
||||
doclet.enum_constants=\u5217\u6319\u578b\u5b9a\u6570
|
||||
doclet.nested_classes=\u5165\u308c\u5b50\u306e\u30af\u30e9\u30b9
|
||||
doclet.subclasses=\u30b5\u30d6\u30af\u30e9\u30b9
|
||||
doclet.subinterfaces=\u30b5\u30d6\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9
|
||||
doclet.Modifier=\u4fee\u98fe\u5b50
|
||||
doclet.Type=\u30bf\u30a4\u30d7
|
||||
doclet.Field=\u30d5\u30a3\u30fc\u30eb\u30c9
|
||||
doclet.Constructor=\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf
|
||||
doclet.Method=\u30e1\u30bd\u30c3\u30c9
|
||||
doclet.Annotation_Type_Optional_Member=\u4efb\u610f\u8981\u7d20
|
||||
doclet.Annotation_Type_Required_Member=\u5fc5\u9808\u8981\u7d20
|
||||
doclet.Annotation_Type_Member=\u6ce8\u91c8\u578b\u8981\u7d20
|
||||
doclet.Enum_Constant=\u5217\u6319\u578b\u5b9a\u6570
|
||||
doclet.Class=\u30af\u30e9\u30b9
|
||||
doclet.Description=\u8aac\u660e
|
||||
doclet.ConstantField=\u5b9a\u6570\u30d5\u30a3\u30fc\u30eb\u30c9
|
||||
doclet.Value=\u5024
|
||||
doclet.0_and_1={0} \u304a\u3088\u3073 {1}
|
||||
|
||||
#Documentation for Enums
|
||||
doclet.enum_values_doc=\n\
|
||||
\u3053\u306e\u5217\u6319\u578b\u306e\u5b9a\u6570\u3092\u542b\u3080\u914d\u5217\u3092\u5ba3\u8a00\u3055\u308c\u3066\u3044\u308b\u9806\u5e8f\u3067\u8fd4\u3057\u307e\u3059\u3002\n\
|
||||
\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u306f\u6b21\u306e\u3088\u3046\u306b\u3057\u3066\u5b9a\u6570\u3092\u53cd\u5fa9\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3067\u304d\u307e\u3059:\n\
|
||||
<pre>\n\
|
||||
for ({0} c : {0}.values())\n\
|
||||
System.out.println(c);\n\
|
||||
</pre>\n\
|
||||
@return \u3053\u306e\u5217\u6319\u578b\u306e\u5b9a\u6570\u3092\u5ba3\u8a00\u3055\u308c\u3066\u3044\u308b\u9806\u5e8f\u3067\u542b\u3080\u914d\u5217
|
||||
doclet.enum_values_doc=\n\u3053\u306e\u5217\u6319\u578b\u306e\u5b9a\u6570\u3092\u542b\u3080\u914d\u5217\u3092\u5ba3\u8a00\u3055\u308c\u3066\u3044\u308b\u9806\u5e8f\u3067\u8fd4\u3057\u307e\u3059\u3002\n\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u306f\u6b21\u306e\u3088\u3046\u306b\u3057\u3066\u5b9a\u6570\u3092\u53cd\u5fa9\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3067\u304d\u307e\u3059:\n<pre>\nfor ({0} c : {0}.values())\n System.out.println(c);\n</pre>\n@return \u3053\u306e\u5217\u6319\u578b\u306e\u5b9a\u6570\u3092\u5ba3\u8a00\u3055\u308c\u3066\u3044\u308b\u9806\u5e8f\u3067\u542b\u3080\u914d\u5217
|
||||
|
||||
doclet.enum_valueof_doc=\n\
|
||||
\u6307\u5b9a\u3057\u305f\u540d\u524d\u3092\u6301\u3064\u3053\u306e\u578b\u306e\u5217\u6319\u578b\u5b9a\u6570\u3092\u8fd4\u3057\u307e\u3059\u3002\n\
|
||||
\u6587\u5b57\u5217\u306f\u3001\u3053\u306e\u578b\u306e\u5217\u6319\u578b\u5b9a\u6570\u3092\u5ba3\u8a00\u3059\u308b\u306e\u306b\u4f7f\u7528\u3057\u305f\u8b58\u5225\u5b50\u3068\u53b3\u5bc6\u306b\n\
|
||||
\u4e00\u81f4\u3057\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059 (\u4f59\u5206\u306a\u7a7a\u767d\u6587\u5b57\u3092\u542b\u3081\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093)\u3002\n\
|
||||
\n\
|
||||
@param name \u8fd4\u3055\u308c\u308b\u5217\u6319\u578b\u5b9a\u6570\u306e\u540d\u524d\n\
|
||||
@return \u6307\u5b9a\u3055\u308c\u305f\u540d\u524d\u3092\u6301\u3064\u5217\u6319\u578b\u5b9a\u6570\n\
|
||||
@throws IllegalArgumentException \u6307\u5b9a\u3055\u308c\u305f\u540d\u524d\u3092\u6301\u3064\u5b9a\u6570\u3092\n\
|
||||
\u3053\u306e\u5217\u6319\u578b\u304c\u6301\u3063\u3066\u3044\u306a\u3044\u5834\u5408\n\
|
||||
@throws NullPointerException \u5f15\u6570\u304c null \u306e\u5834\u5408
|
||||
doclet.enum_valueof_doc=\n\u6307\u5b9a\u3057\u305f\u540d\u524d\u3092\u6301\u3064\u3053\u306e\u578b\u306e\u5217\u6319\u578b\u5b9a\u6570\u3092\u8fd4\u3057\u307e\u3059\u3002\n\u6587\u5b57\u5217\u306f\u3001\u3053\u306e\u578b\u306e\u5217\u6319\u578b\u5b9a\u6570\u3092\u5ba3\u8a00\u3059\u308b\u306e\u306b\u4f7f\u7528\u3057\u305f\u8b58\u5225\u5b50\u3068\u53b3\u5bc6\u306b\n\u4e00\u81f4\u3057\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059 (\u4f59\u5206\u306a\u7a7a\u767d\u6587\u5b57\u3092\u542b\u3081\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093)\u3002\n\n@param name \u8fd4\u3055\u308c\u308b\u5217\u6319\u578b\u5b9a\u6570\u306e\u540d\u524d\n@return \u6307\u5b9a\u3055\u308c\u305f\u540d\u524d\u3092\u6301\u3064\u5217\u6319\u578b\u5b9a\u6570\n@throws IllegalArgumentException \u6307\u5b9a\u3055\u308c\u305f\u540d\u524d\u3092\u6301\u3064\u5b9a\u6570\u3092\n\u3053\u306e\u5217\u6319\u578b\u304c\u6301\u3063\u3066\u3044\u306a\u3044\u5834\u5408\n@throws NullPointerException \u5f15\u6570\u304c null \u306e\u5834\u5408
|
||||
|
@ -11,10 +11,8 @@ doclet.Class_0_implements_serializable=\u7c7b {0} \u5b9e\u73b0 Serializable
|
||||
doclet.Class_0_extends_implements_serializable=\u7c7b {0} \u7ee7\u627f {1} \u5b9e\u73b0 Serializable
|
||||
doclet.Option_conflict=\u9009\u9879 {0} \u4e0e {1} \u51b2\u7a81
|
||||
doclet.Option_reuse=\u91cd\u590d\u4f7f\u7528\u7684\u9009\u9879\uff1a {0}
|
||||
doclet.exception_encountered= \u5c1d\u8bd5\u521b\u5efa\u6587\u4ef6 {1} \u65f6 \n\
|
||||
\t\u9047\u5230 {0}
|
||||
doclet.perform_copy_exception_encountered= \u6267\u884c\u590d\u5236\u65f6 \n\
|
||||
\u9047\u5230{0} \u3002
|
||||
doclet.exception_encountered= \u5c1d\u8bd5\u521b\u5efa\u6587\u4ef6 {1} \u65f6 \n\t\u9047\u5230 {0}
|
||||
doclet.perform_copy_exception_encountered= \u6267\u884c\u590d\u5236\u65f6 \n\u9047\u5230{0} \u3002
|
||||
doclet.File_not_found=\u627e\u4e0d\u5230\u6587\u4ef6\uff1a {0}
|
||||
doclet.Copy_Overwrite_warning=\u672a\u5c06\u6587\u4ef6 {0} \u590d\u5236\u5230 {1}\uff0c\u56e0\u4e3a\u73b0\u6709\u6587\u4ef6\u5177\u6709\u76f8\u540c\u540d\u79f0...
|
||||
doclet.Copying_File_0_To_Dir_1=\u6b63\u5728\u5c06\u6587\u4ef6 {0} \u590d\u5236\u5230\u76ee\u5f55 {1}...
|
||||
@ -81,6 +79,8 @@ doclet.AnnotationTypes=\u6ce8\u91ca\u7c7b\u578b
|
||||
doclet.Exceptions=\u5f02\u5e38
|
||||
doclet.Errors=\u9519\u8bef
|
||||
doclet.Classes=\u7c7b
|
||||
doclet.Packages=\u8f6f\u4ef6\u5305
|
||||
doclet.packages=\u8f6f\u4ef6\u5305
|
||||
doclet.All_Classes=\u6240\u6709\u7c7b
|
||||
doclet.All_Superinterfaces=\u6240\u6709\u8d85\u7ea7\u63a5\u53e3\uff1a
|
||||
doclet.All_Implemented_Interfaces=\u6240\u6709\u5df2\u5b9e\u73b0\u7684\u63a5\u53e3\uff1a
|
||||
@ -91,14 +91,20 @@ doclet.Interface=\u63a5\u53e3
|
||||
doclet.Class=\u7c7b
|
||||
doclet.AnnotationType=\u6ce8\u91ca\u7c7b\u578b
|
||||
doclet.annotationtype=\u6ce8\u91ca\u7c7b\u578b
|
||||
doclet.annotationtypes=\u6ce8\u91ca\u7c7b\u578b
|
||||
doclet.Enum=\u679a\u4e3e
|
||||
doclet.enum=\u679a\u4e3e
|
||||
doclet.enums=\u679a\u4e3e
|
||||
doclet.interface=\u63a5\u53e3
|
||||
doclet.interfaces=\u63a5\u53e3
|
||||
doclet.class=\u7c7b
|
||||
doclet.classes=\u7c7b
|
||||
doclet.Error=\u9519\u8bef
|
||||
doclet.error=\u9519\u8bef
|
||||
doclet.errors=\u9519\u8bef
|
||||
doclet.Exception=\u5f02\u5e38
|
||||
doclet.exception=\u5f02\u5e38
|
||||
doclet.exceptions=\u5f02\u5e38
|
||||
doclet.extended_by=\u7ee7\u627f\u8005
|
||||
doclet.extends=\u7ee7\u627f
|
||||
doclet.Package_private=\uff08\u4e13\u7528\u8f6f\u4ef6\u5305\uff09
|
||||
@ -124,27 +130,34 @@ doclet.value_tag_invalid_reference={0}\uff08\u7531 @value \u6807\u8bb0\u5f15\u75
|
||||
doclet.value_tag_invalid_constant=@value \u6807\u8bb0\uff08\u5f15\u7528 {0}\uff09\u53ea\u80fd\u5728\u5e38\u91cf\u4e2d\u4f7f\u7528\u3002
|
||||
doclet.dest_dir_create=\u6b63\u5728\u521b\u5efa\u76ee\u6807\u76ee\u5f55\uff1a "{0}"
|
||||
doclet.in={1} \u4e2d\u7684 {0}
|
||||
doclet.Use_Table_Summary=\u4f7f\u7528\u8868\u683c\uff0c\u5217\u51fa {0} \u548c\u8bf4\u660e
|
||||
doclet.Constants_Table_Summary={0} \u8868\u683c\uff0c\u5217\u51fa\u5e38\u91cf\u5b57\u6bb5\u548c\u503c
|
||||
doclet.Member_Table_Summary={0} \u8868\u683c\uff0c\u5217\u51fa {1} \u548c\u8bf4\u660e
|
||||
doclet.fields=\u5b57\u6bb5
|
||||
doclet.constructors=\u6784\u9020\u51fd\u6570
|
||||
doclet.methods=\u65b9\u6cd5
|
||||
doclet.annotation_type_optional_members=\u53ef\u9009\u5143\u7d20
|
||||
doclet.annotation_type_required_members=\u5fc5\u9700\u5143\u7d20
|
||||
doclet.enum_constants=\u679a\u4e3e\u5e38\u91cf
|
||||
doclet.nested_classes=\u5d4c\u5957\u7c7b
|
||||
doclet.subclasses=\u5b50\u7c7b
|
||||
doclet.subinterfaces=\u5b50\u63a5\u53e3
|
||||
doclet.Modifier=\u4fee\u9970\u7b26
|
||||
doclet.Type=\u7c7b\u578b
|
||||
doclet.Field=\u5b57\u6bb5
|
||||
doclet.Constructor=\u6784\u9020\u51fd\u6570
|
||||
doclet.Method=\u65b9\u6cd5
|
||||
doclet.Annotation_Type_Optional_Member=\u53ef\u9009\u5143\u7d20
|
||||
doclet.Annotation_Type_Required_Member=\u5fc5\u9700\u5143\u7d20
|
||||
doclet.Annotation_Type_Member=\u6ce8\u91ca\u7c7b\u578b\u5143\u7d20
|
||||
doclet.Enum_Constant=\u679a\u4e3e\u5e38\u91cf
|
||||
doclet.Class=\u7c7b
|
||||
doclet.Description=\u63cf\u8ff0
|
||||
doclet.ConstantField=\u5e38\u91cf\u5b57\u6bb5
|
||||
doclet.Value=\u503c
|
||||
doclet.0_and_1={0} \u548c {1}
|
||||
|
||||
#Documentation for Enums
|
||||
doclet.enum_values_doc=\n\
|
||||
\u6309\u7167\u58f0\u660e\u8be5\u679a\u4e3e\u7c7b\u578b\u7684\u5e38\u91cf\u7684\u987a\u5e8f\uff0c\u8fd4\u56de\n\
|
||||
\u5305\u542b\u8fd9\u4e9b\u5e38\u91cf\u7684\u6570\u7ec4\u3002\u8be5\u65b9\u6cd5\u53ef\u7528\u4e8e\u8fed\u4ee3\n\
|
||||
\u5e38\u91cf\uff0c\u5982\u4e0b\u6240\u793a\uff1a\n\
|
||||
<pre>\n\
|
||||
for ({0} c : {0}.values())\n\
|
||||
System.out.println(c);\n\
|
||||
</pre>\n\
|
||||
@\u6309\u7167\u58f0\u660e\u8be5\u679a\u4e3e\u7c7b\u578b\u7684\u5e38\u91cf\u7684\u987a\u5e8f\uff0c\u8fd4\u56de\n\
|
||||
\u5305\u542b\u8fd9\u4e9b\u5e38\u91cf\u7684\u6570\u7ec4
|
||||
doclet.enum_values_doc=\n\u6309\u7167\u58f0\u660e\u8be5\u679a\u4e3e\u7c7b\u578b\u7684\u5e38\u91cf\u7684\u987a\u5e8f\uff0c\u8fd4\u56de\n\u5305\u542b\u8fd9\u4e9b\u5e38\u91cf\u7684\u6570\u7ec4\u3002\u8be5\u65b9\u6cd5\u53ef\u7528\u4e8e\u8fed\u4ee3\n\u5e38\u91cf\uff0c\u5982\u4e0b\u6240\u793a\uff1a\n<pre>\nfor ({0} c : {0}.values())\n System.out.println(c);\n</pre>\n@\u6309\u7167\u58f0\u660e\u8be5\u679a\u4e3e\u7c7b\u578b\u7684\u5e38\u91cf\u7684\u987a\u5e8f\uff0c\u8fd4\u56de\n\u5305\u542b\u8fd9\u4e9b\u5e38\u91cf\u7684\u6570\u7ec4
|
||||
|
||||
doclet.enum_valueof_doc=\n\
|
||||
\u8fd4\u56de\u5e26\u6709\u6307\u5b9a\u540d\u79f0\u7684\u8be5\u7c7b\u578b\u7684\u679a\u4e3e\u5e38\u91cf\u3002\n\
|
||||
\u5b57\u7b26\u4e32\u5fc5\u987b\u4e0e\u7528\u4e8e\u58f0\u660e\u8be5\u7c7b\u578b\u7684\u679a\u4e3e\u5e38\u91cf\u7684\n\
|
||||
\u6807\u8bc6\u7b26<I>\u5b8c\u5168</I>\u5339\u914d\u3002\uff08\u4e0d\u5141\u8bb8\u6709\u591a\u4f59\n\
|
||||
\u7684\u7a7a\u683c\u3002\uff09\n\
|
||||
\n\
|
||||
@param name \u8981\u8fd4\u56de\u7684\u679a\u4e3e\u5e38\u91cf\u7684\u540d\u79f0\u3002\n\
|
||||
@return \u8fd4\u56de\u5e26\u6709\u6307\u5b9a\u540d\u79f0\u7684\u679a\u4e3e\u5e38\u91cf\n\
|
||||
@throws \u5982\u679c\u8be5\u679a\u4e3e\u7c7b\u578b\u6ca1\u6709\u5e26\u6709\u6307\u5b9a\u540d\u79f0\u7684\u5e38\u91cf\uff0c\n\
|
||||
\u5219\u629b\u51fa IllegalArgumentException
|
||||
@throws \u5982\u679c\u53c2\u6570\u4e3a\u7a7a\u5219\u629b\u51fa NullPointerException
|
||||
doclet.enum_valueof_doc=\n\u8fd4\u56de\u5e26\u6709\u6307\u5b9a\u540d\u79f0\u7684\u8be5\u7c7b\u578b\u7684\u679a\u4e3e\u5e38\u91cf\u3002\n\u5b57\u7b26\u4e32\u5fc5\u987b\u4e0e\u7528\u4e8e\u58f0\u660e\u8be5\u7c7b\u578b\u7684\u679a\u4e3e\u5e38\u91cf\u7684\n\u6807\u8bc6\u7b26<I>\u5b8c\u5168</I>\u5339\u914d\u3002\uff08\u4e0d\u5141\u8bb8\u6709\u591a\u4f59\n\u7684\u7a7a\u683c\u3002\uff09\n\n@param name \u8981\u8fd4\u56de\u7684\u679a\u4e3e\u5e38\u91cf\u7684\u540d\u79f0\u3002\n@return \u8fd4\u56de\u5e26\u6709\u6307\u5b9a\u540d\u79f0\u7684\u679a\u4e3e\u5e38\u91cf\n@throws \u5982\u679c\u8be5\u679a\u4e3e\u7c7b\u578b\u6ca1\u6709\u5e26\u6709\u6307\u5b9a\u540d\u79f0\u7684\u5e38\u91cf\uff0c\n\u5219\u629b\u51fa IllegalArgumentException
|
||||
|
@ -225,6 +225,13 @@ public abstract class Symbol implements Element {
|
||||
(owner.kind == TYP && owner.isLocal());
|
||||
}
|
||||
|
||||
/** Has this symbol an empty name? This includes anonymous
|
||||
* inner classses.
|
||||
*/
|
||||
public boolean isAnonymous() {
|
||||
return name.isEmpty();
|
||||
}
|
||||
|
||||
/** Is this symbol a constructor?
|
||||
*/
|
||||
public boolean isConstructor() {
|
||||
|
@ -72,6 +72,7 @@ public class Attr extends JCTree.Visitor {
|
||||
final Log log;
|
||||
final Symtab syms;
|
||||
final Resolve rs;
|
||||
final Infer infer;
|
||||
final Check chk;
|
||||
final MemberEnter memberEnter;
|
||||
final TreeMaker make;
|
||||
@ -100,6 +101,7 @@ public class Attr extends JCTree.Visitor {
|
||||
memberEnter = MemberEnter.instance(context);
|
||||
make = TreeMaker.instance(context);
|
||||
enter = Enter.instance(context);
|
||||
infer = Infer.instance(context);
|
||||
cfolder = ConstFold.instance(context);
|
||||
target = Target.instance(context);
|
||||
types = Types.instance(context);
|
||||
@ -207,21 +209,6 @@ public class Attr extends JCTree.Visitor {
|
||||
return owntype;
|
||||
}
|
||||
|
||||
Type checkReturn(JCTree tree, Type owntype, int ownkind, int pkind, Type pt) {
|
||||
if (owntype.tag != ERROR && pt.tag != METHOD && pt.tag != FORALL) {
|
||||
if ((ownkind & ~pkind) == 0) {
|
||||
owntype = chk.checkReturnType(tree.pos(), owntype, pt);
|
||||
} else {
|
||||
log.error(tree.pos(), "unexpected.type",
|
||||
kindNames(pkind),
|
||||
kindName(ownkind));
|
||||
owntype = types.createErrorType(owntype);
|
||||
}
|
||||
}
|
||||
tree.type = owntype;
|
||||
return owntype;
|
||||
}
|
||||
|
||||
/** Is given blank final variable assignable, i.e. in a scope where it
|
||||
* may be assigned to even though it is final?
|
||||
* @param v The blank final variable.
|
||||
@ -554,6 +541,7 @@ public class Attr extends JCTree.Visitor {
|
||||
}
|
||||
|
||||
/** Attribute type reference in an `extends' or `implements' clause.
|
||||
* Supertypes of anonymous inner classes are usually already attributed.
|
||||
*
|
||||
* @param tree The tree making up the type reference.
|
||||
* @param env The environment current at the reference.
|
||||
@ -565,7 +553,9 @@ public class Attr extends JCTree.Visitor {
|
||||
boolean classExpected,
|
||||
boolean interfaceExpected,
|
||||
boolean checkExtensible) {
|
||||
Type t = attribType(tree, env);
|
||||
Type t = tree.type != null ?
|
||||
tree.type :
|
||||
attribType(tree, env);
|
||||
return checkBase(t, tree, env, classExpected, interfaceExpected, checkExtensible);
|
||||
}
|
||||
Type checkBase(Type t,
|
||||
@ -1400,7 +1390,7 @@ public class Attr extends JCTree.Visitor {
|
||||
|
||||
// Check that value of resulting type is admissible in the
|
||||
// current context. Also, capture the return type
|
||||
result = checkReturn(tree, capture(restype), VAL, pkind, pt);
|
||||
result = check(tree, capture(restype), VAL, pkind, pt);
|
||||
}
|
||||
chk.validate(tree.typeargs, localEnv);
|
||||
}
|
||||
@ -1470,14 +1460,17 @@ public class Attr extends JCTree.Visitor {
|
||||
((JCTypeApply) clazz).arguments);
|
||||
else
|
||||
clazz = clazzid1;
|
||||
// System.out.println(clazz + " generated.");//DEBUG
|
||||
}
|
||||
|
||||
// Attribute clazz expression and store
|
||||
// symbol + type back into the attributed tree.
|
||||
Type clazztype = attribType(clazz, env);
|
||||
Pair<Scope,Scope> mapping = getSyntheticScopeMapping((ClassType)clazztype);
|
||||
if (!TreeInfo.isDiamond(tree)) {
|
||||
clazztype = chk.checkClassType(
|
||||
tree.clazz.pos(), clazztype, true);
|
||||
}
|
||||
chk.validate(clazz, localEnv);
|
||||
clazztype = chk.checkNewClassType(clazz.pos(), clazztype, true, pt);
|
||||
if (tree.encl != null) {
|
||||
// We have to work in this case to store
|
||||
// symbol + type back into the attributed tree.
|
||||
@ -1501,6 +1494,11 @@ public class Attr extends JCTree.Visitor {
|
||||
List<Type> argtypes = attribArgs(tree.args, localEnv);
|
||||
List<Type> typeargtypes = attribTypes(tree.typeargs, localEnv);
|
||||
|
||||
if (TreeInfo.isDiamond(tree)) {
|
||||
clazztype = attribDiamond(localEnv, tree, clazztype, mapping, argtypes, typeargtypes, true);
|
||||
clazz.type = clazztype;
|
||||
}
|
||||
|
||||
// If we have made no mistakes in the class type...
|
||||
if (clazztype.tag == CLASS) {
|
||||
// Enums may not be instantiated except implicitly
|
||||
@ -1538,12 +1536,12 @@ public class Attr extends JCTree.Visitor {
|
||||
tree.constructor = rs.resolveConstructor(
|
||||
tree.pos(), localEnv, clazztype, argtypes, typeargtypes);
|
||||
tree.constructorType = checkMethod(clazztype,
|
||||
tree.constructor,
|
||||
localEnv,
|
||||
tree.args,
|
||||
argtypes,
|
||||
typeargtypes,
|
||||
localEnv.info.varArgs);
|
||||
tree.constructor,
|
||||
localEnv,
|
||||
tree.args,
|
||||
argtypes,
|
||||
typeargtypes,
|
||||
localEnv.info.varArgs);
|
||||
if (localEnv.info.varArgs)
|
||||
assert tree.constructorType.isErroneous() || tree.varargsElement != null;
|
||||
}
|
||||
@ -1582,9 +1580,7 @@ public class Attr extends JCTree.Visitor {
|
||||
// ...
|
||||
// }
|
||||
if (Resolve.isStatic(env)) cdef.mods.flags |= STATIC;
|
||||
clazz = TreeInfo.isDiamond(tree) ?
|
||||
make.Type(clazztype)
|
||||
: clazz;
|
||||
|
||||
if (clazztype.tsym.isInterface()) {
|
||||
cdef.implementing = List.of(clazz);
|
||||
} else {
|
||||
@ -1630,6 +1626,136 @@ public class Attr extends JCTree.Visitor {
|
||||
chk.validate(tree.typeargs, localEnv);
|
||||
}
|
||||
|
||||
Type attribDiamond(Env<AttrContext> env,
|
||||
JCNewClass tree,
|
||||
Type clazztype,
|
||||
Pair<Scope, Scope> mapping,
|
||||
List<Type> argtypes,
|
||||
List<Type> typeargtypes,
|
||||
boolean reportErrors) {
|
||||
if (clazztype.isErroneous()) {
|
||||
//if the type of the instance creation expression is erroneous
|
||||
//return the erroneous type itself
|
||||
return clazztype;
|
||||
}
|
||||
else if (clazztype.isInterface()) {
|
||||
//if the type of the instance creation expression is an interface
|
||||
//skip the method resolution step (JLS 15.12.2.7). The type to be
|
||||
//inferred is of the kind <X1,X2, ... Xn>C<X1,X2, ... Xn>
|
||||
clazztype = new ForAll(clazztype.tsym.type.allparams(),
|
||||
clazztype.tsym.type);
|
||||
} else {
|
||||
//if the type of the instance creation expression is a class type
|
||||
//apply method resolution inference (JLS 15.12.2.7). The return type
|
||||
//of the resolved constructor will be a partially instantiated type
|
||||
((ClassSymbol) clazztype.tsym).members_field = mapping.snd;
|
||||
Symbol constructor;
|
||||
try {
|
||||
constructor = rs.resolveDiamond(tree.pos(),
|
||||
env,
|
||||
clazztype.tsym.type,
|
||||
argtypes,
|
||||
typeargtypes, reportErrors);
|
||||
} finally {
|
||||
((ClassSymbol) clazztype.tsym).members_field = mapping.fst;
|
||||
}
|
||||
if (constructor.kind == MTH) {
|
||||
ClassType ct = new ClassType(clazztype.getEnclosingType(),
|
||||
clazztype.tsym.type.getTypeArguments(),
|
||||
clazztype.tsym);
|
||||
clazztype = checkMethod(ct,
|
||||
constructor,
|
||||
env,
|
||||
tree.args,
|
||||
argtypes,
|
||||
typeargtypes,
|
||||
env.info.varArgs).getReturnType();
|
||||
} else {
|
||||
clazztype = syms.errType;
|
||||
}
|
||||
}
|
||||
if (clazztype.tag == FORALL && !pt.isErroneous()) {
|
||||
//if the resolved constructor's return type has some uninferred
|
||||
//type-variables, infer them using the expected type and declared
|
||||
//bounds (JLS 15.12.2.8).
|
||||
try {
|
||||
clazztype = infer.instantiateExpr((ForAll) clazztype,
|
||||
pt.tag == NONE ? syms.objectType : pt,
|
||||
Warner.noWarnings);
|
||||
} catch (Infer.InferenceException ex) {
|
||||
//an error occurred while inferring uninstantiated type-variables
|
||||
//we need to optionally report an error
|
||||
if (reportErrors) {
|
||||
log.error(tree.clazz.pos(),
|
||||
"cant.apply.diamond.1",
|
||||
diags.fragment("diamond", clazztype.tsym),
|
||||
ex.diagnostic);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (reportErrors) {
|
||||
clazztype = chk.checkClassType(tree.clazz.pos(),
|
||||
clazztype,
|
||||
true);
|
||||
if (clazztype.tag == CLASS) {
|
||||
List<Type> invalidDiamondArgs = chk.checkDiamond((ClassType)clazztype);
|
||||
if (!clazztype.isErroneous() && invalidDiamondArgs.nonEmpty()) {
|
||||
//one or more types inferred in the previous steps is either a
|
||||
//captured type or an intersection type --- we need to report an error.
|
||||
String subkey = invalidDiamondArgs.size() > 1 ?
|
||||
"diamond.invalid.args" :
|
||||
"diamond.invalid.arg";
|
||||
//The error message is of the kind:
|
||||
//
|
||||
//cannot infer type arguments for {clazztype}<>;
|
||||
//reason: {subkey}
|
||||
//
|
||||
//where subkey is a fragment of the kind:
|
||||
//
|
||||
//type argument(s) {invalidDiamondArgs} inferred for {clazztype}<> is not allowed in this context
|
||||
log.error(tree.clazz.pos(),
|
||||
"cant.apply.diamond.1",
|
||||
diags.fragment("diamond", clazztype.tsym),
|
||||
diags.fragment(subkey,
|
||||
invalidDiamondArgs,
|
||||
diags.fragment("diamond", clazztype.tsym)));
|
||||
}
|
||||
}
|
||||
}
|
||||
return clazztype;
|
||||
}
|
||||
|
||||
/** Creates a synthetic scope containing fake generic constructors.
|
||||
* Assuming that the original scope contains a constructor of the kind:
|
||||
* Foo(X x, Y y), where X,Y are class type-variables declared in Foo,
|
||||
* the synthetic scope is added a generic constructor of the kind:
|
||||
* <X,Y>Foo<X,Y>(X x, Y y). This is crucial in order to enable diamond
|
||||
* inference. The inferred return type of the synthetic constructor IS
|
||||
* the inferred type for the diamond operator.
|
||||
*/
|
||||
private Pair<Scope, Scope> getSyntheticScopeMapping(ClassType ctype) {
|
||||
Pair<Scope, Scope> mapping =
|
||||
new Pair<Scope, Scope>(ctype.tsym.members(), new Scope(ctype.tsym));
|
||||
List<Type> typevars = ctype.tsym.type.getTypeArguments();
|
||||
for (Scope.Entry e = mapping.fst.lookup(names.init);
|
||||
e.scope != null;
|
||||
e = e.next()) {
|
||||
MethodSymbol newConstr = (MethodSymbol) e.sym.clone(ctype.tsym);
|
||||
newConstr.name = names.init;
|
||||
List<Type> oldTypeargs = List.nil();
|
||||
if (newConstr.type.tag == FORALL) {
|
||||
oldTypeargs = ((ForAll) newConstr.type).tvars;
|
||||
}
|
||||
newConstr.type = new MethodType(newConstr.type.getParameterTypes(),
|
||||
new ClassType(ctype.getEnclosingType(), ctype.tsym.type.getTypeArguments(), ctype.tsym),
|
||||
newConstr.type.getThrownTypes(),
|
||||
syms.methodClass);
|
||||
newConstr.type = new ForAll(typevars.prependList(oldTypeargs), newConstr.type);
|
||||
mapping.snd.enter(newConstr);
|
||||
}
|
||||
return mapping;
|
||||
}
|
||||
|
||||
/** Make an attributed null check tree.
|
||||
*/
|
||||
public JCExpression makeNullCheck(JCExpression arg) {
|
||||
@ -2571,7 +2697,7 @@ public class Attr extends JCTree.Visitor {
|
||||
if (clazztype.tag == CLASS) {
|
||||
List<Type> formals = clazztype.tsym.type.getTypeArguments();
|
||||
|
||||
if (actuals.length() == formals.length() || actuals.isEmpty()) {
|
||||
if (actuals.length() == formals.length() || actuals.length() == 0) {
|
||||
List<Type> a = actuals;
|
||||
List<Type> f = formals;
|
||||
while (a.nonEmpty()) {
|
||||
@ -2597,18 +2723,7 @@ public class Attr extends JCTree.Visitor {
|
||||
clazzOuter = site;
|
||||
}
|
||||
}
|
||||
if (actuals.nonEmpty()) {
|
||||
owntype = new ClassType(clazzOuter, actuals, clazztype.tsym);
|
||||
}
|
||||
else if (TreeInfo.isDiamond(tree)) {
|
||||
//a type apply with no explicit type arguments - diamond operator
|
||||
//the result type is a forall F where F's tvars are the type-variables
|
||||
//that will be inferred when F is checked against the expected type
|
||||
List<Type> ftvars = clazztype.tsym.type.getTypeArguments();
|
||||
List<Type> new_tvars = types.newInstances(ftvars);
|
||||
clazztype = new ClassType(clazzOuter, new_tvars, clazztype.tsym);
|
||||
owntype = new ForAll(new_tvars, clazztype);
|
||||
}
|
||||
owntype = new ClassType(clazzOuter, actuals, clazztype.tsym);
|
||||
} else {
|
||||
if (formals.length() != 0) {
|
||||
log.error(tree.pos(), "wrong.number.type.args",
|
||||
@ -2823,9 +2938,12 @@ public class Attr extends JCTree.Visitor {
|
||||
|
||||
// Validate type parameters, supertype and interfaces.
|
||||
attribBounds(tree.typarams);
|
||||
chk.validate(tree.typarams, env);
|
||||
chk.validate(tree.extending, env);
|
||||
chk.validate(tree.implementing, env);
|
||||
if (!c.isAnonymous()) {
|
||||
//already checked if anonymous
|
||||
chk.validate(tree.typarams, env);
|
||||
chk.validate(tree.extending, env);
|
||||
chk.validate(tree.implementing, env);
|
||||
}
|
||||
|
||||
// If this is a non-abstract class, check that it has no abstract
|
||||
// methods or unimplemented methods of an implemented interface.
|
||||
|
@ -375,6 +375,8 @@ public class Check {
|
||||
Type checkType(DiagnosticPosition pos, Type found, Type req) {
|
||||
if (req.tag == ERROR)
|
||||
return req;
|
||||
if (found.tag == FORALL)
|
||||
return instantiatePoly(pos, (ForAll)found, req, convertWarner(pos, found, req));
|
||||
if (req.tag == NONE)
|
||||
return found;
|
||||
if (types.isAssignable(found, req, convertWarner(pos, found, req)))
|
||||
@ -392,33 +394,6 @@ public class Check {
|
||||
return typeError(pos, diags.fragment("incompatible.types"), found, req);
|
||||
}
|
||||
|
||||
Type checkReturnType(DiagnosticPosition pos, Type found, Type req) {
|
||||
if (found.tag == FORALL) {
|
||||
try {
|
||||
return instantiatePoly(pos, (ForAll) found, req, convertWarner(pos, found, req));
|
||||
} catch (Infer.NoInstanceException ex) {
|
||||
if (ex.isAmbiguous) {
|
||||
JCDiagnostic d = ex.getDiagnostic();
|
||||
log.error(pos,
|
||||
"undetermined.type" + (d != null ? ".1" : ""),
|
||||
found, d);
|
||||
return types.createErrorType(req);
|
||||
} else {
|
||||
JCDiagnostic d = ex.getDiagnostic();
|
||||
return typeError(pos,
|
||||
diags.fragment("incompatible.types" + (d != null ? ".1" : ""), d),
|
||||
found, req);
|
||||
}
|
||||
} catch (Infer.InvalidInstanceException ex) {
|
||||
JCDiagnostic d = ex.getDiagnostic();
|
||||
log.error(pos, "invalid.inferred.types", ((ForAll)found).tvars, d);
|
||||
return types.createErrorType(req);
|
||||
}
|
||||
} else {
|
||||
return checkType(pos, found, req);
|
||||
}
|
||||
}
|
||||
|
||||
/** Instantiate polymorphic type to some prototype, unless
|
||||
* prototype is `anyPoly' in which case polymorphic type
|
||||
* is returned unchanged.
|
||||
@ -432,9 +407,28 @@ public class Check {
|
||||
} else if (pt.tag == ERROR) {
|
||||
return pt;
|
||||
} else {
|
||||
return infer.instantiateExpr(t, pt, warn);
|
||||
try {
|
||||
return infer.instantiateExpr(t, pt, warn);
|
||||
} catch (Infer.NoInstanceException ex) {
|
||||
if (ex.isAmbiguous) {
|
||||
JCDiagnostic d = ex.getDiagnostic();
|
||||
log.error(pos,
|
||||
"undetermined.type" + (d!=null ? ".1" : ""),
|
||||
t, d);
|
||||
return types.createErrorType(pt);
|
||||
} else {
|
||||
JCDiagnostic d = ex.getDiagnostic();
|
||||
return typeError(pos,
|
||||
diags.fragment("incompatible.types" + (d!=null ? ".1" : ""), d),
|
||||
t, pt);
|
||||
}
|
||||
} catch (Infer.InvalidInstanceException ex) {
|
||||
JCDiagnostic d = ex.getDiagnostic();
|
||||
log.error(pos, "invalid.inferred.types", t.tvars, d);
|
||||
return types.createErrorType(pt);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** Check that a given type can be cast to a given target type.
|
||||
* Return the result of the cast.
|
||||
@ -557,29 +551,6 @@ public class Check {
|
||||
return t;
|
||||
}
|
||||
|
||||
/** Check that type is a valid type for a new expression. If the type contains
|
||||
* some uninferred type variables, instantiate them exploiting the expected
|
||||
* type.
|
||||
*
|
||||
* @param pos Position to be used for error reporting.
|
||||
* @param t The type to be checked.
|
||||
* @param noBounds True if type bounds are illegal here.
|
||||
* @param pt Expected type (used with diamond operator)
|
||||
*/
|
||||
Type checkNewClassType(DiagnosticPosition pos, Type t, boolean noBounds, Type pt) {
|
||||
if (t.tag == FORALL) {
|
||||
try {
|
||||
t = instantiatePoly(pos, (ForAll)t, pt, Warner.noWarnings);
|
||||
}
|
||||
catch (Infer.NoInstanceException ex) {
|
||||
JCDiagnostic d = ex.getDiagnostic();
|
||||
log.error(pos, "cant.apply.diamond", t.getTypeArguments(), d);
|
||||
return types.createErrorType(pt);
|
||||
}
|
||||
}
|
||||
return checkClassType(pos, t, noBounds);
|
||||
}
|
||||
|
||||
/** Check that type is a reifiable class, interface or array type.
|
||||
* @param pos Position to be used for error reporting.
|
||||
* @param t The type to be checked.
|
||||
@ -669,6 +640,43 @@ public class Check {
|
||||
return true;
|
||||
}
|
||||
|
||||
/** Check that the type inferred using the diamond operator does not contain
|
||||
* non-denotable types such as captured types or intersection types.
|
||||
* @param t the type inferred using the diamond operator
|
||||
*/
|
||||
List<Type> checkDiamond(ClassType t) {
|
||||
DiamondTypeChecker dtc = new DiamondTypeChecker();
|
||||
ListBuffer<Type> buf = ListBuffer.lb();
|
||||
for (Type arg : t.getTypeArguments()) {
|
||||
if (!dtc.visit(arg, null)) {
|
||||
buf.append(arg);
|
||||
}
|
||||
}
|
||||
return buf.toList();
|
||||
}
|
||||
|
||||
static class DiamondTypeChecker extends Types.SimpleVisitor<Boolean, Void> {
|
||||
public Boolean visitType(Type t, Void s) {
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public Boolean visitClassType(ClassType t, Void s) {
|
||||
if (t.isCompound()) {
|
||||
return false;
|
||||
}
|
||||
for (Type targ : t.getTypeArguments()) {
|
||||
if (!visit(targ, s)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public Boolean visitCapturedType(CapturedType t, Void s) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/** Check that given modifiers are legal for given symbol and
|
||||
* return modifiers together with any implicit modififiers for that symbol.
|
||||
* Warning: we can't use flags() here since this method
|
||||
@ -936,8 +944,7 @@ public class Check {
|
||||
}
|
||||
|
||||
checkCapture(tree);
|
||||
}
|
||||
if (tree.type.tag == CLASS || tree.type.tag == FORALL) {
|
||||
|
||||
// Check that this type is either fully parameterized, or
|
||||
// not parameterized at all.
|
||||
if (tree.type.getEnclosingType().isRaw())
|
||||
|
@ -788,6 +788,8 @@ public class Resolve {
|
||||
operator);
|
||||
}
|
||||
}
|
||||
if (name == names.init)
|
||||
break;
|
||||
//- System.out.println(" - " + bestSoFar);
|
||||
if (abstractok) {
|
||||
Symbol concrete = methodNotFound;
|
||||
@ -1409,6 +1411,48 @@ public class Resolve {
|
||||
return sym;
|
||||
}
|
||||
|
||||
/** Resolve constructor using diamond inference.
|
||||
* @param pos The position to use for error reporting.
|
||||
* @param env The environment current at the constructor invocation.
|
||||
* @param site The type of class for which a constructor is searched.
|
||||
* The scope of this class has been touched in attribution.
|
||||
* @param argtypes The types of the constructor invocation's value
|
||||
* arguments.
|
||||
* @param typeargtypes The types of the constructor invocation's type
|
||||
* arguments.
|
||||
*/
|
||||
Symbol resolveDiamond(DiagnosticPosition pos,
|
||||
Env<AttrContext> env,
|
||||
Type site,
|
||||
List<Type> argtypes,
|
||||
List<Type> typeargtypes, boolean reportErrors) {
|
||||
Symbol sym = methodNotFound;
|
||||
JCDiagnostic explanation = null;
|
||||
List<MethodResolutionPhase> steps = methodResolutionSteps;
|
||||
while (steps.nonEmpty() &&
|
||||
steps.head.isApplicable(boxingEnabled, varargsEnabled) &&
|
||||
sym.kind >= ERRONEOUS) {
|
||||
sym = resolveConstructor(pos, env, site, argtypes, typeargtypes,
|
||||
steps.head.isBoxingRequired(),
|
||||
env.info.varArgs = steps.head.isVarargsRequired());
|
||||
methodResolutionCache.put(steps.head, sym);
|
||||
if (sym.kind == WRONG_MTH &&
|
||||
((InapplicableSymbolError)sym).explanation != null) {
|
||||
//if the symbol is an inapplicable method symbol, then the
|
||||
//explanation contains the reason for which inference failed
|
||||
explanation = ((InapplicableSymbolError)sym).explanation;
|
||||
}
|
||||
steps = steps.tail;
|
||||
}
|
||||
if (sym.kind >= AMBIGUOUS && reportErrors) {
|
||||
String key = explanation == null ?
|
||||
"cant.apply.diamond" :
|
||||
"cant.apply.diamond.1";
|
||||
log.error(pos, key, diags.fragment("diamond", site.tsym), explanation);
|
||||
}
|
||||
return sym;
|
||||
}
|
||||
|
||||
/** Resolve constructor.
|
||||
* @param pos The position to use for error reporting.
|
||||
* @param env The environment current at the constructor invocation.
|
||||
|
@ -28,6 +28,9 @@ package com.sun.tools.javac.main;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.io.PrintWriter;
|
||||
import java.net.URL;
|
||||
import java.security.DigestInputStream;
|
||||
import java.security.MessageDigest;
|
||||
import java.util.MissingResourceException;
|
||||
|
||||
import com.sun.tools.javac.code.Source;
|
||||
@ -281,6 +284,15 @@ public class Main {
|
||||
if (target.hasInvokedynamic()) {
|
||||
options.put("invokedynamic", "invokedynamic");
|
||||
}
|
||||
|
||||
// handle this here so it works even if no other options given
|
||||
String showClass = options.get("showClass");
|
||||
if (showClass != null) {
|
||||
if (showClass.equals("showClass")) // no value given for option
|
||||
showClass = "com.sun.tools.javac.Main";
|
||||
showClass(showClass);
|
||||
}
|
||||
|
||||
return filenames.toList();
|
||||
}
|
||||
// where
|
||||
@ -488,6 +500,37 @@ public class Main {
|
||||
ex.getCause().printStackTrace();
|
||||
}
|
||||
|
||||
/** Display the location and checksum of a class. */
|
||||
void showClass(String className) {
|
||||
out.println("javac: show class: " + className);
|
||||
URL url = getClass().getResource('/' + className.replace('.', '/') + ".class");
|
||||
if (url == null)
|
||||
out.println(" class not found");
|
||||
else {
|
||||
out.println(" " + url);
|
||||
try {
|
||||
final String algorithm = "MD5";
|
||||
byte[] digest;
|
||||
MessageDigest md = MessageDigest.getInstance(algorithm);
|
||||
DigestInputStream in = new DigestInputStream(url.openStream(), md);
|
||||
try {
|
||||
byte[] buf = new byte[8192];
|
||||
int n;
|
||||
do { n = in.read(buf); } while (n > 0);
|
||||
digest = md.digest();
|
||||
} finally {
|
||||
in.close();
|
||||
}
|
||||
StringBuilder sb = new StringBuilder();
|
||||
for (byte b: digest)
|
||||
sb.append(String.format("%02x", b));
|
||||
out.println(" " + algorithm + " checksum: " + sb);
|
||||
} catch (Exception e) {
|
||||
out.println(" cannot compute digest: " + e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private JavaFileManager fileManager;
|
||||
|
||||
/* ************************************************************************
|
||||
|
@ -195,11 +195,11 @@ public class JavacParser implements Parser {
|
||||
* mode = NOPARAMS : no parameters allowed for type
|
||||
* mode = TYPEARG : type argument
|
||||
*/
|
||||
static final int EXPR = 1;
|
||||
static final int TYPE = 2;
|
||||
static final int NOPARAMS = 4;
|
||||
static final int TYPEARG = 8;
|
||||
static final int DIAMOND = 16;
|
||||
static final int EXPR = 0x1;
|
||||
static final int TYPE = 0x2;
|
||||
static final int NOPARAMS = 0x4;
|
||||
static final int TYPEARG = 0x8;
|
||||
static final int DIAMOND = 0x10;
|
||||
|
||||
/** The current mode.
|
||||
*/
|
||||
@ -3151,12 +3151,6 @@ public class JavacParser implements Parser {
|
||||
}
|
||||
}
|
||||
|
||||
void checkDiamond() {
|
||||
if (!allowDiamond) {
|
||||
log.error(S.pos(), "diamond.not.supported.in.source", source.name);
|
||||
allowDiamond = true;
|
||||
}
|
||||
}
|
||||
void checkGenerics() {
|
||||
if (!allowGenerics) {
|
||||
log.error(S.pos(), "generics.not.supported.in.source", source.name);
|
||||
@ -3193,4 +3187,10 @@ public class JavacParser implements Parser {
|
||||
allowTypeAnnotations = true;
|
||||
}
|
||||
}
|
||||
void checkDiamond() {
|
||||
if (!allowDiamond) {
|
||||
log.error(S.pos(), "diamond.not.supported.in.source", source.name);
|
||||
allowDiamond = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -479,6 +479,11 @@ compiler.err.undetermined.type.1=\
|
||||
type parameters of {0} cannot be determined; {1}
|
||||
compiler.err.invalid.inferred.types=\
|
||||
invalid inferred types for {0}; {1}
|
||||
compiler.err.cant.apply.diamond=\
|
||||
cannot infer type arguments for {0}
|
||||
compiler.err.cant.apply.diamond.1=\
|
||||
cannot infer type arguments for {0};\n\
|
||||
reason: {1}
|
||||
compiler.err.unreachable.stmt=\
|
||||
unreachable statement
|
||||
compiler.err.initializer.must.be.able.to.complete.normally=\
|
||||
@ -1030,7 +1035,12 @@ compiler.misc.inferred.do.not.conform.to.params=\
|
||||
actual arguments do not conform to inferred formal arguments\n\
|
||||
required: {0}\n\
|
||||
found: {1}
|
||||
|
||||
compiler.misc.diamond=\
|
||||
{0}<>
|
||||
compiler.misc.diamond.invalid.arg=\
|
||||
type argument {0} inferred for {1} is not allowed in this context
|
||||
compiler.misc.diamond.invalid.args=\
|
||||
type arguments {0} inferred for {1} are not allowed in this context
|
||||
#####
|
||||
|
||||
## The first argument ({0}) is a "kindname".
|
||||
@ -1082,10 +1092,6 @@ compiler.err.cant.resolve.location.args.params=\
|
||||
symbol: {0} <{2}>{1}({3})\n\
|
||||
location: {4} {5}
|
||||
|
||||
compiler.err.cant.apply.diamond=\
|
||||
diamond operator cannot infer types for {0};\n\
|
||||
reason: {1}
|
||||
|
||||
## The following are all possible string for "kindname".
|
||||
## They should be called whatever the JLS calls them after it been translated
|
||||
## to the appropriate language.
|
||||
@ -1167,6 +1173,8 @@ compiler.misc.varargs.implement=\
|
||||
{0} in {1} implements {2} in {3}
|
||||
compiler.misc.varargs.clash.with=\
|
||||
{0} in {1} overrides {2} in {3}
|
||||
compiler.misc.non.denotable.type=\
|
||||
Non-denotable type {0} not allowed here
|
||||
|
||||
########################################
|
||||
# Diagnostics for language feature changes
|
||||
@ -1227,10 +1235,6 @@ compiler.err.enums.not.supported.in.source=\
|
||||
enums are not supported in -source {0}\n\
|
||||
(use -source 5 or higher to enable enums)
|
||||
|
||||
compiler.err.diamond.not.supported.in.source=\
|
||||
diamond operator is not supported in -source {0}\n\
|
||||
(use -source 7 or higher to enable diamond operator)
|
||||
|
||||
compiler.err.string.switch.not.supported.in.source=\
|
||||
strings in switch are not supported in -source {0}\n\
|
||||
(use -source 7 or higher to enable strings in switch)
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright 1999-2006 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# Copyright 1999-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
|
||||
@ -25,184 +25,100 @@
|
||||
|
||||
## standard options
|
||||
|
||||
javac.opt.g=\
|
||||
\u3059\u3079\u3066\u306e\u30c7\u30d0\u30c3\u30b0\u60c5\u5831\u3092\u751f\u6210\u3059\u308b
|
||||
javac.opt.g.none=\
|
||||
\u30c7\u30d0\u30c3\u30b0\u60c5\u5831\u3092\u751f\u6210\u3057\u306a\u3044
|
||||
javac.opt.g.lines.vars.source=\
|
||||
\u3044\u304f\u3064\u304b\u306e\u30c7\u30d0\u30c3\u30b0\u60c5\u5831\u3060\u3051\u3092\u751f\u6210\u3059\u308b
|
||||
javac.opt.nowarn=\
|
||||
\u8b66\u544a\u3092\u767a\u751f\u3055\u305b\u306a\u3044
|
||||
javac.opt.verbose=\
|
||||
\u30b3\u30f3\u30d1\u30a4\u30e9\u306e\u52d5\u4f5c\u306b\u3064\u3044\u3066\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u51fa\u529b\u3059\u308b
|
||||
javac.opt.deprecation=\
|
||||
\u63a8\u5968\u3055\u308c\u306a\u3044 API \u304c\u4f7f\u7528\u3055\u308c\u3066\u3044\u308b\u30bd\u30fc\u30b9\u306e\u4f4d\u7f6e\u3092\u51fa\u529b\u3059\u308b
|
||||
javac.opt.classpath=\
|
||||
\u30e6\u30fc\u30b6\u30fc\u30af\u30e9\u30b9\u30d5\u30a1\u30a4\u30eb\u304a\u3088\u3073\u6ce8\u91c8\u30d7\u30ed\u30bb\u30c3\u30b5\u3092\u691c\u7d22\u3059\u308b\u4f4d\u7f6e\u3092\u6307\u5b9a\u3059\u308b
|
||||
javac.opt.sourcepath=\
|
||||
\u5165\u529b\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u691c\u7d22\u3059\u308b\u4f4d\u7f6e\u3092\u6307\u5b9a\u3059\u308b
|
||||
javac.opt.bootclasspath=\
|
||||
\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u30af\u30e9\u30b9\u30d5\u30a1\u30a4\u30eb\u306e\u4f4d\u7f6e\u3092\u7f6e\u304d\u63db\u3048\u308b
|
||||
javac.opt.Xbootclasspath.p=\
|
||||
\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u30af\u30e9\u30b9\u306b\u4ed8\u52a0\u3059\u308b
|
||||
javac.opt.Xbootclasspath.a=\
|
||||
\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u30af\u30e9\u30b9\u306b\u8ffd\u52a0\u3059\u308b
|
||||
javac.opt.endorseddirs=\
|
||||
\u63a8\u5968\u898f\u683c\u30d1\u30b9\u306e\u4f4d\u7f6e\u3092\u7f6e\u304d\u63db\u3048\u308b
|
||||
javac.opt.extdirs=\
|
||||
\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u62e1\u5f35\u6a5f\u80fd\u306e\u4f4d\u7f6e\u3092\u7f6e\u304d\u63db\u3048\u308b
|
||||
javac.opt.processorpath=\
|
||||
\u6ce8\u91c8\u30d7\u30ed\u30bb\u30c3\u30b5\u3092\u691c\u7d22\u3059\u308b\u4f4d\u7f6e\u3092\u6307\u5b9a\u3059\u308b
|
||||
javac.opt.processor=\
|
||||
\u5b9f\u884c\u3059\u308b\u6ce8\u91c8\u30d7\u30ed\u30bb\u30c3\u30b5\u306e\u540d\u524d\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u691c\u51fa\u51e6\u7406\u3092\u30d0\u30a4\u30d1\u30b9
|
||||
javac.opt.proc.none.only=\
|
||||
\u6ce8\u91c8\u51e6\u7406\u3084\u30b3\u30f3\u30d1\u30a4\u30eb\u3092\u5b9f\u884c\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u5236\u5fa1\u3057\u307e\u3059\u3002
|
||||
javac.opt.d=\
|
||||
\u751f\u6210\u3055\u308c\u305f\u30af\u30e9\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u683c\u7d0d\u3059\u308b\u4f4d\u7f6e\u3092\u6307\u5b9a\u3059\u308b
|
||||
javac.opt.sourceDest=\
|
||||
\u751f\u6210\u3055\u308c\u305f\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u683c\u7d0d\u3059\u308b\u5834\u6240\u3092\u6307\u5b9a\u3059\u308b
|
||||
javac.opt.J=\
|
||||
<flag> \u3092\u5b9f\u884c\u30b7\u30b9\u30c6\u30e0\u306b\u76f4\u63a5\u6e21\u3059
|
||||
javac.opt.encoding=\
|
||||
\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u304c\u4f7f\u7528\u3059\u308b\u6587\u5b57\u30a8\u30f3\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3092\u6307\u5b9a\u3059\u308b
|
||||
javac.opt.target=\
|
||||
\u7279\u5b9a\u306e VM \u30d0\u30fc\u30b8\u30e7\u30f3\u7528\u306e\u30af\u30e9\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u751f\u6210\u3059\u308b
|
||||
javac.opt.source=\
|
||||
\u6307\u5b9a\u3055\u308c\u305f\u30ea\u30ea\u30fc\u30b9\u3068\u30bd\u30fc\u30b9\u306e\u4e92\u63db\u6027\u3092\u4fdd\u3064
|
||||
javac.opt.A=\
|
||||
\u6ce8\u91c8\u30d7\u30ed\u30bb\u30c3\u30b5\u306b\u6e21\u3055\u308c\u308b\u30aa\u30d7\u30b7\u30e7\u30f3
|
||||
javac.opt.implicit=\
|
||||
\u6697\u9ed9\u7684\u306b\u53c2\u7167\u3055\u308c\u308b\u30d5\u30a1\u30a4\u30eb\u306b\u3064\u3044\u3066\u30af\u30e9\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u751f\u6210\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u6307\u5b9a\u3059\u308b
|
||||
javac.opt.arg.class=\
|
||||
<class>
|
||||
javac.opt.arg.class.list=\
|
||||
<class1>[,<class2>,<class3>...]
|
||||
javac.opt.arg.flag=\
|
||||
<flag>
|
||||
javac.opt.arg.key.equals.value=\
|
||||
key[=value]
|
||||
javac.opt.arg.path=\
|
||||
<path>
|
||||
javac.opt.arg.dirs=\
|
||||
<dirs>
|
||||
javac.opt.arg.directory=\
|
||||
<directory>
|
||||
javac.opt.arg.encoding=\
|
||||
<encoding>
|
||||
javac.opt.arg.release=\
|
||||
<release>
|
||||
javac.opt.arg.number=\
|
||||
<number>
|
||||
javac.opt.g=\u3059\u3079\u3066\u306e\u30c7\u30d0\u30c3\u30b0\u60c5\u5831\u3092\u751f\u6210\u3059\u308b
|
||||
javac.opt.g.none=\u30c7\u30d0\u30c3\u30b0\u60c5\u5831\u3092\u751f\u6210\u3057\u306a\u3044
|
||||
javac.opt.g.lines.vars.source=\u3044\u304f\u3064\u304b\u306e\u30c7\u30d0\u30c3\u30b0\u60c5\u5831\u3060\u3051\u3092\u751f\u6210\u3059\u308b
|
||||
javac.opt.nowarn=\u8b66\u544a\u3092\u767a\u751f\u3055\u305b\u306a\u3044
|
||||
javac.opt.verbose=\u30b3\u30f3\u30d1\u30a4\u30e9\u306e\u52d5\u4f5c\u306b\u3064\u3044\u3066\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u51fa\u529b\u3059\u308b
|
||||
javac.opt.deprecation=\u63a8\u5968\u3055\u308c\u306a\u3044 API \u304c\u4f7f\u7528\u3055\u308c\u3066\u3044\u308b\u30bd\u30fc\u30b9\u306e\u4f4d\u7f6e\u3092\u51fa\u529b\u3059\u308b
|
||||
javac.opt.classpath=\u30e6\u30fc\u30b6\u30fc\u30af\u30e9\u30b9\u30d5\u30a1\u30a4\u30eb\u304a\u3088\u3073\u6ce8\u91c8\u30d7\u30ed\u30bb\u30c3\u30b5\u3092\u691c\u7d22\u3059\u308b\u4f4d\u7f6e\u3092\u6307\u5b9a\u3059\u308b
|
||||
javac.opt.sourcepath=\u5165\u529b\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u691c\u7d22\u3059\u308b\u4f4d\u7f6e\u3092\u6307\u5b9a\u3059\u308b
|
||||
javac.opt.bootclasspath=\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u30af\u30e9\u30b9\u30d5\u30a1\u30a4\u30eb\u306e\u4f4d\u7f6e\u3092\u7f6e\u304d\u63db\u3048\u308b
|
||||
javac.opt.Xbootclasspath.p=\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u30af\u30e9\u30b9\u306b\u4ed8\u52a0\u3059\u308b
|
||||
javac.opt.Xbootclasspath.a=\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u30af\u30e9\u30b9\u306b\u8ffd\u52a0\u3059\u308b
|
||||
javac.opt.endorseddirs=\u63a8\u5968\u898f\u683c\u30d1\u30b9\u306e\u4f4d\u7f6e\u3092\u7f6e\u304d\u63db\u3048\u308b
|
||||
javac.opt.extdirs=\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u62e1\u5f35\u6a5f\u80fd\u306e\u4f4d\u7f6e\u3092\u7f6e\u304d\u63db\u3048\u308b
|
||||
javac.opt.processorpath=\u6ce8\u91c8\u30d7\u30ed\u30bb\u30c3\u30b5\u3092\u691c\u7d22\u3059\u308b\u4f4d\u7f6e\u3092\u6307\u5b9a\u3059\u308b
|
||||
javac.opt.processor=\u5b9f\u884c\u3059\u308b\u6ce8\u91c8\u30d7\u30ed\u30bb\u30c3\u30b5\u306e\u540d\u524d\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u691c\u51fa\u51e6\u7406\u3092\u30d0\u30a4\u30d1\u30b9
|
||||
javac.opt.proc.none.only=\u6ce8\u91c8\u51e6\u7406\u3084\u30b3\u30f3\u30d1\u30a4\u30eb\u3092\u5b9f\u884c\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u5236\u5fa1\u3057\u307e\u3059\u3002
|
||||
javac.opt.d=\u751f\u6210\u3055\u308c\u305f\u30af\u30e9\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u683c\u7d0d\u3059\u308b\u4f4d\u7f6e\u3092\u6307\u5b9a\u3059\u308b
|
||||
javac.opt.sourceDest=\u751f\u6210\u3055\u308c\u305f\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u683c\u7d0d\u3059\u308b\u5834\u6240\u3092\u6307\u5b9a\u3059\u308b
|
||||
javac.opt.J=<flag> \u3092\u5b9f\u884c\u30b7\u30b9\u30c6\u30e0\u306b\u76f4\u63a5\u6e21\u3059
|
||||
javac.opt.encoding=\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u304c\u4f7f\u7528\u3059\u308b\u6587\u5b57\u30a8\u30f3\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3092\u6307\u5b9a\u3059\u308b
|
||||
javac.opt.target=\u7279\u5b9a\u306e VM \u30d0\u30fc\u30b8\u30e7\u30f3\u7528\u306e\u30af\u30e9\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u751f\u6210\u3059\u308b
|
||||
javac.opt.source=\u6307\u5b9a\u3055\u308c\u305f\u30ea\u30ea\u30fc\u30b9\u3068\u30bd\u30fc\u30b9\u306e\u4e92\u63db\u6027\u3092\u4fdd\u3064
|
||||
javac.opt.Werror=\u8b66\u544a\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u3092\u7d42\u4e86\u3059\u308b
|
||||
javac.opt.A=\u6ce8\u91c8\u30d7\u30ed\u30bb\u30c3\u30b5\u306b\u6e21\u3055\u308c\u308b\u30aa\u30d7\u30b7\u30e7\u30f3
|
||||
javac.opt.implicit=\u6697\u9ed9\u7684\u306b\u53c2\u7167\u3055\u308c\u308b\u30d5\u30a1\u30a4\u30eb\u306b\u3064\u3044\u3066\u30af\u30e9\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u751f\u6210\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u6307\u5b9a\u3059\u308b
|
||||
javac.opt.arg.class=<class>
|
||||
javac.opt.arg.class.list=<class1>[,<class2>,<class3>...]
|
||||
javac.opt.arg.flag=<flag>
|
||||
javac.opt.arg.key.equals.value=key[=value]
|
||||
javac.opt.arg.path=<path>
|
||||
javac.opt.arg.dirs=<dirs>
|
||||
javac.opt.arg.directory=<directory>
|
||||
javac.opt.arg.encoding=<encoding>
|
||||
javac.opt.arg.release=<release>
|
||||
javac.opt.arg.number=<number>
|
||||
|
||||
## extended options
|
||||
|
||||
javac.opt.maxerrs=\
|
||||
\u51fa\u529b\u3059\u308b\u30a8\u30e9\u30fc\u306e\u6700\u5927\u6570\u3092\u8a2d\u5b9a\u3059\u308b
|
||||
javac.opt.maxwarns=\
|
||||
\u51fa\u529b\u3059\u308b\u8b66\u544a\u306e\u6700\u5927\u6570\u3092\u8a2d\u5b9a\u3059\u308b
|
||||
javac.opt.nogj=\
|
||||
\u8a00\u8a9e\u306e\u6c4e\u7528\u6027\u3092\u53d7\u3051\u4ed8\u3051\u306a\u3044
|
||||
javac.opt.moreinfo=\
|
||||
\u578b\u5909\u6570\u306e\u62e1\u5f35\u60c5\u5831\u3092\u51fa\u529b\u3059\u308b
|
||||
javac.opt.printflat=\
|
||||
\u5185\u90e8\u30af\u30e9\u30b9\u306e\u5909\u63db\u5f8c\u306b\u62bd\u8c61\u69cb\u6587\u30c4\u30ea\u30fc\u3092\u51fa\u529b\u3059\u308b
|
||||
javac.opt.printsearch=\
|
||||
\u30af\u30e9\u30b9\u30d5\u30a1\u30a4\u30eb\u306e\u691c\u7d22\u4f4d\u7f6e\u60c5\u5831\u3092\u51fa\u529b\u3059\u308b
|
||||
javac.opt.prompt=\
|
||||
\u5404\u30a8\u30e9\u30fc\u3067\u505c\u6b62\u3059\u308b
|
||||
javac.opt.retrofit=\
|
||||
\u65e2\u5b58\u30af\u30e9\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u6c4e\u7528\u578b\u3067\u7d44\u307f\u66ff\u3048\u308b
|
||||
javac.opt.s=\
|
||||
\u30af\u30e9\u30b9\u30d5\u30a1\u30a4\u30eb\u306e\u4ee3\u308f\u308a\u306b java \u30bd\u30fc\u30b9\u3092\u767a\u884c\u3059\u308b
|
||||
javac.opt.scramble=\
|
||||
\u30d0\u30a4\u30c8\u30b3\u30fc\u30c9\u306e private \u8b58\u5225\u5b50\u306b\u30b9\u30af\u30e9\u30f3\u30d6\u30eb\u3092\u304b\u3051\u308b
|
||||
javac.opt.scrambleall=\
|
||||
\u30d0\u30a4\u30c8\u30b3\u30fc\u30c9\u306e package \u53ef\u8996\u8b58\u5225\u5b50\u306b\u30b9\u30af\u30e9\u30f3\u30d6\u30eb\u3092\u304b\u3051\u308b
|
||||
javac.opt.version=\
|
||||
\u30d0\u30fc\u30b8\u30e7\u30f3\u60c5\u5831
|
||||
javac.opt.arg.pathname=\
|
||||
<pathname>
|
||||
javac.opt.arg.file=\
|
||||
<filename>
|
||||
javac.opt.Xlint=\
|
||||
\u63a8\u5968\u306e\u8b66\u544a\u3092\u6709\u52b9\u306b\u3059\u308b
|
||||
javac.opt.Xlint.suboptlist=\
|
||||
\u7279\u5b9a\u306e\u8b66\u544a\u3092\u6709\u52b9\u307e\u305f\u306f\u7121\u52b9\u306b\u3059\u308b
|
||||
javac.opt.Xstdout=\
|
||||
\u6a19\u6e96\u51fa\u529b\u3092\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3059\u308b
|
||||
javac.opt.X=\
|
||||
\u975e\u6a19\u6e96\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u6982\u8981\u3092\u51fa\u529b\u3059\u308b
|
||||
javac.opt.help=\
|
||||
\u6a19\u6e96\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u6982\u8981\u3092\u51fa\u529b\u3059\u308b
|
||||
javac.opt.print=\
|
||||
\u6307\u5b9a\u3057\u305f\u578b\u306e\u30c6\u30ad\u30b9\u30c8\u8868\u793a\u3092\u51fa\u529b\u3059\u308b
|
||||
javac.opt.printRounds=\
|
||||
\u6ce8\u91c8\u51e6\u7406\u306e\u5f80\u5fa9\u306b\u3064\u3044\u3066\u306e\u60c5\u5831\u3092\u5370\u5237\u3059\u308b
|
||||
javac.opt.printProcessorInfo=\
|
||||
\u30d7\u30ed\u30bb\u30c3\u30b5\u304c\u51e6\u7406\u3092\u4f9d\u983c\u3055\u308c\u308b\u6ce8\u91c8\u306b\u3064\u3044\u3066\u306e\u60c5\u5831\u3092\u5370\u5237\u3059\u308b
|
||||
javac.opt.prefer=\
|
||||
\u6697\u9ed9\u7684\u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u3055\u308c\u308b\u30af\u30e9\u30b9\u306b\u3064\u3044\u3066\u3001\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u3068\u30af\u30e9\u30b9\u30d5\u30a1\u30a4\u30eb\u306e\u4e21\u65b9\u304c\u898b\u3064\u304b\u3063\u305f\u969b\u3069\u3061\u3089\u3092\u8aad\u307f\u8fbc\u3080\u304b\u6307\u5b9a\u3059\u308b
|
||||
javac.opt.maxerrs=\u51fa\u529b\u3059\u308b\u30a8\u30e9\u30fc\u306e\u6700\u5927\u6570\u3092\u8a2d\u5b9a\u3059\u308b
|
||||
javac.opt.maxwarns=\u51fa\u529b\u3059\u308b\u8b66\u544a\u306e\u6700\u5927\u6570\u3092\u8a2d\u5b9a\u3059\u308b
|
||||
javac.opt.nogj=\u8a00\u8a9e\u306e\u6c4e\u7528\u6027\u3092\u53d7\u3051\u4ed8\u3051\u306a\u3044
|
||||
javac.opt.moreinfo=\u578b\u5909\u6570\u306e\u62e1\u5f35\u60c5\u5831\u3092\u51fa\u529b\u3059\u308b
|
||||
javac.opt.printflat=\u5185\u90e8\u30af\u30e9\u30b9\u306e\u5909\u63db\u5f8c\u306b\u62bd\u8c61\u69cb\u6587\u30c4\u30ea\u30fc\u3092\u51fa\u529b\u3059\u308b
|
||||
javac.opt.printsearch=\u30af\u30e9\u30b9\u30d5\u30a1\u30a4\u30eb\u306e\u691c\u7d22\u4f4d\u7f6e\u60c5\u5831\u3092\u51fa\u529b\u3059\u308b
|
||||
javac.opt.prompt=\u5404\u30a8\u30e9\u30fc\u3067\u505c\u6b62\u3059\u308b
|
||||
javac.opt.retrofit=\u65e2\u5b58\u30af\u30e9\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u6c4e\u7528\u578b\u3067\u7d44\u307f\u66ff\u3048\u308b
|
||||
javac.opt.s=\u30af\u30e9\u30b9\u30d5\u30a1\u30a4\u30eb\u306e\u4ee3\u308f\u308a\u306b java \u30bd\u30fc\u30b9\u3092\u767a\u884c\u3059\u308b
|
||||
javac.opt.scramble=\u30d0\u30a4\u30c8\u30b3\u30fc\u30c9\u306e private \u8b58\u5225\u5b50\u306b\u30b9\u30af\u30e9\u30f3\u30d6\u30eb\u3092\u304b\u3051\u308b
|
||||
javac.opt.scrambleall=\u30d0\u30a4\u30c8\u30b3\u30fc\u30c9\u306e package \u53ef\u8996\u8b58\u5225\u5b50\u306b\u30b9\u30af\u30e9\u30f3\u30d6\u30eb\u3092\u304b\u3051\u308b
|
||||
javac.opt.version=\u30d0\u30fc\u30b8\u30e7\u30f3\u60c5\u5831
|
||||
javac.opt.arg.pathname=<pathname>
|
||||
javac.opt.arg.file=<filename>
|
||||
javac.opt.Xlint=\u63a8\u5968\u306e\u8b66\u544a\u3092\u6709\u52b9\u306b\u3059\u308b
|
||||
javac.opt.Xlint.suboptlist=\u7279\u5b9a\u306e\u8b66\u544a\u3092\u6709\u52b9\u307e\u305f\u306f\u7121\u52b9\u306b\u3059\u308b
|
||||
javac.opt.Xstdout=\u6a19\u6e96\u51fa\u529b\u3092\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3059\u308b
|
||||
javac.opt.X=\u975e\u6a19\u6e96\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u6982\u8981\u3092\u51fa\u529b\u3059\u308b
|
||||
javac.opt.help=\u6a19\u6e96\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u6982\u8981\u3092\u51fa\u529b\u3059\u308b
|
||||
javac.opt.print=\u6307\u5b9a\u3057\u305f\u578b\u306e\u30c6\u30ad\u30b9\u30c8\u8868\u793a\u3092\u51fa\u529b\u3059\u308b
|
||||
javac.opt.printRounds=\u6ce8\u91c8\u51e6\u7406\u306e\u5f80\u5fa9\u306b\u3064\u3044\u3066\u306e\u60c5\u5831\u3092\u5370\u5237\u3059\u308b
|
||||
javac.opt.printProcessorInfo=\u30d7\u30ed\u30bb\u30c3\u30b5\u304c\u51e6\u7406\u3092\u4f9d\u983c\u3055\u308c\u308b\u6ce8\u91c8\u306b\u3064\u3044\u3066\u306e\u60c5\u5831\u3092\u5370\u5237\u3059\u308b
|
||||
javac.opt.prefer=\u6697\u9ed9\u7684\u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u3055\u308c\u308b\u30af\u30e9\u30b9\u306b\u3064\u3044\u3066\u3001\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u3068\u30af\u30e9\u30b9\u30d5\u30a1\u30a4\u30eb\u306e\u4e21\u65b9\u304c\u898b\u3064\u304b\u3063\u305f\u969b\u3069\u3061\u3089\u3092\u8aad\u307f\u8fbc\u3080\u304b\u6307\u5b9a\u3059\u308b
|
||||
|
||||
## errors
|
||||
|
||||
javac.err.empty.A.argument=\
|
||||
-A \u306b\u306f\u5f15\u6570\u304c\u5fc5\u8981\u3067\u3059\u3002''-Akey'' \u307e\u305f\u306f ''-Akey=value'' \u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044
|
||||
javac.err.invalid.arg=\
|
||||
{0} \u306f\u7121\u52b9\u306a\u5f15\u6570\u3067\u3059\u3002
|
||||
javac.err.invalid.A.key=\
|
||||
\u6ce8\u91c8\u30d7\u30ed\u30bb\u30c3\u30b5\u30aa\u30d7\u30b7\u30e7\u30f3 ''{0}'' \u306e\u30ad\u30fc\u306b\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b\u4e00\u9023\u306e\u8b58\u5225\u5b50\u304c\u3001\u30c9\u30c3\u30c8\u3067\u533a\u5207\u3089\u308c\u3066\u3044\u307e\u305b\u3093
|
||||
javac.err.invalid.flag=\
|
||||
{0} \u306f\u7121\u52b9\u306a\u30d5\u30e9\u30b0\u3067\u3059\u3002
|
||||
javac.err.invalid.target=\
|
||||
{0} \u306f\u7121\u52b9\u306a VM \u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3059\u3002
|
||||
javac.err.no.source.files=\
|
||||
\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308a\u307e\u305b\u3093\u3002
|
||||
javac.err.req.arg=\
|
||||
{0} \u306b\u306f\u5f15\u6570\u304c\u5fc5\u8981\u3067\u3059
|
||||
javac.err.invalid.source=\
|
||||
{0} \u306f\u7121\u52b9\u306a\u30bd\u30fc\u30b9\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3059\u3002
|
||||
javac.err.error.writing.file=\
|
||||
{0} \u306e\u66f8\u304d\u8fbc\u307f\u30a8\u30e9\u30fc\u3067\u3059\u3002{1}
|
||||
javac.warn.source.target.conflict=\
|
||||
\u30ea\u30ea\u30fc\u30b9 {0} \u306e\u30bd\u30fc\u30b9\u306b\u306f\u30ea\u30ea\u30fc\u30b9 {1} \u306e\u30bf\u30fc\u30b2\u30c3\u30c8\u304c\u5fc5\u8981\u3067\u3059\u3002
|
||||
javac.warn.target.default.source.conflict=\
|
||||
\u30bf\u30fc\u30b2\u30c3\u30c8\u30ea\u30ea\u30fc\u30b9 {0} \u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30bd\u30fc\u30b9\u30ea\u30ea\u30fc\u30b9 {1} \u3068\u7af6\u5408\u3057\u3066\u3044\u307e\u3059\u3002
|
||||
javac.err.file.not.found=\
|
||||
\u30d5\u30a1\u30a4\u30eb\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093: {0}
|
||||
javac.err.file.not.directory=\
|
||||
\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u306f\u3042\u308a\u307e\u305b\u3093: {0}
|
||||
javac.err.file.not.file=\
|
||||
\u30d5\u30a1\u30a4\u30eb\u3067\u306f\u3042\u308a\u307e\u305b\u3093: {0}
|
||||
javac.err.empty.A.argument=-A \u306b\u306f\u5f15\u6570\u304c\u5fc5\u8981\u3067\u3059\u3002''-Akey'' \u307e\u305f\u306f ''-Akey=value'' \u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044
|
||||
javac.err.invalid.arg={0} \u306f\u7121\u52b9\u306a\u5f15\u6570\u3067\u3059\u3002
|
||||
javac.err.invalid.A.key=\u6ce8\u91c8\u30d7\u30ed\u30bb\u30c3\u30b5\u30aa\u30d7\u30b7\u30e7\u30f3 ''{0}'' \u306e\u30ad\u30fc\u306b\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b\u4e00\u9023\u306e\u8b58\u5225\u5b50\u304c\u3001\u30c9\u30c3\u30c8\u3067\u533a\u5207\u3089\u308c\u3066\u3044\u307e\u305b\u3093
|
||||
javac.err.invalid.flag={0} \u306f\u7121\u52b9\u306a\u30d5\u30e9\u30b0\u3067\u3059\u3002
|
||||
javac.err.invalid.target={0} \u306f\u7121\u52b9\u306a VM \u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3059\u3002
|
||||
javac.err.no.source.files=\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308a\u307e\u305b\u3093\u3002
|
||||
javac.err.req.arg={0} \u306b\u306f\u5f15\u6570\u304c\u5fc5\u8981\u3067\u3059
|
||||
javac.err.invalid.source={0} \u306f\u7121\u52b9\u306a\u30bd\u30fc\u30b9\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3059\u3002
|
||||
javac.err.error.writing.file={0} \u306e\u66f8\u304d\u8fbc\u307f\u30a8\u30e9\u30fc\u3067\u3059\u3002{1}
|
||||
javac.warn.source.target.conflict=\u30ea\u30ea\u30fc\u30b9 {0} \u306e\u30bd\u30fc\u30b9\u306b\u306f\u30ea\u30ea\u30fc\u30b9 {1} \u306e\u30bf\u30fc\u30b2\u30c3\u30c8\u304c\u5fc5\u8981\u3067\u3059\u3002
|
||||
javac.warn.target.default.source.conflict=\u30bf\u30fc\u30b2\u30c3\u30c8\u30ea\u30ea\u30fc\u30b9 {0} \u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30bd\u30fc\u30b9\u30ea\u30ea\u30fc\u30b9 {1} \u3068\u7af6\u5408\u3057\u3066\u3044\u307e\u3059\u3002
|
||||
javac.err.dir.not.found=\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u3042\u308a\u307e\u305b\u3093: {0}
|
||||
javac.err.file.not.found=\u30d5\u30a1\u30a4\u30eb\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093: {0}
|
||||
javac.err.file.not.directory=\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u306f\u3042\u308a\u307e\u305b\u3093: {0}
|
||||
javac.err.file.not.file=\u30d5\u30a1\u30a4\u30eb\u3067\u306f\u3042\u308a\u307e\u305b\u3093: {0}
|
||||
## messages
|
||||
|
||||
javac.msg.usage.header=\
|
||||
\u4f7f\u3044\u65b9: {0} <options> <source files>\n\
|
||||
\u4f7f\u7528\u53ef\u80fd\u306a\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u306f\u6b21\u306e\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002
|
||||
javac.msg.usage.header=\u4f7f\u3044\u65b9: {0} <options> <source files>\n\u4f7f\u7528\u53ef\u80fd\u306a\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u306f\u6b21\u306e\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002
|
||||
|
||||
javac.msg.usage=\
|
||||
\u4f7f\u3044\u65b9: {0} <options> <source files>\n\
|
||||
\u4f7f\u7528\u53ef\u80fd\u306a\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u30ea\u30b9\u30c8\u306b\u3064\u3044\u3066\u306f\u3001-help \u3092\u4f7f\u7528\u3057\u307e\u3059
|
||||
javac.msg.usage=\u4f7f\u3044\u65b9: {0} <options> <source files>\n\u4f7f\u7528\u53ef\u80fd\u306a\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u30ea\u30b9\u30c8\u306b\u3064\u3044\u3066\u306f\u3001-help \u3092\u4f7f\u7528\u3057\u307e\u3059
|
||||
|
||||
javac.msg.usage.nonstandard.footer=\
|
||||
\u3053\u308c\u3089\u306f\u975e\u6a19\u6e96\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u3042\u308a\u4e88\u544a\u306a\u3057\u306b\u5909\u66f4\u3055\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002
|
||||
javac.msg.usage.nonstandard.footer=\u3053\u308c\u3089\u306f\u975e\u6a19\u6e96\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u3042\u308a\u4e88\u544a\u306a\u3057\u306b\u5909\u66f4\u3055\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002
|
||||
|
||||
javac.msg.bug=\
|
||||
\u30b3\u30f3\u30d1\u30a4\u30e9\u3067\u4f8b\u5916\u304c\u767a\u751f\u3057\u307e\u3057\u305f ({0})\u3002\
|
||||
Bug Parade \u306b\u540c\u3058\u30d0\u30b0\u304c\u767b\u9332\u3055\u308c\u3066\u3044\u306a\u3044\u3053\u3068\u3092\u3054\u78ba\u8a8d\u306e\u4e0a\u3001Java Developer Connection \
|
||||
(http://java.sun.com/webapps/bugreport) \u306b\u3066\u30d0\u30b0\u306e\u767b\u9332\u3092\u304a\u9858\u3044\u3044\u305f\u3057\u307e\u3059\u3002\
|
||||
\u30ec\u30dd\u30fc\u30c8\u306b\u306f\u3001\u305d\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3068\u4e0b\u8a18\u306e\u8a3a\u65ad\u5185\u5bb9\u3092\u542b\u3081\u3066\u304f\u3060\u3055\u3044\u3002\u3054\u5354\u529b\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002
|
||||
javac.msg.bug=\u30b3\u30f3\u30d1\u30a4\u30e9\u3067\u4f8b\u5916\u304c\u767a\u751f\u3057\u307e\u3057\u305f ({0})\u3002Bug Parade \u306b\u540c\u3058\u30d0\u30b0\u304c\u767b\u9332\u3055\u308c\u3066\u3044\u306a\u3044\u3053\u3068\u3092\u3054\u78ba\u8a8d\u306e\u4e0a\u3001Java Developer Connection (http://java.sun.com/webapps/bugreport) \u306b\u3066\u30d0\u30b0\u306e\u767b\u9332\u3092\u304a\u9858\u3044\u3044\u305f\u3057\u307e\u3059\u3002\u30ec\u30dd\u30fc\u30c8\u306b\u306f\u3001\u305d\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3068\u4e0b\u8a18\u306e\u8a3a\u65ad\u5185\u5bb9\u3092\u542b\u3081\u3066\u304f\u3060\u3055\u3044\u3002\u3054\u5354\u529b\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002
|
||||
|
||||
javac.msg.io=\
|
||||
\n\n\u5165\u51fa\u529b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002\n\
|
||||
\u8a73\u7d30\u306f\u6b21\u306e\u30b9\u30bf\u30c3\u30af\u30c8\u30ec\u30fc\u30b9\u3067\u8abf\u67fb\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n
|
||||
javac.msg.io=\n\n\u5165\u51fa\u529b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002\n\u8a73\u7d30\u306f\u6b21\u306e\u30b9\u30bf\u30c3\u30af\u30c8\u30ec\u30fc\u30b9\u3067\u8abf\u67fb\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n
|
||||
|
||||
javac.msg.proc.annotation.uncaught.exception=\
|
||||
\n\n\u6ce8\u91c8\u51e6\u7406\u3067\u30ad\u30e3\u30c3\u30c1\u3055\u308c\u306a\u3044\u4f8b\u5916\u304c\u30b9\u30ed\u30fc\u3055\u308c\u307e\u3057\u305f\u3002\n\
|
||||
\u8a73\u7d30\u306f\u6b21\u306e\u30b9\u30bf\u30c3\u30af\u30c8\u30ec\u30fc\u30b9\u3067\u8abf\u67fb\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n
|
||||
javac.msg.proc.annotation.uncaught.exception=\n\n\u6ce8\u91c8\u51e6\u7406\u3067\u30ad\u30e3\u30c3\u30c1\u3055\u308c\u306a\u3044\u4f8b\u5916\u304c\u30b9\u30ed\u30fc\u3055\u308c\u307e\u3057\u305f\u3002\n\u8a73\u7d30\u306f\u6b21\u306e\u30b9\u30bf\u30c3\u30af\u30c8\u30ec\u30fc\u30b9\u3067\u8abf\u67fb\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n
|
||||
|
||||
javac.msg.resource=\
|
||||
\n\n\u30b7\u30b9\u30c6\u30e0\u30ea\u30bd\u30fc\u30b9\u304c\u4e0d\u8db3\u3057\u3066\u3044\u307e\u3059\u3002\n\
|
||||
\u8a73\u7d30\u306f\u6b21\u306e\u30b9\u30bf\u30c3\u30af\u30c8\u30ec\u30fc\u30b9\u3067\u8abf\u67fb\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n
|
||||
javac.msg.resource=\n\n\u30b7\u30b9\u30c6\u30e0\u30ea\u30bd\u30fc\u30b9\u304c\u4e0d\u8db3\u3057\u3066\u3044\u307e\u3059\u3002\n\u8a73\u7d30\u306f\u6b21\u306e\u30b9\u30bf\u30c3\u30af\u30c8\u30ec\u30fc\u30b9\u3067\u8abf\u67fb\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n
|
||||
|
||||
javac.version={0} {1}
|
||||
javac.fullVersion={0} \u30d5\u30eb\u30d0\u30fc\u30b8\u30e7\u30f3 "{1}"
|
||||
|
@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
|
||||
# Copyright 1999-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
|
||||
@ -25,184 +25,100 @@
|
||||
|
||||
## standard options
|
||||
|
||||
javac.opt.g=\
|
||||
\u751f\u6210\u6240\u6709\u8c03\u8bd5\u4fe1\u606f
|
||||
javac.opt.g.none=\
|
||||
\u4e0d\u751f\u6210\u4efb\u4f55\u8c03\u8bd5\u4fe1\u606f
|
||||
javac.opt.g.lines.vars.source=\
|
||||
\u53ea\u751f\u6210\u67d0\u4e9b\u8c03\u8bd5\u4fe1\u606f
|
||||
javac.opt.nowarn=\
|
||||
\u4e0d\u751f\u6210\u4efb\u4f55\u8b66\u544a
|
||||
javac.opt.verbose=\
|
||||
\u8f93\u51fa\u6709\u5173\u7f16\u8bd1\u5668\u6b63\u5728\u6267\u884c\u7684\u64cd\u4f5c\u7684\u6d88\u606f
|
||||
javac.opt.deprecation=\
|
||||
\u8f93\u51fa\u4f7f\u7528\u5df2\u8fc7\u65f6\u7684 API \u7684\u6e90\u4f4d\u7f6e
|
||||
javac.opt.classpath=\
|
||||
\u6307\u5b9a\u67e5\u627e\u7528\u6237\u7c7b\u6587\u4ef6\u548c\u6ce8\u91ca\u5904\u7406\u7a0b\u5e8f\u7684\u4f4d\u7f6e
|
||||
javac.opt.sourcepath=\
|
||||
\u6307\u5b9a\u67e5\u627e\u8f93\u5165\u6e90\u6587\u4ef6\u7684\u4f4d\u7f6e
|
||||
javac.opt.bootclasspath=\
|
||||
\u8986\u76d6\u5f15\u5bfc\u7c7b\u6587\u4ef6\u7684\u4f4d\u7f6e
|
||||
javac.opt.Xbootclasspath.p=\
|
||||
\u7f6e\u4e8e\u5f15\u5bfc\u7c7b\u8def\u5f84\u4e4b\u524d
|
||||
javac.opt.Xbootclasspath.a=\
|
||||
\u7f6e\u4e8e\u5f15\u5bfc\u7c7b\u8def\u5f84\u4e4b\u540e
|
||||
javac.opt.endorseddirs=\
|
||||
\u8986\u76d6\u7b7e\u540d\u7684\u6807\u51c6\u8def\u5f84\u7684\u4f4d\u7f6e
|
||||
javac.opt.extdirs=\
|
||||
\u8986\u76d6\u5b89\u88c5\u7684\u6269\u5c55\u76ee\u5f55\u7684\u4f4d\u7f6e
|
||||
javac.opt.processorpath=\
|
||||
\u6307\u5b9a\u67e5\u627e\u6ce8\u91ca\u5904\u7406\u7a0b\u5e8f\u7684\u4f4d\u7f6e
|
||||
javac.opt.processor=\
|
||||
\u8981\u8fd0\u884c\u7684\u6ce8\u91ca\u5904\u7406\u7a0b\u5e8f\u7684\u540d\u79f0\uff1b\u7ed5\u8fc7\u9ed8\u8ba4\u7684\u641c\u7d22\u8fdb\u7a0b
|
||||
javac.opt.proc.none.only=\
|
||||
\u63a7\u5236\u662f\u5426\u6267\u884c\u6ce8\u91ca\u5904\u7406\u548c/\u6216\u7f16\u8bd1\u3002
|
||||
javac.opt.d=\
|
||||
\u6307\u5b9a\u5b58\u653e\u751f\u6210\u7684\u7c7b\u6587\u4ef6\u7684\u4f4d\u7f6e
|
||||
javac.opt.sourceDest=\
|
||||
\u6307\u5b9a\u5b58\u653e\u751f\u6210\u7684\u6e90\u6587\u4ef6\u7684\u4f4d\u7f6e
|
||||
javac.opt.J=\
|
||||
\u76f4\u63a5\u5c06 <\u6807\u5fd7> \u4f20\u9012\u7ed9\u8fd0\u884c\u65f6\u7cfb\u7edf
|
||||
javac.opt.encoding=\
|
||||
\u6307\u5b9a\u6e90\u6587\u4ef6\u4f7f\u7528\u7684\u5b57\u7b26\u7f16\u7801
|
||||
javac.opt.target=\
|
||||
\u751f\u6210\u7279\u5b9a VM \u7248\u672c\u7684\u7c7b\u6587\u4ef6
|
||||
javac.opt.source=\
|
||||
\u63d0\u4f9b\u4e0e\u6307\u5b9a\u7248\u672c\u7684\u6e90\u517c\u5bb9\u6027
|
||||
javac.opt.A=\
|
||||
\u4f20\u9012\u7ed9\u6ce8\u91ca\u5904\u7406\u7a0b\u5e8f\u7684\u9009\u9879
|
||||
javac.opt.implicit=\
|
||||
\u6307\u5b9a\u662f\u5426\u4e3a\u9690\u5f0f\u5f15\u7528\u6587\u4ef6\u751f\u6210\u7c7b\u6587\u4ef6
|
||||
javac.opt.arg.class=\
|
||||
<class>
|
||||
javac.opt.arg.class.list=\
|
||||
<class1>[,<class2>,<class3>...]
|
||||
javac.opt.arg.flag=\
|
||||
<\u6807\u5fd7>
|
||||
javac.opt.arg.key.equals.value=\
|
||||
key[=value]
|
||||
javac.opt.arg.path=\
|
||||
<\u8def\u5f84>
|
||||
javac.opt.arg.dirs=\
|
||||
<\u76ee\u5f55>
|
||||
javac.opt.arg.directory=\
|
||||
<\u76ee\u5f55>
|
||||
javac.opt.arg.encoding=\
|
||||
<\u7f16\u7801>
|
||||
javac.opt.arg.release=\
|
||||
<\u7248\u672c>
|
||||
javac.opt.arg.number=\
|
||||
<\u7f16\u53f7>
|
||||
javac.opt.g=\u751f\u6210\u6240\u6709\u8c03\u8bd5\u4fe1\u606f
|
||||
javac.opt.g.none=\u4e0d\u751f\u6210\u4efb\u4f55\u8c03\u8bd5\u4fe1\u606f
|
||||
javac.opt.g.lines.vars.source=\u53ea\u751f\u6210\u67d0\u4e9b\u8c03\u8bd5\u4fe1\u606f
|
||||
javac.opt.nowarn=\u4e0d\u751f\u6210\u4efb\u4f55\u8b66\u544a
|
||||
javac.opt.verbose=\u8f93\u51fa\u6709\u5173\u7f16\u8bd1\u5668\u6b63\u5728\u6267\u884c\u7684\u64cd\u4f5c\u7684\u6d88\u606f
|
||||
javac.opt.deprecation=\u8f93\u51fa\u4f7f\u7528\u5df2\u8fc7\u65f6\u7684 API \u7684\u6e90\u4f4d\u7f6e
|
||||
javac.opt.classpath=\u6307\u5b9a\u67e5\u627e\u7528\u6237\u7c7b\u6587\u4ef6\u548c\u6ce8\u91ca\u5904\u7406\u7a0b\u5e8f\u7684\u4f4d\u7f6e
|
||||
javac.opt.sourcepath=\u6307\u5b9a\u67e5\u627e\u8f93\u5165\u6e90\u6587\u4ef6\u7684\u4f4d\u7f6e
|
||||
javac.opt.bootclasspath=\u8986\u76d6\u5f15\u5bfc\u7c7b\u6587\u4ef6\u7684\u4f4d\u7f6e
|
||||
javac.opt.Xbootclasspath.p=\u7f6e\u4e8e\u5f15\u5bfc\u7c7b\u8def\u5f84\u4e4b\u524d
|
||||
javac.opt.Xbootclasspath.a=\u7f6e\u4e8e\u5f15\u5bfc\u7c7b\u8def\u5f84\u4e4b\u540e
|
||||
javac.opt.endorseddirs=\u8986\u76d6\u7b7e\u540d\u7684\u6807\u51c6\u8def\u5f84\u7684\u4f4d\u7f6e
|
||||
javac.opt.extdirs=\u8986\u76d6\u5b89\u88c5\u7684\u6269\u5c55\u76ee\u5f55\u7684\u4f4d\u7f6e
|
||||
javac.opt.processorpath=\u6307\u5b9a\u67e5\u627e\u6ce8\u91ca\u5904\u7406\u7a0b\u5e8f\u7684\u4f4d\u7f6e
|
||||
javac.opt.processor=\u8981\u8fd0\u884c\u7684\u6ce8\u91ca\u5904\u7406\u7a0b\u5e8f\u7684\u540d\u79f0\uff1b\u7ed5\u8fc7\u9ed8\u8ba4\u7684\u641c\u7d22\u8fdb\u7a0b
|
||||
javac.opt.proc.none.only=\u63a7\u5236\u662f\u5426\u6267\u884c\u6ce8\u91ca\u5904\u7406\u548c/\u6216\u7f16\u8bd1\u3002
|
||||
javac.opt.d=\u6307\u5b9a\u5b58\u653e\u751f\u6210\u7684\u7c7b\u6587\u4ef6\u7684\u4f4d\u7f6e
|
||||
javac.opt.sourceDest=\u6307\u5b9a\u5b58\u653e\u751f\u6210\u7684\u6e90\u6587\u4ef6\u7684\u4f4d\u7f6e
|
||||
javac.opt.J=\u76f4\u63a5\u5c06 <\u6807\u5fd7> \u4f20\u9012\u7ed9\u8fd0\u884c\u65f6\u7cfb\u7edf
|
||||
javac.opt.encoding=\u6307\u5b9a\u6e90\u6587\u4ef6\u4f7f\u7528\u7684\u5b57\u7b26\u7f16\u7801
|
||||
javac.opt.target=\u751f\u6210\u7279\u5b9a VM \u7248\u672c\u7684\u7c7b\u6587\u4ef6
|
||||
javac.opt.source=\u63d0\u4f9b\u4e0e\u6307\u5b9a\u7248\u672c\u7684\u6e90\u517c\u5bb9\u6027
|
||||
javac.opt.Werror=\u51fa\u73b0\u8b66\u544a\u5219\u4e2d\u6b62\u7f16\u8bd1
|
||||
javac.opt.A=\u4f20\u9012\u7ed9\u6ce8\u91ca\u5904\u7406\u7a0b\u5e8f\u7684\u9009\u9879
|
||||
javac.opt.implicit=\u6307\u5b9a\u662f\u5426\u4e3a\u9690\u5f0f\u5f15\u7528\u6587\u4ef6\u751f\u6210\u7c7b\u6587\u4ef6
|
||||
javac.opt.arg.class=<class>
|
||||
javac.opt.arg.class.list=<class1>[,<class2>,<class3>...]
|
||||
javac.opt.arg.flag=<\u6807\u5fd7>
|
||||
javac.opt.arg.key.equals.value=key[=value]
|
||||
javac.opt.arg.path=<\u8def\u5f84>
|
||||
javac.opt.arg.dirs=<\u76ee\u5f55>
|
||||
javac.opt.arg.directory=<\u76ee\u5f55>
|
||||
javac.opt.arg.encoding=<\u7f16\u7801>
|
||||
javac.opt.arg.release=<\u7248\u672c>
|
||||
javac.opt.arg.number=<\u7f16\u53f7>
|
||||
|
||||
## extended options
|
||||
|
||||
javac.opt.maxerrs=\
|
||||
\u8bbe\u7f6e\u8981\u8f93\u51fa\u7684\u9519\u8bef\u7684\u6700\u5927\u6570\u76ee
|
||||
javac.opt.maxwarns=\
|
||||
\u8bbe\u7f6e\u8981\u8f93\u51fa\u7684\u8b66\u544a\u7684\u6700\u5927\u6570\u76ee
|
||||
javac.opt.nogj=\
|
||||
\u8bed\u8a00\u4e2d\u4e0d\u63a5\u53d7\u6cdb\u578b
|
||||
javac.opt.moreinfo=\
|
||||
\u8f93\u51fa\u7c7b\u578b\u53d8\u91cf\u7684\u6269\u5c55\u4fe1\u606f
|
||||
javac.opt.printflat=\
|
||||
\u5728\u5185\u90e8\u7c7b\u8f6c\u6362\u4e4b\u540e\u8f93\u51fa\u62bd\u8c61\u8bed\u6cd5\u6811
|
||||
javac.opt.printsearch=\
|
||||
\u8f93\u51fa\u6709\u5173\u641c\u7d22\u7c7b\u6587\u4ef6\u7684\u4f4d\u7f6e\u7684\u4fe1\u606f
|
||||
javac.opt.prompt=\
|
||||
\u5728\u6bcf\u6b21\u51fa\u9519\u540e\u505c\u6b62
|
||||
javac.opt.retrofit=\
|
||||
\u66f4\u65b0\u4f7f\u7528\u6cdb\u578b\u7684\u73b0\u6709\u7c7b\u6587\u4ef6
|
||||
javac.opt.s=\
|
||||
\u53d1\u51fa java \u6e90\u800c\u4e0d\u662f\u7c7b\u6587\u4ef6
|
||||
javac.opt.scramble=\
|
||||
\u5728\u5b57\u8282\u7801\u4e2d\u6df7\u6dc6\u4e13\u7528\u6807\u8bc6\u7b26
|
||||
javac.opt.scrambleall=\
|
||||
\u5728\u5b57\u8282\u7801\u4e2d\u6df7\u6dc6\u8f6f\u4ef6\u5305\u53ef\u89c1\u6807\u8bc6\u7b26
|
||||
javac.opt.version=\
|
||||
\u7248\u672c\u4fe1\u606f
|
||||
javac.opt.arg.pathname=\
|
||||
<\u8def\u5f84\u540d>
|
||||
javac.opt.arg.file=\
|
||||
<\u6587\u4ef6\u540d>
|
||||
javac.opt.Xlint=\
|
||||
\u542f\u7528\u5efa\u8bae\u7684\u8b66\u544a
|
||||
javac.opt.Xlint.suboptlist=\
|
||||
\u542f\u7528\u6216\u7981\u7528\u7279\u5b9a\u7684\u8b66\u544a
|
||||
javac.opt.Xstdout=\
|
||||
\u91cd\u5b9a\u5411\u6807\u51c6\u8f93\u51fa
|
||||
javac.opt.X=\
|
||||
\u8f93\u51fa\u975e\u6807\u51c6\u9009\u9879\u7684\u63d0\u8981
|
||||
javac.opt.help=\
|
||||
\u8f93\u51fa\u6807\u51c6\u9009\u9879\u7684\u63d0\u8981
|
||||
javac.opt.print=\
|
||||
\u8f93\u51fa\u6307\u5b9a\u7c7b\u578b\u7684\u6587\u672c\u8868\u793a
|
||||
javac.opt.printRounds=\
|
||||
\u8f93\u51fa\u6709\u5173\u6ce8\u91ca\u5904\u7406\u5faa\u73af\u7684\u4fe1\u606f
|
||||
javac.opt.printProcessorInfo=\
|
||||
\u8f93\u51fa\u6709\u5173\u8bf7\u6c42\u5904\u7406\u7a0b\u5e8f\u5904\u7406\u54ea\u4e9b\u6ce8\u91ca\u7684\u4fe1\u606f
|
||||
javac.opt.prefer=\
|
||||
\u6307\u5b9a\u8bfb\u53d6\u6587\u4ef6\uff0c\u5f53\u540c\u65f6\u627e\u5230\u9690\u5f0f\u7f16\u8bd1\u7c7b\u7684\u6e90\u6587\u4ef6\u548c\u7c7b\u6587\u4ef6\u65f6
|
||||
javac.opt.maxerrs=\u8bbe\u7f6e\u8981\u8f93\u51fa\u7684\u9519\u8bef\u7684\u6700\u5927\u6570\u76ee
|
||||
javac.opt.maxwarns=\u8bbe\u7f6e\u8981\u8f93\u51fa\u7684\u8b66\u544a\u7684\u6700\u5927\u6570\u76ee
|
||||
javac.opt.nogj=\u8bed\u8a00\u4e2d\u4e0d\u63a5\u53d7\u6cdb\u578b
|
||||
javac.opt.moreinfo=\u8f93\u51fa\u7c7b\u578b\u53d8\u91cf\u7684\u6269\u5c55\u4fe1\u606f
|
||||
javac.opt.printflat=\u5728\u5185\u90e8\u7c7b\u8f6c\u6362\u4e4b\u540e\u8f93\u51fa\u62bd\u8c61\u8bed\u6cd5\u6811
|
||||
javac.opt.printsearch=\u8f93\u51fa\u6709\u5173\u641c\u7d22\u7c7b\u6587\u4ef6\u7684\u4f4d\u7f6e\u7684\u4fe1\u606f
|
||||
javac.opt.prompt=\u5728\u6bcf\u6b21\u51fa\u9519\u540e\u505c\u6b62
|
||||
javac.opt.retrofit=\u66f4\u65b0\u4f7f\u7528\u6cdb\u578b\u7684\u73b0\u6709\u7c7b\u6587\u4ef6
|
||||
javac.opt.s=\u53d1\u51fa java \u6e90\u800c\u4e0d\u662f\u7c7b\u6587\u4ef6
|
||||
javac.opt.scramble=\u5728\u5b57\u8282\u7801\u4e2d\u6df7\u6dc6\u4e13\u7528\u6807\u8bc6\u7b26
|
||||
javac.opt.scrambleall=\u5728\u5b57\u8282\u7801\u4e2d\u6df7\u6dc6\u8f6f\u4ef6\u5305\u53ef\u89c1\u6807\u8bc6\u7b26
|
||||
javac.opt.version=\u7248\u672c\u4fe1\u606f
|
||||
javac.opt.arg.pathname=<\u8def\u5f84\u540d>
|
||||
javac.opt.arg.file=<\u6587\u4ef6\u540d>
|
||||
javac.opt.Xlint=\u542f\u7528\u5efa\u8bae\u7684\u8b66\u544a
|
||||
javac.opt.Xlint.suboptlist=\u542f\u7528\u6216\u7981\u7528\u7279\u5b9a\u7684\u8b66\u544a
|
||||
javac.opt.Xstdout=\u91cd\u5b9a\u5411\u6807\u51c6\u8f93\u51fa
|
||||
javac.opt.X=\u8f93\u51fa\u975e\u6807\u51c6\u9009\u9879\u7684\u63d0\u8981
|
||||
javac.opt.help=\u8f93\u51fa\u6807\u51c6\u9009\u9879\u7684\u63d0\u8981
|
||||
javac.opt.print=\u8f93\u51fa\u6307\u5b9a\u7c7b\u578b\u7684\u6587\u672c\u8868\u793a
|
||||
javac.opt.printRounds=\u8f93\u51fa\u6709\u5173\u6ce8\u91ca\u5904\u7406\u5faa\u73af\u7684\u4fe1\u606f
|
||||
javac.opt.printProcessorInfo=\u8f93\u51fa\u6709\u5173\u8bf7\u6c42\u5904\u7406\u7a0b\u5e8f\u5904\u7406\u54ea\u4e9b\u6ce8\u91ca\u7684\u4fe1\u606f
|
||||
javac.opt.prefer=\u6307\u5b9a\u8bfb\u53d6\u6587\u4ef6\uff0c\u5f53\u540c\u65f6\u627e\u5230\u9690\u5f0f\u7f16\u8bd1\u7c7b\u7684\u6e90\u6587\u4ef6\u548c\u7c7b\u6587\u4ef6\u65f6
|
||||
|
||||
## errors
|
||||
|
||||
javac.err.empty.A.argument=\
|
||||
-A \u9700\u8981\u4e00\u4e2a\u53c2\u6570\uff1b\u4f7f\u7528 ''-Akey'' \u6216 ''-Akey=value''
|
||||
javac.err.invalid.arg=\
|
||||
\u65e0\u6548\u7684\u53c2\u6570\uff1a {0}
|
||||
javac.err.invalid.A.key=\
|
||||
\u6ce8\u91ca\u5904\u7406\u5668\u9009\u9879"{0}"\u4e2d\u7684\u5173\u952e\u5b57\u4e0d\u662f\u4ee5\u70b9\u5206\u9694\u7684\u6807\u8bc6\u7b26\u5e8f\u5217
|
||||
javac.err.invalid.flag=\
|
||||
\u65e0\u6548\u7684\u6807\u5fd7\uff1a {0}
|
||||
javac.err.invalid.target=\
|
||||
\u65e0\u6548\u7684\u76ee\u6807\u7248\u672c\uff1a {0}
|
||||
javac.err.no.source.files=\
|
||||
\u65e0\u6e90\u6587\u4ef6
|
||||
javac.err.req.arg=\
|
||||
{0} \u9700\u8981\u53c2\u6570
|
||||
javac.err.invalid.source=\
|
||||
\u65e0\u6548\u7684\u6e90\u7248\u672c\uff1a {0}
|
||||
javac.err.error.writing.file=\
|
||||
\u5199\u5165 {0} \u65f6\u51fa\u9519\uff1b{1}
|
||||
javac.warn.source.target.conflict=\
|
||||
\u6e90\u7248\u672c {0} \u9700\u8981\u76ee\u6807\u7248\u672c {1}
|
||||
javac.warn.target.default.source.conflict=\
|
||||
\u76ee\u6807\u7248\u672c {0} \u4e0e\u9ed8\u8ba4\u7684\u6e90\u7248\u672c {1} \u51b2\u7a81
|
||||
javac.err.file.not.found=\
|
||||
\u627e\u4e0d\u5230\u6587\u4ef6\uff1a {0}
|
||||
javac.err.file.not.directory=\
|
||||
\u4e0d\u662f\u76ee\u5f55: {0}
|
||||
javac.err.file.not.file=\
|
||||
\u4e0d\u662f\u6587\u4ef6: {0}
|
||||
javac.err.empty.A.argument=-A \u9700\u8981\u4e00\u4e2a\u53c2\u6570\uff1b\u4f7f\u7528 ''-Akey'' \u6216 ''-Akey=value''
|
||||
javac.err.invalid.arg=\u65e0\u6548\u7684\u53c2\u6570\uff1a {0}
|
||||
javac.err.invalid.A.key=\u6ce8\u91ca\u5904\u7406\u5668\u9009\u9879"{0}"\u4e2d\u7684\u5173\u952e\u5b57\u4e0d\u662f\u4ee5\u70b9\u5206\u9694\u7684\u6807\u8bc6\u7b26\u5e8f\u5217
|
||||
javac.err.invalid.flag=\u65e0\u6548\u7684\u6807\u5fd7\uff1a {0}
|
||||
javac.err.invalid.target=\u65e0\u6548\u7684\u76ee\u6807\u7248\u672c\uff1a {0}
|
||||
javac.err.no.source.files=\u65e0\u6e90\u6587\u4ef6
|
||||
javac.err.req.arg={0} \u9700\u8981\u53c2\u6570
|
||||
javac.err.invalid.source=\u65e0\u6548\u7684\u6e90\u7248\u672c\uff1a {0}
|
||||
javac.err.error.writing.file=\u5199\u5165 {0} \u65f6\u51fa\u9519\uff1b{1}
|
||||
javac.warn.source.target.conflict=\u6e90\u7248\u672c {0} \u9700\u8981\u76ee\u6807\u7248\u672c {1}
|
||||
javac.warn.target.default.source.conflict=\u76ee\u6807\u7248\u672c {0} \u4e0e\u9ed8\u8ba4\u7684\u6e90\u7248\u672c {1} \u51b2\u7a81
|
||||
javac.err.dir.not.found=\u627e\u4e0d\u5230\u76ee\u5f55: {0}
|
||||
javac.err.file.not.found=\u627e\u4e0d\u5230\u6587\u4ef6\uff1a {0}
|
||||
javac.err.file.not.directory=\u4e0d\u662f\u76ee\u5f55: {0}
|
||||
javac.err.file.not.file=\u4e0d\u662f\u6587\u4ef6: {0}
|
||||
## messages
|
||||
|
||||
javac.msg.usage.header=\
|
||||
\u7528\u6cd5\uff1a{0} <\u9009\u9879> <\u6e90\u6587\u4ef6>\n\
|
||||
\u5176\u4e2d\uff0c\u53ef\u80fd\u7684\u9009\u9879\u5305\u62ec\uff1a
|
||||
javac.msg.usage.header=\u7528\u6cd5\uff1a{0} <\u9009\u9879> <\u6e90\u6587\u4ef6>\n\u5176\u4e2d\uff0c\u53ef\u80fd\u7684\u9009\u9879\u5305\u62ec\uff1a
|
||||
|
||||
javac.msg.usage=\
|
||||
\u7528\u6cd5: {0} <options> <source files>\n\
|
||||
-help \u7528\u4e8e\u5217\u51fa\u53ef\u80fd\u7684\u9009\u9879
|
||||
javac.msg.usage=\u7528\u6cd5: {0} <options> <source files>\n-help \u7528\u4e8e\u5217\u51fa\u53ef\u80fd\u7684\u9009\u9879
|
||||
|
||||
javac.msg.usage.nonstandard.footer=\
|
||||
\u8fd9\u4e9b\u9009\u9879\u90fd\u662f\u975e\u6807\u51c6\u9009\u9879\uff0c\u5982\u6709\u66f4\u6539\uff0c\u6055\u4e0d\u53e6\u884c\u901a\u77e5\u3002
|
||||
javac.msg.usage.nonstandard.footer=\u8fd9\u4e9b\u9009\u9879\u90fd\u662f\u975e\u6807\u51c6\u9009\u9879\uff0c\u5982\u6709\u66f4\u6539\uff0c\u6055\u4e0d\u53e6\u884c\u901a\u77e5\u3002
|
||||
|
||||
javac.msg.bug=\
|
||||
\u7f16\u8bd1\u5668 ({0}) \u4e2d\u51fa\u73b0\u5f02\u5e38\u3002 \
|
||||
\u5982\u679c\u5728 Bug Parade \u4e2d\u6ca1\u6709\u627e\u5230\u8be5\u9519\u8bef\uff0c\u8bf7\u5728 Java Developer Connection (http://java.sun.com/webapps/bugreport) \
|
||||
\u5bf9\u8be5\u9519\u8bef\u8fdb\u884c\u5f52\u6863\u3002 \
|
||||
\u8bf7\u5728\u62a5\u544a\u4e2d\u9644\u4e0a\u60a8\u7684\u7a0b\u5e8f\u548c\u4ee5\u4e0b\u8bca\u65ad\u4fe1\u606f\u3002\u8c22\u8c22\u60a8\u7684\u5408\u4f5c\u3002
|
||||
javac.msg.bug=\u7f16\u8bd1\u5668 ({0}) \u4e2d\u51fa\u73b0\u5f02\u5e38\u3002 \u5982\u679c\u5728 Bug Parade \u4e2d\u6ca1\u6709\u627e\u5230\u8be5\u9519\u8bef\uff0c\u8bf7\u5728 Java Developer Connection (http://java.sun.com/webapps/bugreport) \u5bf9\u8be5\u9519\u8bef\u8fdb\u884c\u5f52\u6863\u3002 \u8bf7\u5728\u62a5\u544a\u4e2d\u9644\u4e0a\u60a8\u7684\u7a0b\u5e8f\u548c\u4ee5\u4e0b\u8bca\u65ad\u4fe1\u606f\u3002\u8c22\u8c22\u60a8\u7684\u5408\u4f5c\u3002
|
||||
|
||||
javac.msg.io=\
|
||||
\n\n\u53d1\u751f\u8f93\u5165/\u8f93\u51fa\u9519\u8bef\u3002\n\
|
||||
\u6709\u5173\u8be6\u7ec6\u4fe1\u606f\uff0c\u8bf7\u53c2\u9605\u4ee5\u4e0b\u5806\u6808\u8ffd\u8e2a\u3002\n
|
||||
javac.msg.io=\n\n\u53d1\u751f\u8f93\u5165/\u8f93\u51fa\u9519\u8bef\u3002\n\u6709\u5173\u8be6\u7ec6\u4fe1\u606f\uff0c\u8bf7\u53c2\u9605\u4ee5\u4e0b\u5806\u6808\u8ffd\u8e2a\u3002\n
|
||||
|
||||
javac.msg.proc.annotation.uncaught.exception=\
|
||||
\n\n\u6ce8\u91ca\u5904\u7406\u7a0b\u5e8f\u629b\u51fa\u672a\u6355\u83b7\u7684\u5f02\u5e38\u3002\n\
|
||||
\u6709\u5173\u8be6\u7ec6\u4fe1\u606f\uff0c\u8bf7\u53c2\u9605\u4ee5\u4e0b\u5806\u6808\u8ffd\u8e2a\u3002\n
|
||||
javac.msg.proc.annotation.uncaught.exception=\n\n\u6ce8\u91ca\u5904\u7406\u7a0b\u5e8f\u629b\u51fa\u672a\u6355\u83b7\u7684\u5f02\u5e38\u3002\n\u6709\u5173\u8be6\u7ec6\u4fe1\u606f\uff0c\u8bf7\u53c2\u9605\u4ee5\u4e0b\u5806\u6808\u8ffd\u8e2a\u3002\n
|
||||
|
||||
javac.msg.resource=\
|
||||
\n\n\u7cfb\u7edf\u8d44\u6e90\u4e0d\u8db3\u3002\n\
|
||||
\u6709\u5173\u8be6\u7ec6\u4fe1\u606f\uff0c\u8bf7\u53c2\u9605\u4ee5\u4e0b\u5806\u6808\u8ffd\u8e2a\u3002\n
|
||||
javac.msg.resource=\n\n\u7cfb\u7edf\u8d44\u6e90\u4e0d\u8db3\u3002\n\u6709\u5173\u8be6\u7ec6\u4fe1\u606f\uff0c\u8bf7\u53c2\u9605\u4ee5\u4e0b\u5806\u6808\u8ffd\u8e2a\u3002\n
|
||||
|
||||
javac.version={0} {1}
|
||||
javac.fullVersion={0} \u5b8c\u6574\u7248\u672c "{1}"
|
||||
|
@ -1,3 +1,3 @@
|
||||
T6840059.java:15:9: compiler.err.cant.resolve.location.args: kindname.constructor, T6840059, , java.lang.String, kindname.class, T6840059
|
||||
T6840059.java:15:25: compiler.err.cant.resolve.location.args: kindname.constructor, T6840059, , , kindname.class, T6840059
|
||||
T6840059.java:15:9: compiler.err.cant.apply.symbol: kindname.constructor, T6840059, java.lang.Integer, java.lang.String, kindname.class, T6840059, null
|
||||
T6840059.java:15:25: compiler.err.cant.apply.symbol: kindname.constructor, T6840059, java.lang.Integer, compiler.misc.no.args, kindname.class, T6840059, null
|
||||
2 errors
|
||||
|
59
langtools/test/tools/javac/T6942649.java
Normal file
59
langtools/test/tools/javac/T6942649.java
Normal file
@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2010 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 6942649
|
||||
* @summary add hidden option to identify location and version of javac classes
|
||||
*/
|
||||
|
||||
import java.io.*;
|
||||
|
||||
public class T6942649 {
|
||||
public static void main(String... args) throws Exception {
|
||||
new T6942649().run();
|
||||
}
|
||||
|
||||
void run() throws Exception {
|
||||
test("-XDshowClass", "com.sun.tools.javac.Main");
|
||||
test("-XDshowClass=com.sun.tools.javac.util.Log", "com.sun.tools.javac.util.Log");
|
||||
}
|
||||
|
||||
void test(String opt, String clazz) throws Exception {
|
||||
System.err.println("test " + opt);
|
||||
StringWriter sw = new StringWriter();
|
||||
PrintWriter pw = new PrintWriter(sw);
|
||||
int rc = com.sun.tools.javac.Main.compile(new String[] { opt }, pw);
|
||||
pw.close();
|
||||
String out = sw.toString();
|
||||
System.err.println("javac rc=" + rc + "\n" + out);
|
||||
if (!out.contains(clazz))
|
||||
throw new Exception("class name not found in output");
|
||||
int lastDot = clazz.lastIndexOf(".");
|
||||
if (!out.contains(clazz.substring(lastDot + 1) + ".class"))
|
||||
throw new Exception("location of class not found in output");
|
||||
if (!out.contains("MD5 checksum: "))
|
||||
throw new Exception("checksum not found in output");
|
||||
}
|
||||
}
|
@ -1,10 +1,10 @@
|
||||
/*
|
||||
* @test /nodynamiccopyright/
|
||||
* @bug 6840638
|
||||
* @bug 6939620
|
||||
*
|
||||
* @summary Project Coin: Improved Type Inference for Generic Instance Creation (aka 'diamond')
|
||||
* @summary Switch to 'complex' diamond inference scheme
|
||||
* @author mcimadamore
|
||||
* @compile/fail/ref=Neg01.out Neg01.java -source 1.7 -XDrawDiagnostics
|
||||
* @compile/fail/ref=Neg01.out Neg01.java -XDrawDiagnostics
|
||||
*
|
||||
*/
|
||||
|
||||
@ -15,24 +15,24 @@ class Neg01<X extends Number> {
|
||||
<Z> Neg01(X x, Z z) {}
|
||||
|
||||
void test() {
|
||||
Neg01<String> n1 = new Neg01<>(""); //new Foo<Integer> created
|
||||
Neg01<? extends String> n2 = new Neg01<>(""); //new Foo<Integer> created
|
||||
Neg01<?> n3 = new Neg01<>(""); //new Foo<Object> created
|
||||
Neg01<? super String> n4 = new Neg01<>(""); //new Foo<Object> created
|
||||
Neg01<String> n1 = new Neg01<>("");
|
||||
Neg01<? extends String> n2 = new Neg01<>("");
|
||||
Neg01<?> n3 = new Neg01<>("");
|
||||
Neg01<? super String> n4 = new Neg01<>("");
|
||||
|
||||
Neg01<String> n5 = new Neg01<>(""){}; //new Foo<Integer> created
|
||||
Neg01<? extends String> n6 = new Neg01<>(""){}; //new Foo<Integer> created
|
||||
Neg01<?> n7 = new Neg01<>(""){}; //new Foo<Object> created
|
||||
Neg01<? super String> n8 = new Neg01<>(""){}; //new Foo<Object> created
|
||||
Neg01<String> n5 = new Neg01<>(""){};
|
||||
Neg01<? extends String> n6 = new Neg01<>(""){};
|
||||
Neg01<?> n7 = new Neg01<>(""){};
|
||||
Neg01<? super String> n8 = new Neg01<>(""){};
|
||||
|
||||
Neg01<String> n9 = new Neg01<>("", ""); //new Foo<Integer> created
|
||||
Neg01<? extends String> n10 = new Neg01<>("", ""); //new Foo<Integer> created
|
||||
Neg01<?> n11 = new Neg01<>("", ""); //new Foo<Object> created
|
||||
Foo<? super String> n12 = new Neg01<>("", ""); //new Foo<Object> created
|
||||
Neg01<String> n9 = new Neg01<>("", "");
|
||||
Neg01<? extends String> n10 = new Neg01<>("", "");
|
||||
Neg01<?> n11 = new Neg01<>("", "");
|
||||
Foo<? super String> n12 = new Neg01<>("", "");
|
||||
|
||||
Neg01<String> n13 = new Neg01<>("", ""){}; //new Foo<Integer> created
|
||||
Neg01<? extends String> n14 = new Neg01<>("", ""){}; //new Foo<Integer> created
|
||||
Neg01<?> n15 = new Neg01<>("", ""){}; //new Foo<Object> created
|
||||
Neg01<? super String> n16 = new Neg01<>("", ""){}; //new Foo<Object> created
|
||||
Neg01<String> n13 = new Neg01<>("", ""){};
|
||||
Neg01<? extends String> n14 = new Neg01<>("", ""){};
|
||||
Neg01<?> n15 = new Neg01<>("", ""){};
|
||||
Neg01<? super String> n16 = new Neg01<>("", ""){};
|
||||
}
|
||||
}
|
||||
|
@ -1,31 +1,29 @@
|
||||
Neg01.java:18:15: compiler.err.not.within.bounds: java.lang.String
|
||||
Neg01.java:18:37: compiler.err.cant.apply.diamond: X, (compiler.misc.no.conforming.instance.exists: X, Neg01<X>, Neg01<java.lang.String>)
|
||||
Neg01.java:18:28: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg01), null
|
||||
Neg01.java:19:15: compiler.err.not.within.bounds: ? extends java.lang.String
|
||||
Neg01.java:19:47: compiler.err.cant.apply.diamond: X, (compiler.misc.no.unique.maximal.instance.exists: X, java.lang.String,java.lang.Number)
|
||||
Neg01.java:20:23: compiler.err.cant.resolve.location.args: kindname.constructor, Neg01, , java.lang.String, kindname.class, Neg01<java.lang.Number>
|
||||
Neg01.java:19:38: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg01), null
|
||||
Neg01.java:20:23: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg01), null
|
||||
Neg01.java:21:15: compiler.err.not.within.bounds: ? super java.lang.String
|
||||
Neg01.java:21:45: compiler.err.cant.apply.diamond: X, (compiler.misc.no.conforming.instance.exists: X, Neg01<X>, Neg01<? super java.lang.String>)
|
||||
Neg01.java:21:36: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg01), null
|
||||
Neg01.java:23:15: compiler.err.not.within.bounds: java.lang.String
|
||||
Neg01.java:23:37: compiler.err.cant.apply.diamond: X, (compiler.misc.no.conforming.instance.exists: X, Neg01<X>, Neg01<java.lang.String>)
|
||||
Neg01.java:23:28: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg01), null
|
||||
Neg01.java:24:15: compiler.err.not.within.bounds: ? extends java.lang.String
|
||||
Neg01.java:24:47: compiler.err.cant.apply.diamond: X, (compiler.misc.no.unique.maximal.instance.exists: X, java.lang.String,java.lang.Number)
|
||||
Neg01.java:25:23: compiler.err.cant.resolve.location.args: kindname.constructor, Neg01, , java.lang.String, kindname.class, Neg01<java.lang.Number>
|
||||
Neg01.java:25:38: compiler.err.cant.resolve.location.args: kindname.constructor, Neg01, , , kindname.class, Neg01<java.lang.Number>
|
||||
Neg01.java:24:38: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg01), null
|
||||
Neg01.java:25:23: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg01), null
|
||||
Neg01.java:26:15: compiler.err.not.within.bounds: ? super java.lang.String
|
||||
Neg01.java:26:45: compiler.err.cant.apply.diamond: X, (compiler.misc.no.conforming.instance.exists: X, Neg01<X>, Neg01<? super java.lang.String>)
|
||||
Neg01.java:26:36: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg01), null
|
||||
Neg01.java:28:15: compiler.err.not.within.bounds: java.lang.String
|
||||
Neg01.java:28:37: compiler.err.cant.apply.diamond: X, (compiler.misc.no.conforming.instance.exists: X, Neg01<X>, Neg01<java.lang.String>)
|
||||
Neg01.java:28:28: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg01), null
|
||||
Neg01.java:29:15: compiler.err.not.within.bounds: ? extends java.lang.String
|
||||
Neg01.java:29:48: compiler.err.cant.apply.diamond: X, (compiler.misc.no.unique.maximal.instance.exists: X, java.lang.String,java.lang.Number)
|
||||
Neg01.java:30:24: compiler.err.cant.resolve.location.args: kindname.constructor, Neg01, , java.lang.String,java.lang.String, kindname.class, Neg01<java.lang.Number>
|
||||
Neg01.java:29:39: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg01), null
|
||||
Neg01.java:30:24: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg01), null
|
||||
Neg01.java:31:9: compiler.err.cant.resolve.location: kindname.class, Foo, , , kindname.class, Neg01<X>
|
||||
Neg01.java:31:35: compiler.err.cant.resolve.location.args: kindname.constructor, Neg01, , java.lang.String,java.lang.String, kindname.class, Neg01<java.lang.Number>
|
||||
Neg01.java:31:35: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg01), null
|
||||
Neg01.java:33:15: compiler.err.not.within.bounds: java.lang.String
|
||||
Neg01.java:33:38: compiler.err.cant.apply.diamond: X, (compiler.misc.no.conforming.instance.exists: X, Neg01<X>, Neg01<java.lang.String>)
|
||||
Neg01.java:33:29: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg01), null
|
||||
Neg01.java:34:15: compiler.err.not.within.bounds: ? extends java.lang.String
|
||||
Neg01.java:34:48: compiler.err.cant.apply.diamond: X, (compiler.misc.no.unique.maximal.instance.exists: X, java.lang.String,java.lang.Number)
|
||||
Neg01.java:35:24: compiler.err.cant.resolve.location.args: kindname.constructor, Neg01, , java.lang.String,java.lang.String, kindname.class, Neg01<java.lang.Number>
|
||||
Neg01.java:35:43: compiler.err.cant.resolve.location.args: kindname.constructor, Neg01, , , kindname.class, Neg01<java.lang.Number>
|
||||
Neg01.java:34:39: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg01), null
|
||||
Neg01.java:35:24: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg01), null
|
||||
Neg01.java:36:15: compiler.err.not.within.bounds: ? super java.lang.String
|
||||
Neg01.java:36:46: compiler.err.cant.apply.diamond: X, (compiler.misc.no.conforming.instance.exists: X, Neg01<X>, Neg01<? super java.lang.String>)
|
||||
30 errors
|
||||
Neg01.java:36:37: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg01), null
|
||||
28 errors
|
||||
|
@ -1,10 +1,10 @@
|
||||
/*
|
||||
* @test /nodynamiccopyright/
|
||||
* @bug 6840638
|
||||
* @bug 6939620
|
||||
*
|
||||
* @summary Project Coin: Improved Type Inference for Generic Instance Creation (aka 'diamond')
|
||||
* @summary Switch to 'complex' diamond inference scheme
|
||||
* @author mcimadamore
|
||||
* @compile/fail/ref=Neg02.out Neg02.java -source 1.7 -XDrawDiagnostics
|
||||
* @compile/fail/ref=Neg02.out Neg02.java -XDrawDiagnostics
|
||||
*
|
||||
*/
|
||||
|
||||
@ -16,46 +16,46 @@ class Neg02 {
|
||||
}
|
||||
|
||||
void testSimple() {
|
||||
Foo<String> f1 = new Foo<>(""); //new Foo<Integer> created
|
||||
Foo<? extends String> f2 = new Foo<>(""); //new Foo<Integer> created
|
||||
Foo<?> f3 = new Foo<>(""); //new Foo<Object> created
|
||||
Foo<? super String> f4 = new Foo<>(""); //new Foo<Object> created
|
||||
Foo<String> f1 = new Foo<>("");
|
||||
Foo<? extends String> f2 = new Foo<>("");
|
||||
Foo<?> f3 = new Foo<>("");
|
||||
Foo<? super String> f4 = new Foo<>("");
|
||||
|
||||
Foo<String> f5 = new Foo<>(""){}; //new Foo<Integer> created
|
||||
Foo<? extends String> f6 = new Foo<>(""){}; //new Foo<Integer> created
|
||||
Foo<?> f7 = new Foo<>(""){}; //new Foo<Object> created
|
||||
Foo<? super String> f8 = new Foo<>(""){}; //new Foo<Object> created
|
||||
Foo<String> f5 = new Foo<>(""){};
|
||||
Foo<? extends String> f6 = new Foo<>(""){};
|
||||
Foo<?> f7 = new Foo<>(""){};
|
||||
Foo<? super String> f8 = new Foo<>(""){};
|
||||
|
||||
Foo<String> f9 = new Foo<>("", ""); //new Foo<Integer> created
|
||||
Foo<? extends String> f10 = new Foo<>("", ""); //new Foo<Integer> created
|
||||
Foo<?> f11 = new Foo<>("", ""); //new Foo<Object> created
|
||||
Foo<? super String> f12 = new Foo<>("", ""); //new Foo<Object> created
|
||||
Foo<String> f9 = new Foo<>("", "");
|
||||
Foo<? extends String> f10 = new Foo<>("", "");
|
||||
Foo<?> f11 = new Foo<>("", "");
|
||||
Foo<? super String> f12 = new Foo<>("", "");
|
||||
|
||||
Foo<String> f13 = new Foo<>("", ""){}; //new Foo<Integer> created
|
||||
Foo<? extends String> f14 = new Foo<>("", ""){}; //new Foo<Integer> created
|
||||
Foo<?> f15 = new Foo<>("", ""){}; //new Foo<Object> created
|
||||
Foo<? super String> f16 = new Foo<>("", ""){}; //new Foo<Object> created
|
||||
Foo<String> f13 = new Foo<>("", ""){};
|
||||
Foo<? extends String> f14 = new Foo<>("", ""){};
|
||||
Foo<?> f15 = new Foo<>("", ""){};
|
||||
Foo<? super String> f16 = new Foo<>("", ""){};
|
||||
}
|
||||
|
||||
void testQualified() {
|
||||
Foo<String> f1 = new Neg02.Foo<>(""); //new Foo<Integer> created
|
||||
Foo<? extends String> f2 = new Neg02.Foo<>(""); //new Foo<Integer> created
|
||||
Foo<?> f3 = new Neg02.Foo<>(""); //new Foo<Object> created
|
||||
Foo<? super String> f4 = new Neg02.Foo<>(""); //new Foo<Object> created
|
||||
Foo<String> f1 = new Neg02.Foo<>("");
|
||||
Foo<? extends String> f2 = new Neg02.Foo<>("");
|
||||
Foo<?> f3 = new Neg02.Foo<>("");
|
||||
Foo<? super String> f4 = new Neg02.Foo<>("");
|
||||
|
||||
Foo<String> f5 = new Neg02.Foo<>(""){}; //new Foo<Integer> created
|
||||
Foo<? extends String> f6 = new Neg02.Foo<>(""){}; //new Foo<Integer> created
|
||||
Foo<?> f7 = new Neg02.Foo<>(""){}; //new Foo<Object> created
|
||||
Foo<? super String> f8 = new Neg02.Foo<>(""){}; //new Foo<Object> created
|
||||
Foo<String> f5 = new Neg02.Foo<>(""){};
|
||||
Foo<? extends String> f6 = new Neg02.Foo<>(""){};
|
||||
Foo<?> f7 = new Neg02.Foo<>(""){};
|
||||
Foo<? super String> f8 = new Neg02.Foo<>(""){};
|
||||
|
||||
Foo<String> f9 = new Neg02.Foo<>("", ""); //new Foo<Integer> created
|
||||
Foo<? extends String> f10 = new Neg02.Foo<>("", ""); //new Foo<Integer> created
|
||||
Foo<?> f11 = new Neg02.Foo<>("", ""); //new Foo<Object> created
|
||||
Foo<? super String> f12 = new Neg02.Foo<>("", ""); //new Foo<Object> created
|
||||
Foo<String> f9 = new Neg02.Foo<>("", "");
|
||||
Foo<? extends String> f10 = new Neg02.Foo<>("", "");
|
||||
Foo<?> f11 = new Neg02.Foo<>("", "");
|
||||
Foo<? super String> f12 = new Neg02.Foo<>("", "");
|
||||
|
||||
Foo<String> f13 = new Neg02.Foo<>("", ""){}; //new Foo<Integer> created
|
||||
Foo<? extends String> f14 = new Neg02.Foo<>("", ""){}; //new Foo<Integer> created
|
||||
Foo<?> f15 = new Neg02.Foo<>("", ""){}; //new Foo<Object> created
|
||||
Foo<? super String> f16 = new Neg02.Foo<>("", ""){}; //new Foo<Object> created
|
||||
Foo<String> f13 = new Neg02.Foo<>("", ""){};
|
||||
Foo<? extends String> f14 = new Neg02.Foo<>("", ""){};
|
||||
Foo<?> f15 = new Neg02.Foo<>("", ""){};
|
||||
Foo<? super String> f16 = new Neg02.Foo<>("", ""){};
|
||||
}
|
||||
}
|
||||
|
@ -1,61 +1,57 @@
|
||||
Neg02.java:19:13: compiler.err.not.within.bounds: java.lang.String
|
||||
Neg02.java:19:33: compiler.err.cant.apply.diamond: X, (compiler.misc.no.conforming.instance.exists: X, Neg02.Foo<X>, Neg02.Foo<java.lang.String>)
|
||||
Neg02.java:19:26: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg02.Foo), null
|
||||
Neg02.java:20:13: compiler.err.not.within.bounds: ? extends java.lang.String
|
||||
Neg02.java:20:43: compiler.err.cant.apply.diamond: X, (compiler.misc.no.unique.maximal.instance.exists: X, java.lang.String,java.lang.Number)
|
||||
Neg02.java:21:21: compiler.err.cant.resolve.location.args: kindname.constructor, Foo, , java.lang.String, kindname.class, Neg02.Foo<java.lang.Number>
|
||||
Neg02.java:20:36: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg02.Foo), null
|
||||
Neg02.java:21:21: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg02.Foo), null
|
||||
Neg02.java:22:13: compiler.err.not.within.bounds: ? super java.lang.String
|
||||
Neg02.java:22:41: compiler.err.cant.apply.diamond: X, (compiler.misc.no.conforming.instance.exists: X, Neg02.Foo<X>, Neg02.Foo<? super java.lang.String>)
|
||||
Neg02.java:22:34: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg02.Foo), null
|
||||
Neg02.java:24:13: compiler.err.not.within.bounds: java.lang.String
|
||||
Neg02.java:24:33: compiler.err.cant.apply.diamond: X, (compiler.misc.no.conforming.instance.exists: X, Neg02.Foo<X>, Neg02.Foo<java.lang.String>)
|
||||
Neg02.java:24:26: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg02.Foo), null
|
||||
Neg02.java:25:13: compiler.err.not.within.bounds: ? extends java.lang.String
|
||||
Neg02.java:25:43: compiler.err.cant.apply.diamond: X, (compiler.misc.no.unique.maximal.instance.exists: X, java.lang.String,java.lang.Number)
|
||||
Neg02.java:26:21: compiler.err.cant.resolve.location.args: kindname.constructor, Foo, , java.lang.String, kindname.class, Neg02.Foo<java.lang.Number>
|
||||
Neg02.java:26:34: compiler.err.cant.resolve.location.args: kindname.constructor, Foo, , , kindname.class, Neg02.Foo<java.lang.Number>
|
||||
Neg02.java:25:36: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg02.Foo), null
|
||||
Neg02.java:26:21: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg02.Foo), null
|
||||
Neg02.java:27:13: compiler.err.not.within.bounds: ? super java.lang.String
|
||||
Neg02.java:27:41: compiler.err.cant.apply.diamond: X, (compiler.misc.no.conforming.instance.exists: X, Neg02.Foo<X>, Neg02.Foo<? super java.lang.String>)
|
||||
Neg02.java:27:34: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg02.Foo), null
|
||||
Neg02.java:29:13: compiler.err.not.within.bounds: java.lang.String
|
||||
Neg02.java:29:33: compiler.err.cant.apply.diamond: X, (compiler.misc.no.conforming.instance.exists: X, Neg02.Foo<X>, Neg02.Foo<java.lang.String>)
|
||||
Neg02.java:29:26: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg02.Foo), null
|
||||
Neg02.java:30:13: compiler.err.not.within.bounds: ? extends java.lang.String
|
||||
Neg02.java:30:44: compiler.err.cant.apply.diamond: X, (compiler.misc.no.unique.maximal.instance.exists: X, java.lang.String,java.lang.Number)
|
||||
Neg02.java:31:22: compiler.err.cant.resolve.location.args: kindname.constructor, Foo, , java.lang.String,java.lang.String, kindname.class, Neg02.Foo<java.lang.Number>
|
||||
Neg02.java:30:37: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg02.Foo), null
|
||||
Neg02.java:31:22: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg02.Foo), null
|
||||
Neg02.java:32:13: compiler.err.not.within.bounds: ? super java.lang.String
|
||||
Neg02.java:32:42: compiler.err.cant.apply.diamond: X, (compiler.misc.no.conforming.instance.exists: X, Neg02.Foo<X>, Neg02.Foo<? super java.lang.String>)
|
||||
Neg02.java:32:35: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg02.Foo), null
|
||||
Neg02.java:34:13: compiler.err.not.within.bounds: java.lang.String
|
||||
Neg02.java:34:34: compiler.err.cant.apply.diamond: X, (compiler.misc.no.conforming.instance.exists: X, Neg02.Foo<X>, Neg02.Foo<java.lang.String>)
|
||||
Neg02.java:34:27: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg02.Foo), null
|
||||
Neg02.java:35:13: compiler.err.not.within.bounds: ? extends java.lang.String
|
||||
Neg02.java:35:44: compiler.err.cant.apply.diamond: X, (compiler.misc.no.unique.maximal.instance.exists: X, java.lang.String,java.lang.Number)
|
||||
Neg02.java:36:22: compiler.err.cant.resolve.location.args: kindname.constructor, Foo, , java.lang.String,java.lang.String, kindname.class, Neg02.Foo<java.lang.Number>
|
||||
Neg02.java:36:39: compiler.err.cant.resolve.location.args: kindname.constructor, Foo, , , kindname.class, Neg02.Foo<java.lang.Number>
|
||||
Neg02.java:35:37: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg02.Foo), null
|
||||
Neg02.java:36:22: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg02.Foo), null
|
||||
Neg02.java:37:13: compiler.err.not.within.bounds: ? super java.lang.String
|
||||
Neg02.java:37:42: compiler.err.cant.apply.diamond: X, (compiler.misc.no.conforming.instance.exists: X, Neg02.Foo<X>, Neg02.Foo<? super java.lang.String>)
|
||||
Neg02.java:37:35: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg02.Foo), null
|
||||
Neg02.java:41:13: compiler.err.not.within.bounds: java.lang.String
|
||||
Neg02.java:41:39: compiler.err.cant.apply.diamond: X, (compiler.misc.no.conforming.instance.exists: X, Neg02.Foo<X>, Neg02.Foo<java.lang.String>)
|
||||
Neg02.java:41:26: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg02.Foo), null
|
||||
Neg02.java:42:13: compiler.err.not.within.bounds: ? extends java.lang.String
|
||||
Neg02.java:42:49: compiler.err.cant.apply.diamond: X, (compiler.misc.no.unique.maximal.instance.exists: X, java.lang.String,java.lang.Number)
|
||||
Neg02.java:43:21: compiler.err.cant.resolve.location.args: kindname.constructor, Foo, , java.lang.String, kindname.class, Neg02.Foo<java.lang.Number>
|
||||
Neg02.java:42:36: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg02.Foo), null
|
||||
Neg02.java:43:21: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg02.Foo), null
|
||||
Neg02.java:44:13: compiler.err.not.within.bounds: ? super java.lang.String
|
||||
Neg02.java:44:47: compiler.err.cant.apply.diamond: X, (compiler.misc.no.conforming.instance.exists: X, Neg02.Foo<X>, Neg02.Foo<? super java.lang.String>)
|
||||
Neg02.java:44:34: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg02.Foo), null
|
||||
Neg02.java:46:13: compiler.err.not.within.bounds: java.lang.String
|
||||
Neg02.java:46:39: compiler.err.cant.apply.diamond: X, (compiler.misc.no.conforming.instance.exists: X, Neg02.Foo<X>, Neg02.Foo<java.lang.String>)
|
||||
Neg02.java:46:26: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg02.Foo), null
|
||||
Neg02.java:47:13: compiler.err.not.within.bounds: ? extends java.lang.String
|
||||
Neg02.java:47:49: compiler.err.cant.apply.diamond: X, (compiler.misc.no.unique.maximal.instance.exists: X, java.lang.String,java.lang.Number)
|
||||
Neg02.java:48:21: compiler.err.cant.resolve.location.args: kindname.constructor, Foo, , java.lang.String, kindname.class, Neg02.Foo<java.lang.Number>
|
||||
Neg02.java:48:40: compiler.err.cant.resolve.location.args: kindname.constructor, Foo, , , kindname.class, Neg02.Foo<java.lang.Number>
|
||||
Neg02.java:47:36: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg02.Foo), null
|
||||
Neg02.java:48:21: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg02.Foo), null
|
||||
Neg02.java:49:13: compiler.err.not.within.bounds: ? super java.lang.String
|
||||
Neg02.java:49:47: compiler.err.cant.apply.diamond: X, (compiler.misc.no.conforming.instance.exists: X, Neg02.Foo<X>, Neg02.Foo<? super java.lang.String>)
|
||||
Neg02.java:49:34: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg02.Foo), null
|
||||
Neg02.java:51:13: compiler.err.not.within.bounds: java.lang.String
|
||||
Neg02.java:51:39: compiler.err.cant.apply.diamond: X, (compiler.misc.no.conforming.instance.exists: X, Neg02.Foo<X>, Neg02.Foo<java.lang.String>)
|
||||
Neg02.java:51:26: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg02.Foo), null
|
||||
Neg02.java:52:13: compiler.err.not.within.bounds: ? extends java.lang.String
|
||||
Neg02.java:52:50: compiler.err.cant.apply.diamond: X, (compiler.misc.no.unique.maximal.instance.exists: X, java.lang.String,java.lang.Number)
|
||||
Neg02.java:53:22: compiler.err.cant.resolve.location.args: kindname.constructor, Foo, , java.lang.String,java.lang.String, kindname.class, Neg02.Foo<java.lang.Number>
|
||||
Neg02.java:52:37: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg02.Foo), null
|
||||
Neg02.java:53:22: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg02.Foo), null
|
||||
Neg02.java:54:13: compiler.err.not.within.bounds: ? super java.lang.String
|
||||
Neg02.java:54:48: compiler.err.cant.apply.diamond: X, (compiler.misc.no.conforming.instance.exists: X, Neg02.Foo<X>, Neg02.Foo<? super java.lang.String>)
|
||||
Neg02.java:54:35: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg02.Foo), null
|
||||
Neg02.java:56:13: compiler.err.not.within.bounds: java.lang.String
|
||||
Neg02.java:56:40: compiler.err.cant.apply.diamond: X, (compiler.misc.no.conforming.instance.exists: X, Neg02.Foo<X>, Neg02.Foo<java.lang.String>)
|
||||
Neg02.java:56:27: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg02.Foo), null
|
||||
Neg02.java:57:13: compiler.err.not.within.bounds: ? extends java.lang.String
|
||||
Neg02.java:57:50: compiler.err.cant.apply.diamond: X, (compiler.misc.no.unique.maximal.instance.exists: X, java.lang.String,java.lang.Number)
|
||||
Neg02.java:58:22: compiler.err.cant.resolve.location.args: kindname.constructor, Foo, , java.lang.String,java.lang.String, kindname.class, Neg02.Foo<java.lang.Number>
|
||||
Neg02.java:58:45: compiler.err.cant.resolve.location.args: kindname.constructor, Foo, , , kindname.class, Neg02.Foo<java.lang.Number>
|
||||
Neg02.java:57:37: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg02.Foo), null
|
||||
Neg02.java:58:22: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg02.Foo), null
|
||||
Neg02.java:59:13: compiler.err.not.within.bounds: ? super java.lang.String
|
||||
Neg02.java:59:48: compiler.err.cant.apply.diamond: X, (compiler.misc.no.conforming.instance.exists: X, Neg02.Foo<X>, Neg02.Foo<? super java.lang.String>)
|
||||
60 errors
|
||||
Neg02.java:59:35: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg02.Foo), null
|
||||
56 errors
|
||||
|
@ -1,10 +1,10 @@
|
||||
/*
|
||||
* @test /nodynamiccopyright/
|
||||
* @bug 6840638
|
||||
* @bug 6939620
|
||||
*
|
||||
* @summary Project Coin: Improved Type Inference for Generic Instance Creation (aka 'diamond')
|
||||
* @summary Switch to 'complex' diamond inference scheme
|
||||
* @author mcimadamore
|
||||
* @compile/fail/ref=Neg03.out Neg03.java -source 1.7 -XDrawDiagnostics
|
||||
* @compile/fail/ref=Neg03.out Neg03.java -XDrawDiagnostics
|
||||
*
|
||||
*/
|
||||
|
||||
@ -16,68 +16,68 @@ class Neg03<U> {
|
||||
}
|
||||
|
||||
void testSimple() {
|
||||
Foo<String> f1 = new Foo<>(""); //new Foo<Integer> created
|
||||
Foo<? extends String> f2 = new Foo<>(""); //new Foo<Integer> created
|
||||
Foo<?> f3 = new Foo<>(""); //new Foo<Object> created
|
||||
Foo<? super String> f4 = new Foo<>(""); //new Foo<Object> created
|
||||
Foo<String> f1 = new Foo<>("");
|
||||
Foo<? extends String> f2 = new Foo<>("");
|
||||
Foo<?> f3 = new Foo<>("");
|
||||
Foo<? super String> f4 = new Foo<>("");
|
||||
|
||||
Foo<String> f5 = new Foo<>(""){}; //new Foo<Integer> created
|
||||
Foo<? extends String> f6 = new Foo<>(""){}; //new Foo<Integer> created
|
||||
Foo<?> f7 = new Foo<>(""){}; //new Foo<Object> created
|
||||
Foo<? super String> f8 = new Foo<>(""){}; //new Foo<Object> created
|
||||
Foo<String> f5 = new Foo<>(""){};
|
||||
Foo<? extends String> f6 = new Foo<>(""){};
|
||||
Foo<?> f7 = new Foo<>(""){};
|
||||
Foo<? super String> f8 = new Foo<>(""){};
|
||||
|
||||
Foo<String> f9 = new Foo<>("", ""); //new Foo<Integer> created
|
||||
Foo<? extends String> f10 = new Foo<>("", ""); //new Foo<Integer> created
|
||||
Foo<?> f11 = new Foo<>("", ""); //new Foo<Object> created
|
||||
Foo<? super String> f12 = new Foo<>("", ""); //new Foo<Object> created
|
||||
Foo<String> f9 = new Foo<>("", "");
|
||||
Foo<? extends String> f10 = new Foo<>("", "");
|
||||
Foo<?> f11 = new Foo<>("", "");
|
||||
Foo<? super String> f12 = new Foo<>("", "");
|
||||
|
||||
Foo<String> f13 = new Foo<>("", ""){}; //new Foo<Integer> created
|
||||
Foo<? extends String> f14 = new Foo<>("", ""){}; //new Foo<Integer> created
|
||||
Foo<?> f15 = new Foo<>("", ""){}; //new Foo<Object> created
|
||||
Foo<? super String> f16 = new Foo<>("", ""){}; //new Foo<Object> created
|
||||
Foo<String> f13 = new Foo<>("", ""){};
|
||||
Foo<? extends String> f14 = new Foo<>("", ""){};
|
||||
Foo<?> f15 = new Foo<>("", ""){};
|
||||
Foo<? super String> f16 = new Foo<>("", ""){};
|
||||
}
|
||||
|
||||
void testQualified_1() {
|
||||
Foo<String> f1 = new Neg03<U>.Foo<>(""); //new Foo<Integer> created
|
||||
Foo<? extends String> f2 = new Neg03<U>.Foo<>(""); //new Foo<Integer> created
|
||||
Foo<?> f3 = new Neg03<U>.Foo<>(""); //new Foo<Object> created
|
||||
Foo<? super String> f4 = new Neg03<U>.Foo<>(""); //new Foo<Object> created
|
||||
Foo<String> f1 = new Neg03<U>.Foo<>("");
|
||||
Foo<? extends String> f2 = new Neg03<U>.Foo<>("");
|
||||
Foo<?> f3 = new Neg03<U>.Foo<>("");
|
||||
Foo<? super String> f4 = new Neg03<U>.Foo<>("");
|
||||
|
||||
Foo<String> f5 = new Neg03<U>.Foo<>(""){}; //new Foo<Integer> created
|
||||
Foo<? extends String> f6 = new Neg03<U>.Foo<>(""){}; //new Foo<Integer> created
|
||||
Foo<?> f7 = new Neg03<U>.Foo<>(""){}; //new Foo<Object> created
|
||||
Foo<? super String> f8 = new Neg03<U>.Foo<>(""){}; //new Foo<Object> created
|
||||
Foo<String> f5 = new Neg03<U>.Foo<>(""){};
|
||||
Foo<? extends String> f6 = new Neg03<U>.Foo<>(""){};
|
||||
Foo<?> f7 = new Neg03<U>.Foo<>(""){};
|
||||
Foo<? super String> f8 = new Neg03<U>.Foo<>(""){};
|
||||
|
||||
Foo<String> f9 = new Neg03<U>.Foo<>("", ""); //new Foo<Integer> created
|
||||
Foo<? extends String> f10 = new Neg03<U>.Foo<>("", ""); //new Foo<Integer> created
|
||||
Foo<?> f11 = new Neg03<U>.Foo<>("", ""); //new Foo<Object> created
|
||||
Foo<? super String> f12 = new Neg03<U>.Foo<>("", ""); //new Foo<Object> created
|
||||
Foo<String> f9 = new Neg03<U>.Foo<>("", "");
|
||||
Foo<? extends String> f10 = new Neg03<U>.Foo<>("", "");
|
||||
Foo<?> f11 = new Neg03<U>.Foo<>("", "");
|
||||
Foo<? super String> f12 = new Neg03<U>.Foo<>("", "");
|
||||
|
||||
Foo<String> f13 = new Neg03<U>.Foo<>("", ""){}; //new Foo<Integer> created
|
||||
Foo<? extends String> f14 = new Neg03<U>.Foo<>("", ""){}; //new Foo<Integer> created
|
||||
Foo<?> f15 = new Neg03<U>.Foo<>("", ""){}; //new Foo<Object> created
|
||||
Foo<? super String> f16 = new Neg03<U>.Foo<>("", ""){}; //new Foo<Object> created
|
||||
Foo<String> f13 = new Neg03<U>.Foo<>("", ""){};
|
||||
Foo<? extends String> f14 = new Neg03<U>.Foo<>("", ""){};
|
||||
Foo<?> f15 = new Neg03<U>.Foo<>("", ""){};
|
||||
Foo<? super String> f16 = new Neg03<U>.Foo<>("", ""){};
|
||||
}
|
||||
|
||||
void testQualified_2(Neg03<U> n) {
|
||||
Foo<String> f1 = n.new Foo<>(""); //new Foo<Integer> created
|
||||
Foo<? extends String> f2 = n.new Foo<>(""); //new Foo<Integer> created
|
||||
Foo<?> f3 = n.new Foo<>(""); //new Foo<Integer> created
|
||||
Foo<? super String> f4 = n.new Foo<>(""); //new Foo<Integer> created
|
||||
Foo<String> f1 = n.new Foo<>("");
|
||||
Foo<? extends String> f2 = n.new Foo<>("");
|
||||
Foo<?> f3 = n.new Foo<>("");
|
||||
Foo<? super String> f4 = n.new Foo<>("");
|
||||
|
||||
Foo<String> f5 = n.new Foo<>(""){}; //new Foo<Integer> created
|
||||
Foo<? extends String> f6 = n.new Foo<>(""){}; //new Foo<Integer> created
|
||||
Foo<?> f7 = n.new Foo<>(""){}; //new Foo<Integer> created
|
||||
Foo<? super String> f8 = n.new Foo<>(""){}; //new Foo<Integer> created
|
||||
Foo<String> f5 = n.new Foo<>(""){};
|
||||
Foo<? extends String> f6 = n.new Foo<>(""){};
|
||||
Foo<?> f7 = n.new Foo<>(""){};
|
||||
Foo<? super String> f8 = n.new Foo<>(""){};
|
||||
|
||||
Foo<String> f9 = n.new Foo<>("", ""); //new Foo<Integer> created
|
||||
Foo<? extends String> f10 = n.new Foo<>("", ""); //new Foo<Integer> created
|
||||
Foo<?> f11 = n.new Foo<>("", ""); //new Foo<Integer> created
|
||||
Foo<? super String> f12 = n.new Foo<>("", ""); //new Foo<Integer> created
|
||||
Foo<String> f9 = n.new Foo<>("", "");
|
||||
Foo<? extends String> f10 = n.new Foo<>("", "");
|
||||
Foo<?> f11 = n.new Foo<>("", "");
|
||||
Foo<? super String> f12 = n.new Foo<>("", "");
|
||||
|
||||
Foo<String> f13 = n.new Foo<>("", ""){}; //new Foo<Integer> created
|
||||
Foo<? extends String> f14 = n.new Foo<>("", ""){}; //new Foo<Integer> created
|
||||
Foo<?> f15 = n.new Foo<>("", ""){}; //new Foo<Integer> created
|
||||
Foo<? super String> f16 = n.new Foo<>("", ""){}; //new Foo<Integer> created
|
||||
Foo<String> f13 = n.new Foo<>("", ""){};
|
||||
Foo<? extends String> f14 = n.new Foo<>("", ""){};
|
||||
Foo<?> f15 = n.new Foo<>("", ""){};
|
||||
Foo<? super String> f16 = n.new Foo<>("", ""){};
|
||||
}
|
||||
}
|
||||
|
@ -1,91 +1,85 @@
|
||||
Neg03.java:19:13: compiler.err.not.within.bounds: java.lang.String
|
||||
Neg03.java:19:33: compiler.err.cant.apply.diamond: V, (compiler.misc.no.conforming.instance.exists: V, Neg03<U>.Foo<V>, Neg03<U>.Foo<java.lang.String>)
|
||||
Neg03.java:19:26: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:20:13: compiler.err.not.within.bounds: ? extends java.lang.String
|
||||
Neg03.java:20:43: compiler.err.cant.apply.diamond: V, (compiler.misc.no.unique.maximal.instance.exists: V, java.lang.String,java.lang.Number)
|
||||
Neg03.java:21:21: compiler.err.cant.resolve.location.args: kindname.constructor, Foo, , java.lang.String, kindname.class, Neg03<U>.Foo<java.lang.Number>
|
||||
Neg03.java:20:36: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:21:21: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:22:13: compiler.err.not.within.bounds: ? super java.lang.String
|
||||
Neg03.java:22:41: compiler.err.cant.apply.diamond: V, (compiler.misc.no.conforming.instance.exists: V, Neg03<U>.Foo<V>, Neg03<U>.Foo<? super java.lang.String>)
|
||||
Neg03.java:22:34: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:24:13: compiler.err.not.within.bounds: java.lang.String
|
||||
Neg03.java:24:33: compiler.err.cant.apply.diamond: V, (compiler.misc.no.conforming.instance.exists: V, Neg03<U>.Foo<V>, Neg03<U>.Foo<java.lang.String>)
|
||||
Neg03.java:24:26: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:25:13: compiler.err.not.within.bounds: ? extends java.lang.String
|
||||
Neg03.java:25:43: compiler.err.cant.apply.diamond: V, (compiler.misc.no.unique.maximal.instance.exists: V, java.lang.String,java.lang.Number)
|
||||
Neg03.java:26:21: compiler.err.cant.resolve.location.args: kindname.constructor, Foo, , java.lang.String, kindname.class, Neg03<U>.Foo<java.lang.Number>
|
||||
Neg03.java:26:34: compiler.err.cant.resolve.location.args: kindname.constructor, Foo, , , kindname.class, Neg03<U>.Foo<java.lang.Number>
|
||||
Neg03.java:25:36: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:26:21: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:27:13: compiler.err.not.within.bounds: ? super java.lang.String
|
||||
Neg03.java:27:41: compiler.err.cant.apply.diamond: V, (compiler.misc.no.conforming.instance.exists: V, Neg03<U>.Foo<V>, Neg03<U>.Foo<? super java.lang.String>)
|
||||
Neg03.java:27:34: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:29:13: compiler.err.not.within.bounds: java.lang.String
|
||||
Neg03.java:29:33: compiler.err.cant.apply.diamond: V, (compiler.misc.no.conforming.instance.exists: V, Neg03<U>.Foo<V>, Neg03<U>.Foo<java.lang.String>)
|
||||
Neg03.java:29:26: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:30:13: compiler.err.not.within.bounds: ? extends java.lang.String
|
||||
Neg03.java:30:44: compiler.err.cant.apply.diamond: V, (compiler.misc.no.unique.maximal.instance.exists: V, java.lang.String,java.lang.Number)
|
||||
Neg03.java:31:22: compiler.err.cant.resolve.location.args: kindname.constructor, Foo, , java.lang.String,java.lang.String, kindname.class, Neg03<U>.Foo<java.lang.Number>
|
||||
Neg03.java:30:37: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:31:22: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:32:13: compiler.err.not.within.bounds: ? super java.lang.String
|
||||
Neg03.java:32:42: compiler.err.cant.apply.diamond: V, (compiler.misc.no.conforming.instance.exists: V, Neg03<U>.Foo<V>, Neg03<U>.Foo<? super java.lang.String>)
|
||||
Neg03.java:32:35: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:34:13: compiler.err.not.within.bounds: java.lang.String
|
||||
Neg03.java:34:34: compiler.err.cant.apply.diamond: V, (compiler.misc.no.conforming.instance.exists: V, Neg03<U>.Foo<V>, Neg03<U>.Foo<java.lang.String>)
|
||||
Neg03.java:34:27: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:35:13: compiler.err.not.within.bounds: ? extends java.lang.String
|
||||
Neg03.java:35:44: compiler.err.cant.apply.diamond: V, (compiler.misc.no.unique.maximal.instance.exists: V, java.lang.String,java.lang.Number)
|
||||
Neg03.java:36:22: compiler.err.cant.resolve.location.args: kindname.constructor, Foo, , java.lang.String,java.lang.String, kindname.class, Neg03<U>.Foo<java.lang.Number>
|
||||
Neg03.java:36:39: compiler.err.cant.resolve.location.args: kindname.constructor, Foo, , , kindname.class, Neg03<U>.Foo<java.lang.Number>
|
||||
Neg03.java:35:37: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:36:22: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:37:13: compiler.err.not.within.bounds: ? super java.lang.String
|
||||
Neg03.java:37:42: compiler.err.cant.apply.diamond: V, (compiler.misc.no.conforming.instance.exists: V, Neg03<U>.Foo<V>, Neg03<U>.Foo<? super java.lang.String>)
|
||||
Neg03.java:37:35: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:41:13: compiler.err.not.within.bounds: java.lang.String
|
||||
Neg03.java:41:42: compiler.err.cant.apply.diamond: V, (compiler.misc.no.conforming.instance.exists: V, Neg03<U>.Foo<V>, Neg03<U>.Foo<java.lang.String>)
|
||||
Neg03.java:41:26: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:42:13: compiler.err.not.within.bounds: ? extends java.lang.String
|
||||
Neg03.java:42:52: compiler.err.cant.apply.diamond: V, (compiler.misc.no.unique.maximal.instance.exists: V, java.lang.String,java.lang.Number)
|
||||
Neg03.java:43:21: compiler.err.cant.resolve.location.args: kindname.constructor, Foo, , java.lang.String, kindname.class, Neg03<U>.Foo<java.lang.Number>
|
||||
Neg03.java:42:36: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:43:21: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:44:13: compiler.err.not.within.bounds: ? super java.lang.String
|
||||
Neg03.java:44:50: compiler.err.cant.apply.diamond: V, (compiler.misc.no.conforming.instance.exists: V, Neg03<U>.Foo<V>, Neg03<U>.Foo<? super java.lang.String>)
|
||||
Neg03.java:44:34: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:46:13: compiler.err.not.within.bounds: java.lang.String
|
||||
Neg03.java:46:42: compiler.err.cant.apply.diamond: V, (compiler.misc.no.conforming.instance.exists: V, Neg03<U>.Foo<V>, Neg03<U>.Foo<java.lang.String>)
|
||||
Neg03.java:46:26: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:47:13: compiler.err.not.within.bounds: ? extends java.lang.String
|
||||
Neg03.java:47:52: compiler.err.cant.apply.diamond: V, (compiler.misc.no.unique.maximal.instance.exists: V, java.lang.String,java.lang.Number)
|
||||
Neg03.java:48:21: compiler.err.cant.resolve.location.args: kindname.constructor, Foo, , java.lang.String, kindname.class, Neg03<U>.Foo<java.lang.Number>
|
||||
Neg03.java:48:43: compiler.err.cant.resolve.location.args: kindname.constructor, Foo, , , kindname.class, Neg03<U>.Foo<java.lang.Number>
|
||||
Neg03.java:47:36: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:48:21: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:49:13: compiler.err.not.within.bounds: ? super java.lang.String
|
||||
Neg03.java:49:50: compiler.err.cant.apply.diamond: V, (compiler.misc.no.conforming.instance.exists: V, Neg03<U>.Foo<V>, Neg03<U>.Foo<? super java.lang.String>)
|
||||
Neg03.java:49:34: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:51:13: compiler.err.not.within.bounds: java.lang.String
|
||||
Neg03.java:51:42: compiler.err.cant.apply.diamond: V, (compiler.misc.no.conforming.instance.exists: V, Neg03<U>.Foo<V>, Neg03<U>.Foo<java.lang.String>)
|
||||
Neg03.java:51:26: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:52:13: compiler.err.not.within.bounds: ? extends java.lang.String
|
||||
Neg03.java:52:53: compiler.err.cant.apply.diamond: V, (compiler.misc.no.unique.maximal.instance.exists: V, java.lang.String,java.lang.Number)
|
||||
Neg03.java:53:22: compiler.err.cant.resolve.location.args: kindname.constructor, Foo, , java.lang.String,java.lang.String, kindname.class, Neg03<U>.Foo<java.lang.Number>
|
||||
Neg03.java:52:37: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:53:22: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:54:13: compiler.err.not.within.bounds: ? super java.lang.String
|
||||
Neg03.java:54:51: compiler.err.cant.apply.diamond: V, (compiler.misc.no.conforming.instance.exists: V, Neg03<U>.Foo<V>, Neg03<U>.Foo<? super java.lang.String>)
|
||||
Neg03.java:54:35: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:56:13: compiler.err.not.within.bounds: java.lang.String
|
||||
Neg03.java:56:43: compiler.err.cant.apply.diamond: V, (compiler.misc.no.conforming.instance.exists: V, Neg03<U>.Foo<V>, Neg03<U>.Foo<java.lang.String>)
|
||||
Neg03.java:56:27: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:57:13: compiler.err.not.within.bounds: ? extends java.lang.String
|
||||
Neg03.java:57:53: compiler.err.cant.apply.diamond: V, (compiler.misc.no.unique.maximal.instance.exists: V, java.lang.String,java.lang.Number)
|
||||
Neg03.java:58:22: compiler.err.cant.resolve.location.args: kindname.constructor, Foo, , java.lang.String,java.lang.String, kindname.class, Neg03<U>.Foo<java.lang.Number>
|
||||
Neg03.java:58:48: compiler.err.cant.resolve.location.args: kindname.constructor, Foo, , , kindname.class, Neg03<U>.Foo<java.lang.Number>
|
||||
Neg03.java:57:37: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:58:22: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:59:13: compiler.err.not.within.bounds: ? super java.lang.String
|
||||
Neg03.java:59:51: compiler.err.cant.apply.diamond: V, (compiler.misc.no.conforming.instance.exists: V, Neg03<U>.Foo<V>, Neg03<U>.Foo<? super java.lang.String>)
|
||||
Neg03.java:59:35: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:63:13: compiler.err.not.within.bounds: java.lang.String
|
||||
Neg03.java:63:28: compiler.err.cant.apply.diamond: V, (compiler.misc.no.conforming.instance.exists: V, Neg03<U>.Foo<V>, Neg03<U>.Foo<java.lang.String>)
|
||||
Neg03.java:63:28: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:64:13: compiler.err.not.within.bounds: ? extends java.lang.String
|
||||
Neg03.java:64:38: compiler.err.cant.apply.diamond: V, (compiler.misc.no.unique.maximal.instance.exists: V, java.lang.String,java.lang.Number)
|
||||
Neg03.java:65:23: compiler.err.cant.resolve.location.args: kindname.constructor, Foo, , java.lang.String, kindname.class, Neg03<U>.Foo<java.lang.Number>
|
||||
Neg03.java:64:38: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:65:23: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:66:13: compiler.err.not.within.bounds: ? super java.lang.String
|
||||
Neg03.java:66:36: compiler.err.cant.apply.diamond: V, (compiler.misc.no.conforming.instance.exists: V, Neg03<U>.Foo<V>, Neg03<U>.Foo<? super java.lang.String>)
|
||||
Neg03.java:66:36: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:68:13: compiler.err.not.within.bounds: java.lang.String
|
||||
Neg03.java:68:28: compiler.err.cant.apply.diamond: V, (compiler.misc.no.conforming.instance.exists: V, Neg03<U>.Foo<V>, Neg03<U>.Foo<java.lang.String>)
|
||||
Neg03.java:68:28: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:69:13: compiler.err.not.within.bounds: ? extends java.lang.String
|
||||
Neg03.java:69:38: compiler.err.cant.apply.diamond: V, (compiler.misc.no.unique.maximal.instance.exists: V, java.lang.String,java.lang.Number)
|
||||
Neg03.java:70:23: compiler.err.cant.resolve.location.args: kindname.constructor, Foo, , java.lang.String, kindname.class, Neg03<U>.Foo<java.lang.Number>
|
||||
Neg03.java:70:36: compiler.err.cant.resolve.location.args: kindname.constructor, Foo, , , kindname.class, Neg03<U>.Foo<java.lang.Number>
|
||||
Neg03.java:69:38: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:70:23: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:71:13: compiler.err.not.within.bounds: ? super java.lang.String
|
||||
Neg03.java:71:36: compiler.err.cant.apply.diamond: V, (compiler.misc.no.conforming.instance.exists: V, Neg03<U>.Foo<V>, Neg03<U>.Foo<? super java.lang.String>)
|
||||
Neg03.java:71:36: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:73:13: compiler.err.not.within.bounds: java.lang.String
|
||||
Neg03.java:73:28: compiler.err.cant.apply.diamond: V, (compiler.misc.no.conforming.instance.exists: V, Neg03<U>.Foo<V>, Neg03<U>.Foo<java.lang.String>)
|
||||
Neg03.java:73:28: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:74:13: compiler.err.not.within.bounds: ? extends java.lang.String
|
||||
Neg03.java:74:39: compiler.err.cant.apply.diamond: V, (compiler.misc.no.unique.maximal.instance.exists: V, java.lang.String,java.lang.Number)
|
||||
Neg03.java:75:24: compiler.err.cant.resolve.location.args: kindname.constructor, Foo, , java.lang.String,java.lang.String, kindname.class, Neg03<U>.Foo<java.lang.Number>
|
||||
Neg03.java:74:39: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:75:24: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:76:13: compiler.err.not.within.bounds: ? super java.lang.String
|
||||
Neg03.java:76:37: compiler.err.cant.apply.diamond: V, (compiler.misc.no.conforming.instance.exists: V, Neg03<U>.Foo<V>, Neg03<U>.Foo<? super java.lang.String>)
|
||||
Neg03.java:76:37: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:78:13: compiler.err.not.within.bounds: java.lang.String
|
||||
Neg03.java:78:29: compiler.err.cant.apply.diamond: V, (compiler.misc.no.conforming.instance.exists: V, Neg03<U>.Foo<V>, Neg03<U>.Foo<java.lang.String>)
|
||||
Neg03.java:78:29: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:79:13: compiler.err.not.within.bounds: ? extends java.lang.String
|
||||
Neg03.java:79:39: compiler.err.cant.apply.diamond: V, (compiler.misc.no.unique.maximal.instance.exists: V, java.lang.String,java.lang.Number)
|
||||
Neg03.java:80:24: compiler.err.cant.resolve.location.args: kindname.constructor, Foo, , java.lang.String,java.lang.String, kindname.class, Neg03<U>.Foo<java.lang.Number>
|
||||
Neg03.java:80:41: compiler.err.cant.resolve.location.args: kindname.constructor, Foo, , , kindname.class, Neg03<U>.Foo<java.lang.Number>
|
||||
Neg03.java:79:39: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:80:24: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
Neg03.java:81:13: compiler.err.not.within.bounds: ? super java.lang.String
|
||||
Neg03.java:81:37: compiler.err.cant.apply.diamond: V, (compiler.misc.no.conforming.instance.exists: V, Neg03<U>.Foo<V>, Neg03<U>.Foo<? super java.lang.String>)
|
||||
90 errors
|
||||
Neg03.java:81:37: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Neg03.Foo), null
|
||||
84 errors
|
||||
|
@ -1,10 +1,10 @@
|
||||
/*
|
||||
* @test /nodynamiccopyright/
|
||||
* @bug 6840638
|
||||
* @bug 6939620
|
||||
*
|
||||
* @summary Project Coin: Improved Type Inference for Generic Instance Creation (aka 'diamond')
|
||||
* @summary Switch to 'complex' diamond inference scheme
|
||||
* @author mcimadamore
|
||||
* @compile/fail/ref=Neg04.out Neg04.java -source 1.7 -XDrawDiagnostics
|
||||
* @compile/fail/ref=Neg04.out Neg04.java -XDrawDiagnostics
|
||||
*
|
||||
*/
|
||||
|
||||
@ -15,24 +15,24 @@ class Neg04 {
|
||||
Foo(V x) {}
|
||||
<Z> Foo(V x, Z z) {}
|
||||
}
|
||||
Foo<String> n1 = new Foo<>(""); //new Foo<Integer> created
|
||||
Foo<? extends String> n2 = new Foo<>(""); //new Foo<Integer> created
|
||||
Foo<?> n3 = new Foo<>(""); //new Foo<Object> created
|
||||
Foo<? super String> n4 = new Foo<>(""); //new Foo<Object> created
|
||||
Foo<String> n1 = new Foo<>("");
|
||||
Foo<? extends String> n2 = new Foo<>("");
|
||||
Foo<?> n3 = new Foo<>("");
|
||||
Foo<? super String> n4 = new Foo<>("");
|
||||
|
||||
Foo<String> n5 = new Foo<>(""){}; //new Foo<Integer> created
|
||||
Foo<? extends String> n6 = new Foo<>(""){}; //new Foo<Integer> created
|
||||
Foo<?> n7 = new Foo<>(""){}; //new Foo<Object> created
|
||||
Foo<? super String> n8 = new Foo<>(""){}; //new Foo<Object> created
|
||||
Foo<String> n5 = new Foo<>(""){};
|
||||
Foo<? extends String> n6 = new Foo<>(""){};
|
||||
Foo<?> n7 = new Foo<>(""){};
|
||||
Foo<? super String> n8 = new Foo<>(""){};
|
||||
|
||||
Foo<String> n9 = new Foo<>("", ""); //new Foo<Integer> created
|
||||
Foo<? extends String> n10 = new Foo<>("", ""); //new Foo<Integer> created
|
||||
Foo<?> n11 = new Foo<>("", ""); //new Foo<Object> created
|
||||
Foo<? super String> n12 = new Foo<>("", ""); //new Foo<Object> created
|
||||
Foo<String> n9 = new Foo<>("", "");
|
||||
Foo<? extends String> n10 = new Foo<>("", "");
|
||||
Foo<?> n11 = new Foo<>("", "");
|
||||
Foo<? super String> n12 = new Foo<>("", "");
|
||||
|
||||
Foo<String> n13 = new Foo<>("", ""){}; //new Foo<Integer> created
|
||||
Foo<? extends String> n14 = new Foo<>("", ""){}; //new Foo<Integer> created
|
||||
Foo<?> n15 = new Foo<>("", ""){}; //new Foo<Object> created
|
||||
Foo<? super String> n16 = new Foo<>("", ""){}; //new Foo<Object> created
|
||||
Foo<String> n13 = new Foo<>("", ""){};
|
||||
Foo<? extends String> n14 = new Foo<>("", ""){};
|
||||
Foo<?> n15 = new Foo<>("", ""){};
|
||||
Foo<? super String> n16 = new Foo<>("", ""){};
|
||||
}
|
||||
}
|
||||
|
@ -1,31 +1,29 @@
|
||||
Neg04.java:18:13: compiler.err.not.within.bounds: java.lang.String
|
||||
Neg04.java:18:33: compiler.err.cant.apply.diamond: V, (compiler.misc.no.conforming.instance.exists: V, Foo<V>, Foo<java.lang.String>)
|
||||
Neg04.java:18:26: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Foo), null
|
||||
Neg04.java:19:13: compiler.err.not.within.bounds: ? extends java.lang.String
|
||||
Neg04.java:19:43: compiler.err.cant.apply.diamond: V, (compiler.misc.no.unique.maximal.instance.exists: V, java.lang.String,java.lang.Number)
|
||||
Neg04.java:20:21: compiler.err.cant.resolve.location.args: kindname.constructor, Foo, , java.lang.String, kindname.class, Foo<java.lang.Number>
|
||||
Neg04.java:19:36: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Foo), null
|
||||
Neg04.java:20:21: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Foo), null
|
||||
Neg04.java:21:13: compiler.err.not.within.bounds: ? super java.lang.String
|
||||
Neg04.java:21:41: compiler.err.cant.apply.diamond: V, (compiler.misc.no.conforming.instance.exists: V, Foo<V>, Foo<? super java.lang.String>)
|
||||
Neg04.java:21:34: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Foo), null
|
||||
Neg04.java:23:13: compiler.err.not.within.bounds: java.lang.String
|
||||
Neg04.java:23:33: compiler.err.cant.apply.diamond: V, (compiler.misc.no.conforming.instance.exists: V, Foo<V>, Foo<java.lang.String>)
|
||||
Neg04.java:23:26: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Foo), null
|
||||
Neg04.java:24:13: compiler.err.not.within.bounds: ? extends java.lang.String
|
||||
Neg04.java:24:43: compiler.err.cant.apply.diamond: V, (compiler.misc.no.unique.maximal.instance.exists: V, java.lang.String,java.lang.Number)
|
||||
Neg04.java:25:21: compiler.err.cant.resolve.location.args: kindname.constructor, Foo, , java.lang.String, kindname.class, Foo<java.lang.Number>
|
||||
Neg04.java:25:34: compiler.err.cant.resolve.location.args: kindname.constructor, Foo, , , kindname.class, Foo<java.lang.Number>
|
||||
Neg04.java:24:36: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Foo), null
|
||||
Neg04.java:25:21: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Foo), null
|
||||
Neg04.java:26:13: compiler.err.not.within.bounds: ? super java.lang.String
|
||||
Neg04.java:26:41: compiler.err.cant.apply.diamond: V, (compiler.misc.no.conforming.instance.exists: V, Foo<V>, Foo<? super java.lang.String>)
|
||||
Neg04.java:26:34: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Foo), null
|
||||
Neg04.java:28:13: compiler.err.not.within.bounds: java.lang.String
|
||||
Neg04.java:28:33: compiler.err.cant.apply.diamond: V, (compiler.misc.no.conforming.instance.exists: V, Foo<V>, Foo<java.lang.String>)
|
||||
Neg04.java:28:26: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Foo), null
|
||||
Neg04.java:29:13: compiler.err.not.within.bounds: ? extends java.lang.String
|
||||
Neg04.java:29:44: compiler.err.cant.apply.diamond: V, (compiler.misc.no.unique.maximal.instance.exists: V, java.lang.String,java.lang.Number)
|
||||
Neg04.java:30:22: compiler.err.cant.resolve.location.args: kindname.constructor, Foo, , java.lang.String,java.lang.String, kindname.class, Foo<java.lang.Number>
|
||||
Neg04.java:29:37: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Foo), null
|
||||
Neg04.java:30:22: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Foo), null
|
||||
Neg04.java:31:13: compiler.err.not.within.bounds: ? super java.lang.String
|
||||
Neg04.java:31:42: compiler.err.cant.apply.diamond: V, (compiler.misc.no.conforming.instance.exists: V, Foo<V>, Foo<? super java.lang.String>)
|
||||
Neg04.java:31:35: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Foo), null
|
||||
Neg04.java:33:13: compiler.err.not.within.bounds: java.lang.String
|
||||
Neg04.java:33:34: compiler.err.cant.apply.diamond: V, (compiler.misc.no.conforming.instance.exists: V, Foo<V>, Foo<java.lang.String>)
|
||||
Neg04.java:33:27: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Foo), null
|
||||
Neg04.java:34:13: compiler.err.not.within.bounds: ? extends java.lang.String
|
||||
Neg04.java:34:44: compiler.err.cant.apply.diamond: V, (compiler.misc.no.unique.maximal.instance.exists: V, java.lang.String,java.lang.Number)
|
||||
Neg04.java:35:22: compiler.err.cant.resolve.location.args: kindname.constructor, Foo, , java.lang.String,java.lang.String, kindname.class, Foo<java.lang.Number>
|
||||
Neg04.java:35:39: compiler.err.cant.resolve.location.args: kindname.constructor, Foo, , , kindname.class, Foo<java.lang.Number>
|
||||
Neg04.java:34:37: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Foo), null
|
||||
Neg04.java:35:22: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Foo), null
|
||||
Neg04.java:36:13: compiler.err.not.within.bounds: ? super java.lang.String
|
||||
Neg04.java:36:42: compiler.err.cant.apply.diamond: V, (compiler.misc.no.conforming.instance.exists: V, Foo<V>, Foo<? super java.lang.String>)
|
||||
30 errors
|
||||
Neg04.java:36:35: compiler.err.cant.apply.diamond: (compiler.misc.diamond: Foo), null
|
||||
28 errors
|
||||
|
@ -1,10 +1,10 @@
|
||||
/*
|
||||
* @test /nodynamiccopyright/
|
||||
* @bug 6840638
|
||||
* @bug 6939620
|
||||
*
|
||||
* @summary Project Coin: Improved Type Inference for Generic Instance Creation (aka 'diamond')
|
||||
* @summary Switch to 'complex' diamond inference scheme
|
||||
* @author mcimadamore
|
||||
* @compile/fail/ref=Neg05.out Neg05.java -source 1.7 -XDrawDiagnostics
|
||||
* @compile/fail/ref=Neg05.out Neg05.java -XDrawDiagnostics
|
||||
*
|
||||
*/
|
||||
|
||||
@ -16,46 +16,46 @@ class Neg05<U> {
|
||||
}
|
||||
|
||||
void testRare_1() {
|
||||
Neg05<?>.Foo<String> f1 = new Neg05.Foo<>(""); //new Foo<Integer> created
|
||||
Neg05<?>.Foo<? extends String> f2 = new Neg05.Foo<>(""); //new Foo<Integer> created
|
||||
Neg05<?>.Foo<?> f3 = new Neg05.Foo<>(""); //new Foo<Object> created
|
||||
Neg05<?>.Foo<? super String> f4 = new Neg05.Foo<>(""); //new Foo<Object> created
|
||||
Neg05<?>.Foo<String> f1 = new Neg05.Foo<>("");
|
||||
Neg05<?>.Foo<? extends String> f2 = new Neg05.Foo<>("");
|
||||
Neg05<?>.Foo<?> f3 = new Neg05.Foo<>("");
|
||||
Neg05<?>.Foo<? super String> f4 = new Neg05.Foo<>("");
|
||||
|
||||
Neg05<?>.Foo<String> f5 = new Neg05.Foo<>(""){}; //new Foo<Integer> created
|
||||
Neg05<?>.Foo<? extends String> f6 = new Neg05.Foo<>(""){}; //new Foo<Integer> created
|
||||
Neg05<?>.Foo<?> f7 = new Neg05.Foo<>(""){}; //new Foo<Object> created
|
||||
Neg05<?>.Foo<? super String> f8 = new Neg05.Foo<>(""){}; //new Foo<Object> created
|
||||
Neg05<?>.Foo<String> f5 = new Neg05.Foo<>(""){};
|
||||
Neg05<?>.Foo<? extends String> f6 = new Neg05.Foo<>(""){};
|
||||
Neg05<?>.Foo<?> f7 = new Neg05.Foo<>(""){};
|
||||
Neg05<?>.Foo<? super String> f8 = new Neg05.Foo<>(""){};
|
||||
|
||||
Neg05<?>.Foo<String> f9 = new Neg05.Foo<>("", ""); //new Foo<Integer> created
|
||||
Neg05<?>.Foo<? extends String> f10 = new Neg05.Foo<>("", ""); //new Foo<Integer> created
|
||||
Neg05<?>.Foo<?> f11 = new Neg05.Foo<>("", ""); //new Foo<Object> created
|
||||
Neg05<?>.Foo<? super String> f12 = new Neg05.Foo<>("", ""); //new Foo<Object> created
|
||||
Neg05<?>.Foo<String> f9 = new Neg05.Foo<>("", "");
|
||||
Neg05<?>.Foo<? extends String> f10 = new Neg05.Foo<>("", "");
|
||||
Neg05<?>.Foo<?> f11 = new Neg05.Foo<>("", "");
|
||||
Neg05<?>.Foo<? super String> f12 = new Neg05.Foo<>("", "");
|
||||
|
||||
Neg05<?>.Foo<String> f13 = new Neg05.Foo<>("", ""){}; //new Foo<Integer> created
|
||||
Neg05<?>.Foo<? extends String> f14 = new Neg05.Foo<>("", ""){}; //new Foo<Integer> created
|
||||
Neg05<?>.Foo<?> f15 = new Neg05.Foo<>("", ""){}; //new Foo<Object> created
|
||||
Neg05<?>.Foo<? super String> f16 = new Neg05.Foo<>("", ""){}; //new Foo<Object> created
|
||||
Neg05<?>.Foo<String> f13 = new Neg05.Foo<>("", ""){};
|
||||
Neg05<?>.Foo<? extends String> f14 = new Neg05.Foo<>("", ""){};
|
||||
Neg05<?>.Foo<?> f15 = new Neg05.Foo<>("", ""){};
|
||||
Neg05<?>.Foo<? super String> f16 = new Neg05.Foo<>("", ""){};
|
||||
}
|
||||
|
||||
void testRare_2(Neg05 n) {
|
||||
Neg05<?>.Foo<String> f1 = n.new Foo<>(""); //new Foo<Integer> created
|
||||
Neg05<?>.Foo<? extends String> f2 = n.new Foo<>(""); //new Foo<Integer> created
|
||||
Neg05<?>.Foo<?> f3 = n.new Foo<>(""); //new Foo<Integer> created
|
||||
Neg05<?>.Foo<? super String> f4 = n.new Foo<>(""); //new Foo<Integer> created
|
||||
Neg05<?>.Foo<String> f1 = n.new Foo<>("");
|
||||
Neg05<?>.Foo<? extends String> f2 = n.new Foo<>("");
|
||||
Neg05<?>.Foo<?> f3 = n.new Foo<>("");
|
||||
Neg05<?>.Foo<? super String> f4 = n.new Foo<>("");
|
||||
|
||||
Neg05<?>.Foo<String> f5 = n.new Foo<>(""){}; //new Foo<Integer> created
|
||||
Neg05<?>.Foo<? extends String> f6 = n.new Foo<>(""){}; //new Foo<Integer> created
|
||||
Neg05<?>.Foo<?> f7 = n.new Foo<>(""){}; //new Foo<Integer> created
|
||||
Neg05<?>.Foo<? super String> f8 = n.new Foo<>(""){}; //new Foo<Integer> created
|
||||
Neg05<?>.Foo<String> f5 = n.new Foo<>(""){};
|
||||
Neg05<?>.Foo<? extends String> f6 = n.new Foo<>(""){};
|
||||
Neg05<?>.Foo<?> f7 = n.new Foo<>(""){};
|
||||
Neg05<?>.Foo<? super String> f8 = n.new Foo<>(""){};
|
||||
|
||||
Neg05<?>.Foo<String> f9 = n.new Foo<>("", ""); //new Foo<Integer> created
|
||||
Neg05<?>.Foo<? extends String> f10 = n.new Foo<>("", ""); //new Foo<Integer> created
|
||||
Neg05<?>.Foo<?> f11 = n.new Foo<>("", ""); //new Foo<Integer> created
|
||||
Neg05<?>.Foo<? super String> f12 = n.new Foo<>("", ""); //new Foo<Integer> created
|
||||
Neg05<?>.Foo<String> f9 = n.new Foo<>("", "");
|
||||
Neg05<?>.Foo<? extends String> f10 = n.new Foo<>("", "");
|
||||
Neg05<?>.Foo<?> f11 = n.new Foo<>("", "");
|
||||
Neg05<?>.Foo<? super String> f12 = n.new Foo<>("", "");
|
||||
|
||||
Neg05<?>.Foo<String> f13 = n.new Foo<>("", ""){}; //new Foo<Integer> created
|
||||
Neg05<?>.Foo<? extends String> f14 = n.new Foo<>("", ""){}; //new Foo<Integer> created
|
||||
Neg05<?>.Foo<?> f15 = n.new Foo<>("", ""){}; //new Foo<Integer> created
|
||||
Neg05<?>.Foo<? super String> f16 = n.new Foo<>("", ""){}; //new Foo<Integer> created
|
||||
Neg05<?>.Foo<String> f13 = n.new Foo<>("", ""){};
|
||||
Neg05<?>.Foo<? extends String> f14 = n.new Foo<>("", ""){};
|
||||
Neg05<?>.Foo<?> f15 = n.new Foo<>("", ""){};
|
||||
Neg05<?>.Foo<? super String> f16 = n.new Foo<>("", ""){};
|
||||
}
|
||||
}
|
||||
|
@ -1,19 +1,35 @@
|
||||
Neg05.java:19:48: compiler.err.improperly.formed.type.inner.raw.param
|
||||
Neg05.java:19:35: compiler.err.prob.found.req: (compiler.misc.incompatible.types), Neg05.Foo<java.lang.String>, Neg05<?>.Foo<java.lang.String>
|
||||
Neg05.java:20:58: compiler.err.improperly.formed.type.inner.raw.param
|
||||
Neg05.java:20:45: compiler.err.prob.found.req: (compiler.misc.incompatible.types), Neg05.Foo<java.lang.String>, Neg05<?>.Foo<? extends java.lang.String>
|
||||
Neg05.java:21:43: compiler.err.improperly.formed.type.inner.raw.param
|
||||
Neg05.java:21:30: compiler.err.prob.found.req: (compiler.misc.incompatible.types), Neg05.Foo<java.lang.String>, Neg05<?>.Foo<?>
|
||||
Neg05.java:22:56: compiler.err.improperly.formed.type.inner.raw.param
|
||||
Neg05.java:22:43: compiler.err.prob.found.req: (compiler.misc.incompatible.types), Neg05.Foo<java.lang.String>, Neg05<?>.Foo<? super java.lang.String>
|
||||
Neg05.java:24:48: compiler.err.improperly.formed.type.inner.raw.param
|
||||
Neg05.java:24:35: compiler.err.prob.found.req: (compiler.misc.incompatible.types), compiler.misc.anonymous.class: Neg05.Foo<java.lang.String>, Neg05<?>.Foo<java.lang.String>
|
||||
Neg05.java:25:58: compiler.err.improperly.formed.type.inner.raw.param
|
||||
Neg05.java:25:45: compiler.err.prob.found.req: (compiler.misc.incompatible.types), compiler.misc.anonymous.class: Neg05.Foo<java.lang.String>, Neg05<?>.Foo<? extends java.lang.String>
|
||||
Neg05.java:26:43: compiler.err.improperly.formed.type.inner.raw.param
|
||||
Neg05.java:26:30: compiler.err.prob.found.req: (compiler.misc.incompatible.types), compiler.misc.anonymous.class: Neg05.Foo<java.lang.String>, Neg05<?>.Foo<?>
|
||||
Neg05.java:27:56: compiler.err.improperly.formed.type.inner.raw.param
|
||||
Neg05.java:27:43: compiler.err.prob.found.req: (compiler.misc.incompatible.types), compiler.misc.anonymous.class: Neg05.Foo<java.lang.String>, Neg05<?>.Foo<? super java.lang.String>
|
||||
Neg05.java:29:48: compiler.err.improperly.formed.type.inner.raw.param
|
||||
Neg05.java:29:35: compiler.err.prob.found.req: (compiler.misc.incompatible.types), Neg05.Foo<java.lang.String>, Neg05<?>.Foo<java.lang.String>
|
||||
Neg05.java:30:59: compiler.err.improperly.formed.type.inner.raw.param
|
||||
Neg05.java:30:46: compiler.err.prob.found.req: (compiler.misc.incompatible.types), Neg05.Foo<java.lang.String>, Neg05<?>.Foo<? extends java.lang.String>
|
||||
Neg05.java:31:44: compiler.err.improperly.formed.type.inner.raw.param
|
||||
Neg05.java:31:31: compiler.err.prob.found.req: (compiler.misc.incompatible.types), Neg05.Foo<java.lang.String>, Neg05<?>.Foo<?>
|
||||
Neg05.java:32:57: compiler.err.improperly.formed.type.inner.raw.param
|
||||
Neg05.java:32:44: compiler.err.prob.found.req: (compiler.misc.incompatible.types), Neg05.Foo<java.lang.String>, Neg05<?>.Foo<? super java.lang.String>
|
||||
Neg05.java:34:49: compiler.err.improperly.formed.type.inner.raw.param
|
||||
Neg05.java:34:36: compiler.err.prob.found.req: (compiler.misc.incompatible.types), compiler.misc.anonymous.class: Neg05.Foo<java.lang.String>, Neg05<?>.Foo<java.lang.String>
|
||||
Neg05.java:35:59: compiler.err.improperly.formed.type.inner.raw.param
|
||||
Neg05.java:35:46: compiler.err.prob.found.req: (compiler.misc.incompatible.types), compiler.misc.anonymous.class: Neg05.Foo<java.lang.String>, Neg05<?>.Foo<? extends java.lang.String>
|
||||
Neg05.java:36:44: compiler.err.improperly.formed.type.inner.raw.param
|
||||
Neg05.java:36:31: compiler.err.prob.found.req: (compiler.misc.incompatible.types), compiler.misc.anonymous.class: Neg05.Foo<java.lang.String>, Neg05<?>.Foo<?>
|
||||
Neg05.java:37:57: compiler.err.improperly.formed.type.inner.raw.param
|
||||
Neg05.java:37:44: compiler.err.prob.found.req: (compiler.misc.incompatible.types), compiler.misc.anonymous.class: Neg05.Foo<java.lang.String>, Neg05<?>.Foo<? super java.lang.String>
|
||||
Neg05.java:41:37: compiler.err.improperly.formed.type.inner.raw.param
|
||||
Neg05.java:42:47: compiler.err.improperly.formed.type.inner.raw.param
|
||||
Neg05.java:43:32: compiler.err.improperly.formed.type.inner.raw.param
|
||||
@ -30,4 +46,4 @@ Neg05.java:56:38: compiler.err.improperly.formed.type.inner.raw.param
|
||||
Neg05.java:57:48: compiler.err.improperly.formed.type.inner.raw.param
|
||||
Neg05.java:58:33: compiler.err.improperly.formed.type.inner.raw.param
|
||||
Neg05.java:59:46: compiler.err.improperly.formed.type.inner.raw.param
|
||||
32 errors
|
||||
48 errors
|
||||
|
21
langtools/test/tools/javac/generics/diamond/neg/Neg06.java
Normal file
21
langtools/test/tools/javac/generics/diamond/neg/Neg06.java
Normal file
@ -0,0 +1,21 @@
|
||||
/*
|
||||
* @test /nodynamiccopyright/
|
||||
* @bug 6939620
|
||||
*
|
||||
* @summary Switch to 'complex' diamond inference scheme
|
||||
* @author mcimadamore
|
||||
* @compile/fail/ref=Neg06.out Neg06.java -XDrawDiagnostics
|
||||
*
|
||||
*/
|
||||
|
||||
class Neg06 {
|
||||
interface ISuperFoo<X> {}
|
||||
interface IFoo<X extends Number> extends ISuperFoo<X> {}
|
||||
|
||||
static class CSuperFoo<X> {}
|
||||
static class CFoo<X extends Number> extends CSuperFoo<X> {}
|
||||
|
||||
ISuperFoo<String> isf = new IFoo<>() {};
|
||||
CSuperFoo<String> csf1 = new CFoo<>();
|
||||
CSuperFoo<String> csf2 = new CFoo<>() {};
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
Neg06.java:18:36: compiler.err.cant.apply.diamond.1: (compiler.misc.diamond: Neg06.IFoo), (compiler.misc.no.conforming.instance.exists: X, Neg06.IFoo<X>, Neg06.ISuperFoo<java.lang.String>)
|
||||
Neg06.java:19:37: compiler.err.cant.apply.diamond.1: (compiler.misc.diamond: Neg06.CFoo), (compiler.misc.no.conforming.instance.exists: X, Neg06.CFoo<X>, Neg06.CSuperFoo<java.lang.String>)
|
||||
Neg06.java:20:37: compiler.err.cant.apply.diamond.1: (compiler.misc.diamond: Neg06.CFoo), (compiler.misc.no.conforming.instance.exists: X, Neg06.CFoo<X>, Neg06.CSuperFoo<java.lang.String>)
|
||||
3 errors
|
19
langtools/test/tools/javac/generics/diamond/neg/Neg07.java
Normal file
19
langtools/test/tools/javac/generics/diamond/neg/Neg07.java
Normal file
@ -0,0 +1,19 @@
|
||||
/*
|
||||
* @test /nodynamiccopyright/
|
||||
* @bug 6939620
|
||||
*
|
||||
* @summary Switch to 'complex' diamond inference scheme
|
||||
* @author mcimadamore
|
||||
* @compile/fail/ref=Neg07.out Neg07.java -XDrawDiagnostics
|
||||
*
|
||||
*/
|
||||
|
||||
class Neg07 {
|
||||
static class SuperFoo<X> {}
|
||||
static class Foo<X extends Number> extends SuperFoo<X> {
|
||||
Foo(X x) {}
|
||||
}
|
||||
|
||||
SuperFoo<String> sf1 = new Foo<>("");
|
||||
SuperFoo<String> sf2 = new Foo<>("") {};
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
Neg07.java:17:27: compiler.err.cant.apply.diamond.1: (compiler.misc.diamond: Neg07.Foo), (compiler.misc.inferred.do.not.conform.to.bounds: java.lang.String, java.lang.Number)
|
||||
Neg07.java:18:27: compiler.err.cant.apply.diamond.1: (compiler.misc.diamond: Neg07.Foo), (compiler.misc.inferred.do.not.conform.to.bounds: java.lang.String, java.lang.Number)
|
||||
2 errors
|
30
langtools/test/tools/javac/generics/diamond/neg/Neg08.java
Normal file
30
langtools/test/tools/javac/generics/diamond/neg/Neg08.java
Normal file
@ -0,0 +1,30 @@
|
||||
/*
|
||||
* @test /nodynamiccopyright/
|
||||
* @bug 6939620 6894753
|
||||
*
|
||||
* @summary Switch to 'complex' diamond inference scheme
|
||||
* @author mcimadamore
|
||||
* @compile/fail/ref=Neg08.out Neg08.java -XDrawDiagnostics
|
||||
*
|
||||
*/
|
||||
|
||||
class Neg08 {
|
||||
static class Foo<X> {
|
||||
Foo(X x) { }
|
||||
}
|
||||
|
||||
static class DoubleFoo<X,Y> {
|
||||
DoubleFoo(X x,Y y) { }
|
||||
}
|
||||
|
||||
static class TripleFoo<X,Y,Z> {
|
||||
TripleFoo(X x,Y y,Z z) { }
|
||||
}
|
||||
|
||||
Foo<? extends Integer> fi = new Foo<>(1);
|
||||
Foo<?> fw = new Foo<>(fi);
|
||||
Foo<? extends Double> fd = new Foo<>(3.0);
|
||||
DoubleFoo<?,?> dw = new DoubleFoo<>(fi,fd);
|
||||
Foo<String> fs = new Foo<>("one");
|
||||
TripleFoo<?,?,?> tw = new TripleFoo<>(fi,fd,fs);
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
Neg08.java:25:24: compiler.err.cant.apply.diamond.1: (compiler.misc.diamond: Neg08.Foo), (compiler.misc.diamond.invalid.arg: Neg08.Foo<compiler.misc.type.captureof: 1, ? extends java.lang.Integer>, (compiler.misc.diamond: Neg08.Foo))
|
||||
Neg08.java:27:38: compiler.err.cant.apply.diamond.1: (compiler.misc.diamond: Neg08.DoubleFoo), (compiler.misc.diamond.invalid.args: Neg08.Foo<compiler.misc.type.captureof: 1, ? extends java.lang.Integer>,Neg08.Foo<compiler.misc.type.captureof: 2, ? extends java.lang.Double>, (compiler.misc.diamond: Neg08.DoubleFoo))
|
||||
Neg08.java:29:40: compiler.err.cant.apply.diamond.1: (compiler.misc.diamond: Neg08.TripleFoo), (compiler.misc.diamond.invalid.args: Neg08.Foo<compiler.misc.type.captureof: 1, ? extends java.lang.Integer>,Neg08.Foo<compiler.misc.type.captureof: 2, ? extends java.lang.Double>, (compiler.misc.diamond: Neg08.TripleFoo))
|
||||
3 errors
|
22
langtools/test/tools/javac/generics/diamond/neg/Neg09.java
Normal file
22
langtools/test/tools/javac/generics/diamond/neg/Neg09.java
Normal file
@ -0,0 +1,22 @@
|
||||
/*
|
||||
* @test /nodynamiccopyright/
|
||||
* @bug 6939620 6894753
|
||||
*
|
||||
* @summary Switch to 'complex' diamond inference scheme
|
||||
* @author mcimadamore
|
||||
* @compile/fail/ref=Neg09.out Neg09.java -XDrawDiagnostics
|
||||
*
|
||||
*/
|
||||
|
||||
class Neg09 {
|
||||
static class Foo<X extends Number & Comparable<Number>> {}
|
||||
static class DoubleFoo<X extends Number & Comparable<Number>,
|
||||
Y extends Number & Comparable<Number>> {}
|
||||
static class TripleFoo<X extends Number & Comparable<Number>,
|
||||
Y extends Number & Comparable<Number>,
|
||||
Z> {}
|
||||
|
||||
Foo<?> fw = new Foo<>();
|
||||
DoubleFoo<?,?> dw = new DoubleFoo<>();
|
||||
TripleFoo<?,?,?> tw = new TripleFoo<>();
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
Neg09.java:19:24: compiler.err.cant.apply.diamond.1: (compiler.misc.diamond: Neg09.Foo), (compiler.misc.diamond.invalid.arg: java.lang.Number&java.lang.Comparable<java.lang.Number>, (compiler.misc.diamond: Neg09.Foo))
|
||||
Neg09.java:20:38: compiler.err.cant.apply.diamond.1: (compiler.misc.diamond: Neg09.DoubleFoo), (compiler.misc.diamond.invalid.args: java.lang.Number&java.lang.Comparable<java.lang.Number>,java.lang.Number&java.lang.Comparable<java.lang.Number>, (compiler.misc.diamond: Neg09.DoubleFoo))
|
||||
Neg09.java:21:40: compiler.err.cant.apply.diamond.1: (compiler.misc.diamond: Neg09.TripleFoo), (compiler.misc.diamond.invalid.args: java.lang.Number&java.lang.Comparable<java.lang.Number>,java.lang.Number&java.lang.Comparable<java.lang.Number>, (compiler.misc.diamond: Neg09.TripleFoo))
|
||||
3 errors
|
17
langtools/test/tools/javac/generics/diamond/neg/Neg10.java
Normal file
17
langtools/test/tools/javac/generics/diamond/neg/Neg10.java
Normal file
@ -0,0 +1,17 @@
|
||||
/*
|
||||
* @test /nodynamiccopyright/
|
||||
* @bug 6939620
|
||||
*
|
||||
* @summary Switch to 'complex' diamond inference scheme
|
||||
* @author mcimadamore
|
||||
* @compile/fail/ref=Neg10.out Neg10.java -XDrawDiagnostics
|
||||
*
|
||||
*/
|
||||
|
||||
class Neg10 {
|
||||
static class Foo<X> {
|
||||
Foo(X x) {}
|
||||
}
|
||||
|
||||
Foo<Number> fw = new Foo<>(1);
|
||||
}
|
@ -0,0 +1,2 @@
|
||||
Neg10.java:16:22: compiler.err.prob.found.req: (compiler.misc.incompatible.types), Neg10.Foo<java.lang.Integer>, Neg10.Foo<java.lang.Number>
|
||||
1 error
|
18
langtools/test/tools/javac/generics/diamond/neg/Neg11.java
Normal file
18
langtools/test/tools/javac/generics/diamond/neg/Neg11.java
Normal file
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* @test /nodynamiccopyright/
|
||||
* @bug 6939620
|
||||
*
|
||||
* @summary Switch to 'complex' diamond inference scheme
|
||||
* @author mcimadamore
|
||||
* @compile/fail/ref=Neg11.out Neg11.java -XDrawDiagnostics
|
||||
*
|
||||
*/
|
||||
|
||||
class Neg11 {
|
||||
|
||||
void test() {
|
||||
class Foo<X extends Number> { }
|
||||
Foo<?> f1 = new UndeclaredName<>(); //this is deliberate: aim is to test erroneous path
|
||||
Foo<?> f2 = new UndeclaredName<>() {}; //this is deliberate: aim is to test erroneous path
|
||||
}
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
Neg11.java:15:25: compiler.err.cant.resolve.location: kindname.class, UndeclaredName, , , kindname.class, Neg11
|
||||
Neg11.java:16:25: compiler.err.cant.resolve.location: kindname.class, UndeclaredName, , , kindname.class, Neg11
|
||||
2 errors
|
@ -1,10 +1,33 @@
|
||||
/*
|
||||
* @test /nodynamiccopyright/
|
||||
* @bug 6840638
|
||||
* Copyright 2010 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* @summary Project Coin: Improved Type Inference for Generic Instance Creation (aka 'diamond')
|
||||
* 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 6939620
|
||||
*
|
||||
* @summary Switch to 'complex' diamond inference scheme
|
||||
* @author mcimadamore
|
||||
* @compile Pos01.java -source 1.7
|
||||
* @compile Pos01.java
|
||||
* @run main Pos01
|
||||
*
|
||||
*/
|
||||
@ -16,25 +39,25 @@ public class Pos01<X> {
|
||||
<Z> Pos01(X x, Z z) {}
|
||||
|
||||
void test() {
|
||||
Pos01<Integer> p1 = new Pos01<>(1); //new Foo<Integer> created
|
||||
Pos01<? extends Integer> p2 = new Pos01<>(1); //new Foo<Integer> created
|
||||
Pos01<?> p3 = new Pos01<>(1); //new Foo<Object> created
|
||||
Pos01<? super Integer> p4 = new Pos01<>(1); //new Foo<Object> created
|
||||
Pos01<Integer> p1 = new Pos01<>(1);
|
||||
Pos01<? extends Integer> p2 = new Pos01<>(1);
|
||||
Pos01<?> p3 = new Pos01<>(1);
|
||||
Pos01<? super Integer> p4 = new Pos01<>(1);
|
||||
|
||||
Pos01<Integer> p5 = new Pos01<>(1){}; //new Foo<Integer> created
|
||||
Pos01<? extends Integer> p6 = new Pos01<>(1){}; //new Foo<Integer> created
|
||||
Pos01<?> p7 = new Pos01<>(1){}; //new Foo<Object> created
|
||||
Pos01<? super Integer> p8 = new Pos01<>(1){}; //new Foo<Object> created
|
||||
Pos01<Integer> p5 = new Pos01<>(1){};
|
||||
Pos01<? extends Integer> p6 = new Pos01<>(1){};
|
||||
Pos01<?> p7 = new Pos01<>(1){};
|
||||
Pos01<? super Integer> p8 = new Pos01<>(1){};
|
||||
|
||||
Pos01<Integer> p9 = new Pos01<>(1, ""); //new Foo<Integer> created
|
||||
Pos01<? extends Integer> p10 = new Pos01<>(1, ""); //new Foo<Integer> created
|
||||
Pos01<?> p11 = new Pos01<>(1, ""); //new Foo<Object> created
|
||||
Pos01<? super Integer> p12 = new Pos01<>(1, ""); //new Foo<Object> created
|
||||
Pos01<Integer> p9 = new Pos01<>(1, "");
|
||||
Pos01<? extends Integer> p10 = new Pos01<>(1, "");
|
||||
Pos01<?> p11 = new Pos01<>(1, "");
|
||||
Pos01<? super Integer> p12 = new Pos01<>(1, "");
|
||||
|
||||
Pos01<Integer> p13 = new Pos01<>(1, ""){}; //new Foo<Integer> created
|
||||
Pos01<? extends Integer> p14= new Pos01<>(1, ""){}; //new Foo<Integer> created
|
||||
Pos01<?> p15 = new Pos01<>(1, ""){}; //new Foo<Object> created
|
||||
Pos01<? super Integer> p16 = new Pos01<>(1, ""){}; //new Foo<Object> created
|
||||
Pos01<Integer> p13 = new Pos01<>(1, ""){};
|
||||
Pos01<? extends Integer> p14= new Pos01<>(1, ""){};
|
||||
Pos01<?> p15 = new Pos01<>(1, ""){};
|
||||
Pos01<? super Integer> p16 = new Pos01<>(1, ""){};
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
@ -1,10 +1,33 @@
|
||||
/*
|
||||
* @test /nodynamiccopyright/
|
||||
* @bug 6840638
|
||||
* Copyright 2010 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* @summary Project Coin: Improved Type Inference for Generic Instance Creation (aka 'diamond')
|
||||
* 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 6939620
|
||||
*
|
||||
* @summary Switch to 'complex' diamond inference scheme
|
||||
* @author mcimadamore
|
||||
* @compile Pos02.java -source 1.7
|
||||
* @compile Pos02.java
|
||||
* @run main Pos02
|
||||
*/
|
||||
|
||||
@ -16,47 +39,47 @@ public class Pos02 {
|
||||
}
|
||||
|
||||
void testSimple() {
|
||||
Foo<Integer> f1 = new Foo<>(1); //new Foo<Integer> created
|
||||
Foo<? extends Integer> f2 = new Foo<>(1); //new Foo<Integer> created
|
||||
Foo<?> f3 = new Foo<>(1); //new Foo<Object> created
|
||||
Foo<? super Integer> f4 = new Foo<>(1); //new Foo<Object> created
|
||||
Foo<Integer> f1 = new Foo<>(1);
|
||||
Foo<? extends Integer> f2 = new Foo<>(1);
|
||||
Foo<?> f3 = new Foo<>(1);
|
||||
Foo<? super Integer> f4 = new Foo<>(1);
|
||||
|
||||
Foo<Integer> f5 = new Foo<>(1){}; //new Foo<Integer> created
|
||||
Foo<? extends Integer> f6 = new Foo<>(1){}; //new Foo<Integer> created
|
||||
Foo<?> f7 = new Foo<>(1){}; //new Foo<Object> created
|
||||
Foo<? super Integer> f8 = new Foo<>(1){}; //new Foo<Object> created
|
||||
Foo<Integer> f5 = new Foo<>(1){};
|
||||
Foo<? extends Integer> f6 = new Foo<>(1){};
|
||||
Foo<?> f7 = new Foo<>(1){};
|
||||
Foo<? super Integer> f8 = new Foo<>(1){};
|
||||
|
||||
Foo<Integer> f9 = new Foo<>(1, ""); //new Foo<Integer> created
|
||||
Foo<? extends Integer> f10 = new Foo<>(1, ""); //new Foo<Integer> created
|
||||
Foo<?> f11 = new Foo<>(1, ""); //new Foo<Object> created
|
||||
Foo<? super Integer> f12 = new Foo<>(1, ""); //new Foo<Object> created
|
||||
Foo<Integer> f9 = new Foo<>(1, "");
|
||||
Foo<? extends Integer> f10 = new Foo<>(1, "");
|
||||
Foo<?> f11 = new Foo<>(1, "");
|
||||
Foo<? super Integer> f12 = new Foo<>(1, "");
|
||||
|
||||
Foo<Integer> f13 = new Foo<>(1, ""){}; //new Foo<Integer> created
|
||||
Foo<? extends Integer> f14 = new Foo<>(1, ""){}; //new Foo<Integer> created
|
||||
Foo<?> f15 = new Foo<>(1, ""){}; //new Foo<Object> created
|
||||
Foo<? super Integer> f16 = new Foo<>(1, ""){}; //new Foo<Object> created
|
||||
Foo<Integer> f13 = new Foo<>(1, ""){};
|
||||
Foo<? extends Integer> f14 = new Foo<>(1, ""){};
|
||||
Foo<?> f15 = new Foo<>(1, ""){};
|
||||
Foo<? super Integer> f16 = new Foo<>(1, ""){};
|
||||
}
|
||||
|
||||
void testQualified() {
|
||||
Foo<Integer> f1 = new Pos02.Foo<>(1); //new Foo<Integer> created
|
||||
Foo<? extends Integer> f2 = new Pos02.Foo<>(1); //new Foo<Integer> created
|
||||
Foo<?> f3 = new Pos02.Foo<>(1); //new Foo<Object> created
|
||||
Foo<? super Integer> f4 = new Pos02.Foo<>(1); //new Foo<Object> created
|
||||
Foo<Integer> f1 = new Pos02.Foo<>(1);
|
||||
Foo<? extends Integer> f2 = new Pos02.Foo<>(1);
|
||||
Foo<?> f3 = new Pos02.Foo<>(1);
|
||||
Foo<? super Integer> f4 = new Pos02.Foo<>(1);
|
||||
|
||||
Foo<Integer> f5 = new Pos02.Foo<>(1){}; //new Foo<Integer> created
|
||||
Foo<? extends Integer> f6 = new Pos02.Foo<>(1){}; //new Foo<Integer> created
|
||||
Foo<?> f7 = new Pos02.Foo<>(1){}; //new Foo<Object> created
|
||||
Foo<? super Integer> f8 = new Pos02.Foo<>(1){}; //new Foo<Object> created
|
||||
Foo<Integer> f5 = new Pos02.Foo<>(1){};
|
||||
Foo<? extends Integer> f6 = new Pos02.Foo<>(1){};
|
||||
Foo<?> f7 = new Pos02.Foo<>(1){};
|
||||
Foo<? super Integer> f8 = new Pos02.Foo<>(1){};
|
||||
|
||||
Foo<Integer> f9 = new Pos02.Foo<>(1, ""); //new Foo<Integer> created
|
||||
Foo<? extends Integer> f10 = new Pos02.Foo<>(1, ""); //new Foo<Integer> created
|
||||
Foo<?> f11 = new Pos02.Foo<>(1, ""); //new Foo<Object> created
|
||||
Foo<? super Integer> f12 = new Pos02.Foo<>(1, ""); //new Foo<Object> created
|
||||
Foo<Integer> f9 = new Pos02.Foo<>(1, "");
|
||||
Foo<? extends Integer> f10 = new Pos02.Foo<>(1, "");
|
||||
Foo<?> f11 = new Pos02.Foo<>(1, "");
|
||||
Foo<? super Integer> f12 = new Pos02.Foo<>(1, "");
|
||||
|
||||
Foo<Integer> f13 = new Pos02.Foo<>(1, ""){}; //new Foo<Integer> created
|
||||
Foo<? extends Integer> f14 = new Pos02.Foo<>(1, ""){}; //new Foo<Integer> created
|
||||
Foo<?> f15 = new Pos02.Foo<>(1, ""){}; //new Foo<Object> created
|
||||
Foo<? super Integer> f16 = new Pos02.Foo<>(1, ""){}; //new Foo<Object> created
|
||||
Foo<Integer> f13 = new Pos02.Foo<>(1, ""){};
|
||||
Foo<? extends Integer> f14 = new Pos02.Foo<>(1, ""){};
|
||||
Foo<?> f15 = new Pos02.Foo<>(1, ""){};
|
||||
Foo<? super Integer> f16 = new Pos02.Foo<>(1, ""){};
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
@ -1,10 +1,33 @@
|
||||
/*
|
||||
* @test /nodynamiccopyright/
|
||||
* @bug 6840638
|
||||
* Copyright 2010 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* @summary Project Coin: Improved Type Inference for Generic Instance Creation (aka 'diamond')
|
||||
* 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 6939620
|
||||
*
|
||||
* @summary Switch to 'complex' diamond inference scheme
|
||||
* @author mcimadamore
|
||||
* @compile Pos03.java -source 1.7
|
||||
* @compile Pos03.java
|
||||
* @run main Pos03
|
||||
*
|
||||
*/
|
||||
@ -17,69 +40,69 @@ public class Pos03<U> {
|
||||
}
|
||||
|
||||
void testSimple() {
|
||||
Foo<Integer> f1 = new Foo<>(1); //new Foo<Integer> created
|
||||
Foo<? extends Integer> f2 = new Foo<>(1); //new Foo<Integer> created
|
||||
Foo<?> f3 = new Foo<>(1); //new Foo<Object> created
|
||||
Foo<? super Integer> f4 = new Foo<>(1); //new Foo<Object> created
|
||||
Foo<Integer> f1 = new Foo<>(1);
|
||||
Foo<? extends Integer> f2 = new Foo<>(1);
|
||||
Foo<?> f3 = new Foo<>(1);
|
||||
Foo<? super Integer> f4 = new Foo<>(1);
|
||||
|
||||
Foo<Integer> f5 = new Foo<>(1){}; //new Foo<Integer> created
|
||||
Foo<? extends Integer> f6 = new Foo<>(1){}; //new Foo<Integer> created
|
||||
Foo<?> f7 = new Foo<>(1){}; //new Foo<Object> created
|
||||
Foo<? super Integer> f8 = new Foo<>(1){}; //new Foo<Object> created
|
||||
Foo<Integer> f5 = new Foo<>(1){};
|
||||
Foo<? extends Integer> f6 = new Foo<>(1){};
|
||||
Foo<?> f7 = new Foo<>(1){};
|
||||
Foo<? super Integer> f8 = new Foo<>(1){};
|
||||
|
||||
Foo<Integer> f9 = new Foo<>(1, ""); //new Foo<Integer> created
|
||||
Foo<? extends Integer> f10 = new Foo<>(1, ""); //new Foo<Integer> created
|
||||
Foo<?> f11 = new Foo<>(1, ""); //new Foo<Object> created
|
||||
Foo<? super Integer> f12 = new Foo<>(1, ""); //new Foo<Object> created
|
||||
Foo<Integer> f9 = new Foo<>(1, "");
|
||||
Foo<? extends Integer> f10 = new Foo<>(1, "");
|
||||
Foo<?> f11 = new Foo<>(1, "");
|
||||
Foo<? super Integer> f12 = new Foo<>(1, "");
|
||||
|
||||
Foo<Integer> f13 = new Foo<>(1, ""){}; //new Foo<Integer> created
|
||||
Foo<? extends Integer> f14 = new Foo<>(1, ""){}; //new Foo<Integer> created
|
||||
Foo<?> f15 = new Foo<>(1, ""){}; //new Foo<Object> created
|
||||
Foo<? super Integer> f16 = new Foo<>(1, ""){}; //new Foo<Object> created
|
||||
Foo<Integer> f13 = new Foo<>(1, ""){};
|
||||
Foo<? extends Integer> f14 = new Foo<>(1, ""){};
|
||||
Foo<?> f15 = new Foo<>(1, ""){};
|
||||
Foo<? super Integer> f16 = new Foo<>(1, ""){};
|
||||
}
|
||||
|
||||
void testQualified_1() {
|
||||
Foo<Integer> f1 = new Pos03<U>.Foo<>(1); //new Foo<Integer> created
|
||||
Foo<? extends Integer> f2 = new Pos03<U>.Foo<>(1); //new Foo<Integer> created
|
||||
Foo<?> f3 = new Pos03<U>.Foo<>(1); //new Foo<Object> created
|
||||
Foo<? super Integer> f4 = new Pos03<U>.Foo<>(1); //new Foo<Object> created
|
||||
Foo<Integer> f1 = new Pos03<U>.Foo<>(1);
|
||||
Foo<? extends Integer> f2 = new Pos03<U>.Foo<>(1);
|
||||
Foo<?> f3 = new Pos03<U>.Foo<>(1);
|
||||
Foo<? super Integer> f4 = new Pos03<U>.Foo<>(1);
|
||||
|
||||
Foo<Integer> f5 = new Pos03<U>.Foo<>(1){}; //new Foo<Integer> created
|
||||
Foo<? extends Integer> f6 = new Pos03<U>.Foo<>(1){}; //new Foo<Integer> created
|
||||
Foo<?> f7 = new Pos03<U>.Foo<>(1){}; //new Foo<Object> created
|
||||
Foo<? super Integer> f8 = new Pos03<U>.Foo<>(1){}; //new Foo<Object> created
|
||||
Foo<Integer> f5 = new Pos03<U>.Foo<>(1){};
|
||||
Foo<? extends Integer> f6 = new Pos03<U>.Foo<>(1){};
|
||||
Foo<?> f7 = new Pos03<U>.Foo<>(1){};
|
||||
Foo<? super Integer> f8 = new Pos03<U>.Foo<>(1){};
|
||||
|
||||
Foo<Integer> f9 = new Pos03<U>.Foo<>(1, ""); //new Foo<Integer> created
|
||||
Foo<? extends Integer> f10 = new Pos03<U>.Foo<>(1, ""); //new Foo<Integer> created
|
||||
Foo<?> f11 = new Pos03<U>.Foo<>(1, ""); //new Foo<Object> created
|
||||
Foo<? super Integer> f12 = new Pos03<U>.Foo<>(1, ""); //new Foo<Object> created
|
||||
Foo<Integer> f9 = new Pos03<U>.Foo<>(1, "");
|
||||
Foo<? extends Integer> f10 = new Pos03<U>.Foo<>(1, "");
|
||||
Foo<?> f11 = new Pos03<U>.Foo<>(1, "");
|
||||
Foo<? super Integer> f12 = new Pos03<U>.Foo<>(1, "");
|
||||
|
||||
Foo<Integer> f13 = new Pos03<U>.Foo<>(1, ""){}; //new Foo<Integer> created
|
||||
Foo<? extends Integer> f14 = new Pos03<U>.Foo<>(1, ""){}; //new Foo<Integer> created
|
||||
Foo<?> f15 = new Pos03<U>.Foo<>(1, ""){}; //new Foo<Object> created
|
||||
Foo<? super Integer> f16 = new Pos03<U>.Foo<>(1, ""){}; //new Foo<Object> created
|
||||
Foo<Integer> f13 = new Pos03<U>.Foo<>(1, ""){};
|
||||
Foo<? extends Integer> f14 = new Pos03<U>.Foo<>(1, ""){};
|
||||
Foo<?> f15 = new Pos03<U>.Foo<>(1, ""){};
|
||||
Foo<? super Integer> f16 = new Pos03<U>.Foo<>(1, ""){};
|
||||
}
|
||||
|
||||
void testQualified_2(Pos03<U> p) {
|
||||
Foo<Integer> f1 = p.new Foo<>(1); //new Foo<Integer> created
|
||||
Foo<? extends Integer> f2 = p.new Foo<>(1); //new Foo<Integer> created
|
||||
Foo<?> f3 = p.new Foo<>(1); //new Foo<Object> created
|
||||
Foo<? super Integer> f4 = p.new Foo<>(1); //new Foo<Object> created
|
||||
Foo<Integer> f1 = p.new Foo<>(1);
|
||||
Foo<? extends Integer> f2 = p.new Foo<>(1);
|
||||
Foo<?> f3 = p.new Foo<>(1);
|
||||
Foo<? super Integer> f4 = p.new Foo<>(1);
|
||||
|
||||
Foo<Integer> f5 = p.new Foo<>(1){}; //new Foo<Integer> created
|
||||
Foo<? extends Integer> f6 = p.new Foo<>(1){}; //new Foo<Integer> created
|
||||
Foo<?> f7 = p.new Foo<>(1){}; //new Foo<Object> created
|
||||
Foo<? super Integer> f8 = p.new Foo<>(1){}; //new Foo<Object> created
|
||||
Foo<Integer> f5 = p.new Foo<>(1){};
|
||||
Foo<? extends Integer> f6 = p.new Foo<>(1){};
|
||||
Foo<?> f7 = p.new Foo<>(1){};
|
||||
Foo<? super Integer> f8 = p.new Foo<>(1){};
|
||||
|
||||
Foo<Integer> f9 = p.new Foo<>(1, ""); //new Foo<Integer> created
|
||||
Foo<? extends Integer> f10 = p.new Foo<>(1, ""); //new Foo<Integer> created
|
||||
Foo<?> f11 = p.new Foo<>(1, ""); //new Foo<Object> created
|
||||
Foo<? super Integer> f12 = p.new Foo<>(1, ""); //new Foo<Object> created
|
||||
Foo<Integer> f9 = p.new Foo<>(1, "");
|
||||
Foo<? extends Integer> f10 = p.new Foo<>(1, "");
|
||||
Foo<?> f11 = p.new Foo<>(1, "");
|
||||
Foo<? super Integer> f12 = p.new Foo<>(1, "");
|
||||
|
||||
Foo<Integer> f13 = p.new Foo<>(1, ""){}; //new Foo<Integer> created
|
||||
Foo<? extends Integer> f14 = p.new Foo<>(1, ""){}; //new Foo<Integer> created
|
||||
Foo<?> f15 = p.new Foo<>(1, ""){}; //new Foo<Object> created
|
||||
Foo<? super Integer> f16 = p.new Foo<>(1, ""){}; //new Foo<Object> created
|
||||
Foo<Integer> f13 = p.new Foo<>(1, ""){};
|
||||
Foo<? extends Integer> f14 = p.new Foo<>(1, ""){};
|
||||
Foo<?> f15 = p.new Foo<>(1, ""){};
|
||||
Foo<? super Integer> f16 = p.new Foo<>(1, ""){};
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
@ -1,10 +1,33 @@
|
||||
/*
|
||||
* @test /nodynamiccopyright/
|
||||
* @bug 6840638
|
||||
* Copyright 2010 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* @summary Project Coin: Improved Type Inference for Generic Instance Creation (aka 'diamond')
|
||||
* 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 6939620
|
||||
*
|
||||
* @summary Switch to 'complex' diamond inference scheme
|
||||
* @author mcimadamore
|
||||
* @compile Pos04.java -source 1.7
|
||||
* @compile Pos04.java
|
||||
* @run main Pos04
|
||||
*
|
||||
*/
|
||||
@ -16,25 +39,25 @@ public class Pos04<U> {
|
||||
Foo(V x) {}
|
||||
<Z> Foo(V x, Z z) {}
|
||||
}
|
||||
Foo<Integer> p1 = new Foo<>(1); //new Foo<Integer> created
|
||||
Foo<? extends Integer> p2 = new Foo<>(1); //new Foo<Integer> created
|
||||
Foo<?> p3 = new Foo<>(1); //new Foo<Object> created
|
||||
Foo<? super Integer> p4 = new Foo<>(1); //new Foo<Object> created
|
||||
Foo<Integer> p1 = new Foo<>(1);
|
||||
Foo<? extends Integer> p2 = new Foo<>(1);
|
||||
Foo<?> p3 = new Foo<>(1);
|
||||
Foo<? super Integer> p4 = new Foo<>(1);
|
||||
|
||||
Foo<Integer> p5 = new Foo<>(1){}; //new Foo<Integer> created
|
||||
Foo<? extends Integer> p6 = new Foo<>(1){}; //new Foo<Integer> created
|
||||
Foo<?> p7 = new Foo<>(1){}; //new Foo<Object> created
|
||||
Foo<? super Integer> p8 = new Foo<>(1){}; //new Foo<Object> created
|
||||
Foo<Integer> p5 = new Foo<>(1){};
|
||||
Foo<? extends Integer> p6 = new Foo<>(1){};
|
||||
Foo<?> p7 = new Foo<>(1){};
|
||||
Foo<? super Integer> p8 = new Foo<>(1){};
|
||||
|
||||
Foo<Integer> p9 = new Foo<>(1, ""); //new Foo<Integer> created
|
||||
Foo<? extends Integer> p10 = new Foo<>(1, ""); //new Foo<Integer> created
|
||||
Foo<?> p11 = new Foo<>(1, ""); //new Foo<Object> created
|
||||
Foo<? super Integer> p12 = new Foo<>(1, ""); //new Foo<Object> created
|
||||
Foo<Integer> p9 = new Foo<>(1, "");
|
||||
Foo<? extends Integer> p10 = new Foo<>(1, "");
|
||||
Foo<?> p11 = new Foo<>(1, "");
|
||||
Foo<? super Integer> p12 = new Foo<>(1, "");
|
||||
|
||||
Foo<Integer> p13 = new Foo<>(1, ""){}; //new Foo<Integer> created
|
||||
Foo<? extends Integer> p14 = new Foo<>(1, ""){}; //new Foo<Integer> created
|
||||
Foo<?> p15 = new Foo<>(1, ""){}; //new Foo<Object> created
|
||||
Foo<? super Integer> p16 = new Foo<>(1, ""){}; //new Foo<Object> created
|
||||
Foo<Integer> p13 = new Foo<>(1, ""){};
|
||||
Foo<? extends Integer> p14 = new Foo<>(1, ""){};
|
||||
Foo<?> p15 = new Foo<>(1, ""){};
|
||||
Foo<? super Integer> p16 = new Foo<>(1, ""){};
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
45
langtools/test/tools/javac/generics/diamond/pos/Pos05.java
Normal file
45
langtools/test/tools/javac/generics/diamond/pos/Pos05.java
Normal file
@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2010 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 6939620
|
||||
*
|
||||
* @summary Switch to 'complex' diamond inference scheme
|
||||
* @author mcimadamore
|
||||
* @compile Pos05.java
|
||||
*
|
||||
*/
|
||||
|
||||
public class Pos05 {
|
||||
|
||||
static class Foo<X> {
|
||||
Foo(X x) {}
|
||||
}
|
||||
|
||||
void m(Foo<Integer> fi) {}
|
||||
|
||||
void test() {
|
||||
m(new Foo<>(1));
|
||||
}
|
||||
}
|
@ -89,7 +89,7 @@ public class TestElementsAnnotatedWith extends AbstractProcessor {
|
||||
// Verify that the annotation information is as
|
||||
// expected.
|
||||
|
||||
Set<String> expectedNames = new HashSet<>(Arrays.asList(annotatedElementInfo.names()));
|
||||
Set<String> expectedNames = new HashSet<String>(Arrays.asList(annotatedElementInfo.names()));
|
||||
|
||||
resultsMeta =
|
||||
roundEnvironment.
|
||||
|
@ -113,10 +113,10 @@ public class TestAnonClassNames {
|
||||
*/
|
||||
static void testClassName(String className) {
|
||||
JavaCompiler javaCompiler = ToolProvider.getSystemJavaCompiler();
|
||||
List<String> classNames = new ArrayList<>();
|
||||
List<String> classNames = new ArrayList<String>();
|
||||
classNames.add(className);
|
||||
|
||||
List<String> options = new ArrayList<>();
|
||||
List<String> options = new ArrayList<String>();
|
||||
options.add("-proc:only");
|
||||
options.add("-classpath");
|
||||
options.add(System.getProperty("test.classes"));
|
||||
@ -128,7 +128,7 @@ public class TestAnonClassNames {
|
||||
options,
|
||||
classNames,
|
||||
null); // Sources
|
||||
List<Processor> processors = new ArrayList<>();
|
||||
List<Processor> processors = new ArrayList<Processor>();
|
||||
processors.add(new ClassNameProber());
|
||||
compileTask.setProcessors(processors);
|
||||
Boolean goodResult = compileTask.call();
|
||||
|
Loading…
Reference in New Issue
Block a user