You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@guacamole.apache.org by GitBox <gi...@apache.org> on 2019/08/13 16:59:38 UTC

[GitHub] [guacamole-client] mike-jumper commented on issue #440: GUACAMOLE-774: Fix deprecation issue with Java 9 and up.

mike-jumper commented on issue #440: GUACAMOLE-774: Fix deprecation issue with Java 9 and up.
URL: https://github.com/apache/guacamole-client/pull/440#issuecomment-520919260
 
 
   The only way I can think of would be reflection. For example:
   
   ```java
   Constructor providerConstructor = Provider.class.getConstructor(String.class, String.class, String.class);
   ```
   
   and then call it if found, otherwise resorting to calling the older version.
   
   The downside to just suppressing the warning would be the eventual build failure when the deprecated function is removed, which would then require either doing the above or removing support for Java 8.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services