Jason van Zyl wrote:
Have you ever tried using a cleaning installed Redhat and trying to use
the Java stuff that's installed? In the recent past I spent an hour
trying to figure out why AMQ tests were failing and it was because gjc
was picking stuff up instead of the JDK I installed. Then I had to go
remove some packages and nuke some weird symlinks. Multiply that by who
knows how many people using Java on RedHat and I hope you understand.
You need better diagnostics.
I (accidentally) tested on the default JVMs last month, and did find
things break in interesting ways. The fact that the system in question
was a firewall and an SSH-connection away merely complicated the matter.
Nowadays we catch bits, such as here where I use reflection to load in a
class that implements sun.misc.SignalHandler, and which doesnt load on
gjc Java.
if (addShutdownHook) {
try {
Class irqHandlerClass = Class.forName(INTERRUPT_HANDLER);
Constructor constructor =
irqHandlerClass.getConstructor(new Class[0]);
InterruptHandler handler=(InterruptHandler)
constructor.newInstance(new Object[0]);
handler.bind("INT", sfLog());
} catch (Exception e) {
sfLog().error("Could not create an interrupt handler
from "+ INTERRUPT_HANDLER
+"\nSmartFrog may be running on a JVM which
does not support this feature",e);
}
}
We could go the other way and detect when we were runing on a 'free' JVM
by looking for kaffe, classpath or harmony classes and logging/warning
on that. Its not that we want to say 'you are running on someone else's
JVM, stop it', so much as 'you are running on something we have never
tested, please fix all the problems you encounter and submit the patches
and test results'
Give me a break, I've actually tried this shit and it doesn't work and
it is extremely frustrating. I've used some form of RedHat for a very
long time and the Java stuff has yet to be a satisfying experience. And
that's what I'm afraid of for the user base.
Jason.
I concur, but dont think it always has to be this way. I also think its
a shame that the mono experience on Linux is better than the Java one.
Admittedly, Sun have been half the problem, but as that is slowly being
addressed, the rest of the java world has to move up to the challenge.
Stefano M. is now running Gump on Harmony BTW.
-steve
-Steve
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]