Re: Eclipse error despite attempted suppression

2020-04-28 Thread Mark Thomas
On 28/04/2020 15:26, Christopher Schultz wrote:
> All,
> 
> I'm running Eclipse 2020-03 (4.15.0) on MacOS and I'm getting a build
> failure in
> org.apache.catalina.mbeans.JmxRemoteLifecycleListener.JmxRegistry
> because of the use of sun.rmi.registry.RegistryImpl.
> 
> There is an attempt to suppress this for the class:
> 
> @SuppressWarnings("restriction")
> private static class JmxRegistry extends
> sun.rmi.registry.RegistryImpl {
> 
> 
> Is the problem that I have my workspace configured to make uses
> internal-API into *errors* (instead of *warnings*, and you cannot
> suppress an error (only a warning)?

Don't know. Seems like a reasonable guess.

It does appear to depend on the Java version configured as well.
@SuppressWarnings are set on the assumption Java 8 (the minimum Java
version for that version of Tomcat) is being used.

Mark

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



Eclipse error despite attempted suppression

2020-04-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

All,

I'm running Eclipse 2020-03 (4.15.0) on MacOS and I'm getting a build
failure in
org.apache.catalina.mbeans.JmxRemoteLifecycleListener.JmxRegistry
because of the use of sun.rmi.registry.RegistryImpl.

There is an attempt to suppress this for the class:

@SuppressWarnings("restriction")
private static class JmxRegistry extends
sun.rmi.registry.RegistryImpl {


Is the problem that I have my workspace configured to make uses
internal-API into *errors* (instead of *warnings*, and you cannot
suppress an error (only a warning)?

Thanks,
- -chris
-BEGIN PGP SIGNATURE-
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl6oPRwACgkQHPApP6U8
pFgDqhAAgUfihymgPxKG5giYFx/LtSycWYA9PBEOSSYvABWHKcgiHL1+zTZyH+7s
Z8pTB8zY6xdv3EaB7CWTaLJ1FTWMhUhP/YuuzC3RFajFZ8rd+KU5FkHTPr0uJYwc
0jpxOVGpzLRKrkq4n6NXS7E791SwXjwSPLO1E/TsFqQuxRFdJMLEmmNM7e8vj3PO
7o5vNd9iZQI7B/ocwArV+A+UZLHtRlUjWS4h4civyNv3xoIzcfgQOGGTcd7uBJno
t9x/tapx1oPhBKFzE/cRL48WMgMVOF/0/8NfsONLbqKnfGyc+6F5jN94YGLlnd2s
idYZIEMzbxAEYtpZ4Hb1bfTfCcXIrg2t+8MzCyyYLtsnnJnTzJfXACj6y+rLPYyc
7yNPep/ccx2Hllyt1zRIobpj4jajeEyQoly1YyuxLZVt8BXEj8ZF5OXNZja5g1tM
sKfRRY1oa2LXR1ZuznRoohmuVREWbhLsZavrBCgoUkwr0ScfMDw/CFtYVAgbI2Si
CpjthriMjBSBjC+ETR3dZoYak/Yb63XSAtmAk9yXmeA3lIJnL8QQkceyFrUF7lUk
SxAFlsGLiRDm9QkOk9NOyTyCe4c9W7JDvoQgYMAXv6aIl4yGcorGOMSfwXaROGgx
o+9bQ2Mwf1nhPHMcjl8vip0xj+Z/j4e+OBYFVgR2zYAoITcfSHM=
=AiMn
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org