< prev index next >

src/jdk.compiler/share/classes/com/sun/tools/javac/resources/compiler.properties

Print this page

 380 
 381 compiler.misc.guard=\
 382     a guard
 383 
 384 # 0: type
 385 compiler.err.cant.deref=\
 386     {0} cannot be dereferenced
 387 
 388 compiler.err.cant.extend.intf.annotation=\
 389     ''extends'' not allowed for @interfaces
 390 
 391 compiler.err.annotation.decl.not.allowed.here=\
 392     annotation interface declaration not allowed here
 393 
 394 # 0: symbol
 395 compiler.err.cant.inherit.from.final=\
 396     cannot inherit from final {0}
 397 
 398 # 0: symbol or name
 399 compiler.err.cant.ref.before.ctor.called=\
 400     cannot reference {0} before supertype constructor has been called
 401 
 402 # 0: symbol or name
 403 compiler.err.cant.assign.initialized.before.ctor.called=\
 404     cannot assign initialized field ''{0}'' before supertype constructor has been called
 405 
 406 compiler.err.cant.select.static.class.from.param.type=\
 407     cannot select a static class from a parameterized type
 408 
 409 # 0: symbol, 1: string, 2: string
 410 compiler.err.cant.inherit.diff.arg=\
 411     {0} cannot be inherited with different arguments: <{1}> and <{2}>
 412 
 413 compiler.err.catch.without.try=\
 414     ''catch'' without ''try''
 415 
 416 # 0: kind name, 1: symbol
 417 compiler.err.clash.with.pkg.of.same.name=\
 418     {0} {1} clashes with package of same name
 419 
 420 compiler.err.class.not.allowed=\
 421     class, interface or enum declaration not allowed here
 422 
 423 compiler.err.const.expr.req=\
 424     constant expression required

 766 compiler.err.illegal.start.of.expr=\
 767     illegal start of expression
 768 
 769 compiler.err.illegal.start.of.stmt=\
 770     illegal start of statement
 771 
 772 compiler.err.illegal.start.of.type=\
 773     illegal start of type
 774 
 775 compiler.err.illegal.parenthesized.expression=\
 776     illegal parenthesized expression
 777 
 778 compiler.err.illegal.unicode.esc=\
 779     illegal unicode escape
 780 
 781 # 0: symbol
 782 compiler.err.import.requires.canonical=\
 783     import requires canonical name for {0}
 784 
 785 compiler.err.improperly.formed.type.param.missing=\
 786     improperly formed type, some parameters are missing
 787 
 788 compiler.err.improperly.formed.type.inner.raw.param=\
 789     improperly formed type, type arguments given on a raw type
 790 
 791 # 0: type, 1: type
 792 compiler.err.incomparable.types=\
 793     incomparable types: {0} and {1}
 794 
 795 # 0: string
 796 compiler.err.int.number.too.large=\
 797     integer number too large
 798 
 799 compiler.err.intf.annotation.members.cant.have.params=\
 800     elements in annotation interface declarations cannot declare formal parameters
 801 
 802 # 0: symbol
 803 compiler.err.intf.annotation.cant.have.type.params=\
 804     annotation interface {0} cannot be generic
 805 
 806 compiler.err.intf.annotation.members.cant.have.type.params=\

2116     an Externalizable class needs a public no-arg constructor
2117 
2118 # lint: serial
2119 compiler.warn.non.serializable.instance.field=\
2120     non-transient instance field of a serializable class declared with a non-serializable type
2121 
2122 # 0: type
2123 # lint: serial
2124 compiler.warn.non.serializable.instance.field.array=\
2125     non-transient instance field of a serializable class declared with an array having a non-serializable base component type {0}
2126 
2127 # lint: serial
2128 compiler.warn.non.private.method.weaker.access=\
2129     serialization-related method declared non-private in an interface will prevent\n\
2130     classes implementing the interface from declaring the method as private
2131 
2132 # lint: serial
2133 compiler.warn.default.ineffective=\
2134     serialization-related default method from an interface will not be run by serialization for an implementing class
2135 








