Can I use runtime parameters to fix out of bad API calls in Java?
问题 Not sure if this is the right spot to ask but I'm having a Java issue. I have some Java code that works in Java 6 but not in Java 7, the error is: java.lang.IllegalStateException: This function should be called while holding treeLock Using Java6 works but a few of our external users are running Java 7. I figured out the error was caused by a call to validateTree() , which works in java6 but in Java7 we need to call validate() . When I test it locally it works. Here's my problem, I started