I have a distributed JBoss-based application that shows a buggy behavior when compiled and run with Java 1.6. It shows an another bug when compiled with Java 1.5 and run with Java 1.6. But it works fine when compiled and run with Java 1.5. What is the best approach to debug this application? Is there a lint for Java 1.5 to 1.6 conversion?
Of course the behavior also depends on the third-party libraries I am using. I am using JBoss 4.0.3 (and several other libraries too!), which I understand is a quite old version. Before I move on to upgrade the JBoss version, I want to make sure that the issue is not related to my code.
Depending on the size of application and complexity of its calls to third party libraries, you could do this. Write mock-up methods which actually returns the value that is returned by third party library calls and compile/run it with both Java versions. In this way, you could be sure that your code is not doing anything wrong. I know this is the most painful way :). But if you already have unit tests for this application in place, you might just need small changes around it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With