2136 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2137 # lint: overloads
2138 compiler.warn.potentially.ambiguous.overload=\
2139     {0} in {1} is potentially ambiguous with {2} in {3}
2140 
2141 # 0: message segment
2142 # lint: overrides
2143 compiler.warn.override.varargs.missing=\
2144     {0}; overridden method has no ''...''
2145 
2146 # 0: message segment
2147 # lint: overrides
2148 compiler.warn.override.varargs.extra=\
2149     {0}; overriding method is missing ''...''
2150 
2151 # 0: message segment
2152 compiler.warn.override.bridge=\
2153     {0}; overridden method is a bridge method
2154 
2155 # 0: symbol

2847     required: {1}\n\
2848     found:    {0}
2849 
2850 ## The following are all possible strings for the first argument ({0}) of the
2851 ## above string.
2852 compiler.misc.type.req.class=\
2853     class
2854 
2855 compiler.misc.type.req.class.array=\
2856     class or array
2857 
2858 compiler.misc.type.req.array.or.iterable=\
2859     array or java.lang.Iterable
2860 
2861 compiler.misc.type.req.ref=\
2862     reference
2863 
2864 compiler.misc.type.req.exact=\
2865     class or interface without bounds
2866 



2867 # 0: type
2868 compiler.misc.type.parameter=\
2869     type parameter {0}
2870 
2871 #####
2872 
2873 ## The following are all possible strings for the last argument of all those
2874 ## diagnostics whose key ends in ".1"
2875 
2876 # 0: type, 1: list of type
2877 compiler.misc.no.unique.maximal.instance.exists=\
2878     no unique maximal instance exists for type variable {0} with upper bounds {1}
2879 
2880 # 0: type, 1: list of type
2881 compiler.misc.no.unique.minimal.instance.exists=\
2882     no unique minimal instance exists for type variable {0} with lower bounds {1}
2883 
2884 # 0: type, 1: list of type
2885 compiler.misc.incompatible.upper.bounds=\
2886     inference variable {0} has incompatible upper bounds {1}

3907     --add-opens has no effect at compile time
3908 
3909 compiler.misc.locn.module_source_path=\
3910     module source path
3911 
3912 compiler.misc.locn.upgrade_module_path=\
3913     upgrade module path
3914 
3915 compiler.misc.locn.system_modules=\
3916     system modules
3917 
3918 compiler.misc.locn.module_path=\
3919     application module path
3920 
3921 compiler.misc.cant.resolve.modules=\
3922     cannot resolve modules
3923 
3924 compiler.misc.bad.requires.flag=\
3925     invalid flag for "requires java.base": {0}
3926 



3927 # 0: string
3928 compiler.err.invalid.module.specifier=\
3929     module specifier not allowed: {0}
3930 
3931 # 0: symbol
3932 compiler.warn.service.provided.but.not.exported.or.used=\
3933     service interface provided but not exported or used
3934 
3935 # 0: kind name, 1: symbol, 2: symbol
3936 # lint: exports
3937 compiler.warn.leaks.not.accessible=\
3938     {0} {1} in module {2} is not accessible to clients that require this module
3939 # 0: kind name, 1: symbol, 2: symbol
3940 # lint: exports
3941 compiler.warn.leaks.not.accessible.unexported=\
3942     {0} {1} in module {2} is not exported
3943 # 0: kind name, 1: symbol, 2: symbol
3944 # lint: exports
3945 compiler.warn.leaks.not.accessible.not.required.transitive=\
3946     {0} {1} in module {2} is not indirectly exported using ''requires transitive''

4248 # 0: option name
4249 compiler.err.release.bootclasspath.conflict=\
4250     option {0} cannot be used together with --release
4251 
4252 # 0: string
4253 compiler.err.unsupported.release.version=\
4254     release version {0} not supported
4255 
4256 # 0: string
4257 compiler.err.file.not.found=\
4258     file not found: {0}
4259 
4260 # 0: string, 1: source
4261 compiler.err.preview.not.latest=\
4262     invalid source release {0} with --enable-preview\n\
4263     (preview language features are only supported for release {1})
4264 
4265 compiler.err.preview.without.source.or.release=\
4266     --enable-preview must be used with either -source or --release
4267 






















