Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have been developing grails for some time now, and I keep running into platform dependent behavior. I have found bugs that only happen on legitimate versions of Windows and I have found bugs that only happen on one machine even if I reformat and reinstall some other OS and JVM. My most recent gripe, which I can reproduce on several machines but nobody else can is this: http://stackoverflow.com/questions/8884569/grails-println-only-works-sometimes-or-something

Is there some kind of testing or benchmarking suite I can use to see if my JVM is implemented correctly?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

There is the Java Compatibility Kit that has got a huge amounts of tests for JVMs/JDK, but this may be overkill, and it might not be trivial to set up and run.

You have said that:

I have found bugs that only happen on one machine even if I reformat and reinstall some other os and JVM

How is your program printing out stuff? Is it to a GUI or console? If it is a GUI, it might be that there is a compatibility issue with your video card and Java's 2D hardware acceleration. It might be worth playing around with a few Java 2D system properties (try noddraw on Windows to turn off all acceleration, play around with opengl settings on 'nix).

Apart from that, you could try running the JVM in interpreted mode (slow!) with -Xint to see if there is a JVM bytecode compilation issue.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.