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:
[email protected]


With regards,
Apache Git Services

Reply via email to