4268 # 0: symbol
4269 compiler.err.deconstruction.pattern.only.records=\
4270     deconstruction patterns can only be applied to records, {0} is not a record
4271 
4272 compiler.err.deconstruction.pattern.var.not.allowed=\
4273     deconstruction patterns can only be applied to records, var is not allowed
4274 
4275 # 0: list of type, 1: list of type
4276 compiler.err.incorrect.number.of.nested.patterns=\
4277     incorrect number of nested patterns\n\
4278     required: {0}\n\
4279     found: {1}
4280 
4281 # 0: kind name, 1: symbol
4282 # lint: preview
4283 # flags: aggregate, mandatory, default-enabled
4284 compiler.warn.declared.using.preview=\
4285     {0} {1} is declared using a preview feature, which may be removed in a future release.
4286 
4287 # lint: identity
4288 compiler.warn.attempt.to.synchronize.on.instance.of.value.based.class=\
4289     attempt to synchronize on an instance of a value-based class
4290 
4291 # lint: identity
4292 compiler.warn.attempt.to.use.value.based.where.identity.expected=\
4293     use of a value-based class with an operation that expects reliable identity
4294 





4295 # 0: type
4296 compiler.err.enclosing.class.type.non.denotable=\
4297     enclosing class type: {0}\n\
4298     is non-denotable, try casting to a denotable type




 380 
 381 compiler.misc.guard=\
 382     a guard
 383 
 384 # 0: type
 385 compiler.err.cant.deref=\
 386     {0} cannot be dereferenced
 387 
 388 compiler.err.cant.extend.intf.annotation=\
 389     ''extends'' not allowed for @interfaces
 390 
 391 compiler.err.annotation.decl.not.allowed.here=\
 392     annotation interface declaration not allowed here
 393 
 394 # 0: symbol
 395 compiler.err.cant.inherit.from.final=\
 396     cannot inherit from final {0}
 397 
 398 # 0: symbol or name
 399 compiler.err.cant.ref.before.ctor.called=\
 400     cannot reference {0} before constructor has been called
 401 
 402 # 0: symbol or name
 403 compiler.err.cant.assign.initialized.before.ctor.called=\
 404     cannot assign initialized field ''{0}'' before constructor has been called
 405 
 406 compiler.err.cant.select.static.class.from.param.type=\
 407     cannot select a static class from a parameterized type
 408 
 409 # 0: symbol, 1: string, 2: string
 410 compiler.err.cant.inherit.diff.arg=\
 411     {0} cannot be inherited with different arguments: <{1}> and <{2}>
 412 
 413 compiler.err.catch.without.try=\
 414     ''catch'' without ''try''
 415 
 416 # 0: kind name, 1: symbol
 417 compiler.err.clash.with.pkg.of.same.name=\
 418     {0} {1} clashes with package of same name
 419 
 420 compiler.err.class.not.allowed=\
 421     class, interface or enum declaration not allowed here
 422 
 423 compiler.err.const.expr.req=\
 424     constant expression required

 766 compiler.err.illegal.start.of.expr=\
 767     illegal start of expression
 768 
 769 compiler.err.illegal.start.of.stmt=\
 770     illegal start of statement
 771 
 772 compiler.err.illegal.start.of.type=\
 773     illegal start of type
 774 
 775 compiler.err.illegal.parenthesized.expression=\
 776     illegal parenthesized expression
 777 
 778 compiler.err.illegal.unicode.esc=\
 779     illegal unicode escape
 780 
 781 # 0: symbol
 782 compiler.err.import.requires.canonical=\
 783     import requires canonical name for {0}
 784 
 785 compiler.err.improperly.formed.type.param.missing=\
 786     improperly formed type, some parameters are missing or misplaced
 787 
 788 compiler.err.improperly.formed.type.inner.raw.param=\
 789     improperly formed type, type arguments given on a raw type
 790 
 791 # 0: type, 1: type
 792 compiler.err.incomparable.types=\
 793     incomparable types: {0} and {1}
 794 
 795 # 0: string
 796 compiler.err.int.number.too.large=\
 797     integer number too large
 798 
 799 compiler.err.intf.annotation.members.cant.have.params=\
 800     elements in annotation interface declarations cannot declare formal parameters
 801 
 802 # 0: symbol
 803 compiler.err.intf.annotation.cant.have.type.params=\
 804     annotation interface {0} cannot be generic
 805 
 806 compiler.err.intf.annotation.members.cant.have.type.params=\

2116     an Externalizable class needs a public no-arg constructor
2117 
2118 # lint: serial
2119 compiler.warn.non.serializable.instance.field=\
2120     non-transient instance field of a serializable class declared with a non-serializable type
2121 
2122 # 0: type
2123 # lint: serial
2124 compiler.warn.non.serializable.instance.field.array=\
2125     non-transient instance field of a serializable class declared with an array having a non-serializable base component type {0}
2126 
2127 # lint: serial
2128 compiler.warn.non.private.method.weaker.access=\
2129     serialization-related method declared non-private in an interface will prevent\n\
2130     classes implementing the interface from declaring the method as private
2131 
2132 # lint: serial
2133 compiler.warn.default.ineffective=\
2134     serialization-related default method from an interface will not be run by serialization for an implementing class
2135 
2136 # lint: serial
2137 compiler.warn.serializable.value.class.without.write.replace.1=\
2138     serializable value class does not declare, or inherits, a writeReplace method
2139 
2140 # lint: serial
2141 compiler.warn.serializable.value.class.without.write.replace.2=\
2142     serializable class does not declare, or inherits, a writeReplace method
2143 
2144 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2145 # lint: overloads
2146 compiler.warn.potentially.ambiguous.overload=\
2147     {0} in {1} is potentially ambiguous with {2} in {3}
2148 
2149 # 0: message segment
2150 # lint: overrides
2151 compiler.warn.override.varargs.missing=\
2152     {0}; overridden method has no ''...''
2153 
2154 # 0: message segment
2155 # lint: overrides
2156 compiler.warn.override.varargs.extra=\
2157     {0}; overriding method is missing ''...''
2158 
2159 # 0: message segment
2160 compiler.warn.override.bridge=\
2161     {0}; overridden method is a bridge method
2162 
2163 # 0: symbol

2855     required: {1}\n\
2856     found:    {0}
2857 
2858 ## The following are all possible strings for the first argument ({0}) of the
2859 ## above string.
2860 compiler.misc.type.req.class=\
2861     class
2862 
2863 compiler.misc.type.req.class.array=\
2864     class or array
2865 
2866 compiler.misc.type.req.array.or.iterable=\
2867     array or java.lang.Iterable
2868 
2869 compiler.misc.type.req.ref=\
2870     reference
2871 
2872 compiler.misc.type.req.exact=\
2873     class or interface without bounds
2874 
2875 compiler.misc.type.req.identity=\
2876     a type with identity
2877 
2878 # 0: type
2879 compiler.misc.type.parameter=\
2880     type parameter {0}
2881 
2882 #####
2883 
2884 ## The following are all possible strings for the last argument of all those
2885 ## diagnostics whose key ends in ".1"
2886 
2887 # 0: type, 1: list of type
2888 compiler.misc.no.unique.maximal.instance.exists=\
2889     no unique maximal instance exists for type variable {0} with upper bounds {1}
2890 
2891 # 0: type, 1: list of type
2892 compiler.misc.no.unique.minimal.instance.exists=\
2893     no unique minimal instance exists for type variable {0} with lower bounds {1}
2894 
2895 # 0: type, 1: list of type
2896 compiler.misc.incompatible.upper.bounds=\
2897     inference variable {0} has incompatible upper bounds {1}

3918     --add-opens has no effect at compile time
3919 
3920 compiler.misc.locn.module_source_path=\
3921     module source path
3922 
3923 compiler.misc.locn.upgrade_module_path=\
3924     upgrade module path
3925 
3926 compiler.misc.locn.system_modules=\
3927     system modules
3928 
3929 compiler.misc.locn.module_path=\
3930     application module path
3931 
3932 compiler.misc.cant.resolve.modules=\
3933     cannot resolve modules
3934 
3935 compiler.misc.bad.requires.flag=\
3936     invalid flag for "requires java.base": {0}
3937 
3938 compiler.misc.bad.access.flags=\
3939     bad access flags combination: {0}
3940 
3941 # 0: string
3942 compiler.err.invalid.module.specifier=\
3943     module specifier not allowed: {0}
3944 
3945 # 0: symbol
3946 compiler.warn.service.provided.but.not.exported.or.used=\
3947     service interface provided but not exported or used
3948 
3949 # 0: kind name, 1: symbol, 2: symbol
3950 # lint: exports
3951 compiler.warn.leaks.not.accessible=\
3952     {0} {1} in module {2} is not accessible to clients that require this module
3953 # 0: kind name, 1: symbol, 2: symbol
3954 # lint: exports
3955 compiler.warn.leaks.not.accessible.unexported=\
3956     {0} {1} in module {2} is not exported
3957 # 0: kind name, 1: symbol, 2: symbol
3958 # lint: exports
3959 compiler.warn.leaks.not.accessible.not.required.transitive=\
3960     {0} {1} in module {2} is not indirectly exported using ''requires transitive''

4262 # 0: option name
4263 compiler.err.release.bootclasspath.conflict=\
4264     option {0} cannot be used together with --release
4265 
4266 # 0: string
4267 compiler.err.unsupported.release.version=\
4268     release version {0} not supported
4269 
4270 # 0: string
4271 compiler.err.file.not.found=\
4272     file not found: {0}
4273 
4274 # 0: string, 1: source
4275 compiler.err.preview.not.latest=\
4276     invalid source release {0} with --enable-preview\n\
4277     (preview language features are only supported for release {1})
4278 
4279 compiler.err.preview.without.source.or.release=\
4280     --enable-preview must be used with either -source or --release
4281 
4282 compiler.misc.feature.value.classes=\
4283     value classes
4284 
4285 # 0: type, 1: type
4286 compiler.err.value.type.has.identity.super.type=\
4287     The identity type {1} cannot be a supertype of the value type {0}
4288 
4289 # 0: symbol, 1: type
4290 compiler.err.concrete.supertype.for.value.class=\
4291     The concrete class {1} is not allowed to be a super class of the value class {0} either directly or indirectly
4292 
4293 # 0: symbol, 1: symbol, 2: type
4294 compiler.err.super.class.method.cannot.be.synchronized=\
4295     The method {0} in the super class {2} of the value class {1} is synchronized. This is disallowed
4296 
4297 compiler.err.non.abstract.value.class.cant.be.sealed.or.non.sealed=\
4298     ''sealed'' or ''non-sealed'' modifiers are only applicable to abstract value classes
4299 
4300 # 0: symbol
4301 compiler.err.strict.field.not.have.been.initialized.before.super=\
4302     strict field {0} is not initialized before the supertype constructor has been called
4303 
4304 # 0: symbol
4305 compiler.err.deconstruction.pattern.only.records=\
4306     deconstruction patterns can only be applied to records, {0} is not a record
4307 
4308 compiler.err.deconstruction.pattern.var.not.allowed=\
4309     deconstruction patterns can only be applied to records, var is not allowed
4310 
4311 # 0: list of type, 1: list of type
4312 compiler.err.incorrect.number.of.nested.patterns=\
4313     incorrect number of nested patterns\n\
4314     required: {0}\n\
4315     found: {1}
4316 
4317 # 0: kind name, 1: symbol
4318 # lint: preview
4319 # flags: aggregate, mandatory, default-enabled
4320 compiler.warn.declared.using.preview=\
4321     {0} {1} is declared using a preview feature, which may be removed in a future release.
4322 
4323 # lint: identity
4324 compiler.warn.attempt.to.synchronize.on.instance.of.value.based.class=\
4325     attempt to synchronize on an instance of a value-based class
4326 
4327 # lint: identity
4328 compiler.warn.attempt.to.use.value.based.where.identity.expected=\
4329     use of a value-based class with an operation that expects reliable identity
4330 
4331 # 0: symbol or name
4332 # lint: initialization
4333 compiler.warn.would.not.be.allowed.in.prologue=\
4334     reference to {0} would not be allowed in the prologue phase
4335 
4336 # 0: type
4337 compiler.err.enclosing.class.type.non.denotable=\
4338     enclosing class type: {0}\n\
4339     is non-denotable, try casting to a denotable type
4340 
4341 compiler.warn.value.finalize=\
4342     value classes should not have finalize methods, they are not invoked
< prev index next >