[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [OT] Java complaint Was: Re: Environment variables for Debian (e.g. JAVA_HOME, etc)



Justin Pryzby wrote:
On Fri, Sep 03, 2004 at 04:10:09PM +1000, Matthew Palmer wrote:

On Fri, Sep 03, 2004 at 07:40:27AM +0200, Sami Dalouche wrote:

And people wonder why I don't like Java...

Can someone explain to me why "java foo.class" has to fail with an
obscure error?  (You're not suppoed to specify .class)  Jeez.

	if (!strcmp(".class", x+strlen(x)-6)) {
		if (fixit) x[strlen(x)-7]=0;
		else if (prettyerror) printf("Don't specify .class");
		else {
			obscure();
		}
	}

Can we at least have kaffe and friends give a pretty message?

That's a nice idea, actually.

Please send me a patch[1] for kaffe and I'll make sure it goes in. The file is kaffe/kaffe/main.c, the main class is loaded by the main2 function.

cheers,
dalibor topic

[1] Usual taintedness conditions apply, i.e. you should not have signed NDAs preventing you from contributing, looked at Sun's SCSL covered code, decompiled it, etc.



Reply to: