We used a private method, through reflection, of a JDK class. Is there a guarantee this will not change in a future release ? what is the QoS of a private method for a JDK class ?
We used ThreadPoolExecutor.isStopped() which is actually missing in Java 6 v18. Is there an easy way knowing the minimum jdk required or how to check when a class is changing in Java?
Comments are welcomed and yes we know better not using private methods 🙂
Very bad idea.
No. It may change or disappear in any minor release.
If there were a service-level agreement involved here, you would have forfeited it by using reflection to access a method you should not.
No, apparently you don’t.
Why don’t you use
isTerminated()orisTerminating(). From the API doc it seems that one of these should do what you need.