automake-patches
[Top][All Lists]
Advanced

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

Re: [PATCH] {maint} test defs: new requirement for the default java comp


From: Stefano Lattarini
Subject: Re: [PATCH] {maint} test defs: new requirement for the default java compiler
Date: Sun, 10 Apr 2011 10:23:11 +0200
User-agent: KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; )

On Sunday 10 April 2011, Ralf Wildenhues wrote:
> * Stefano Lattarini wrote on Sun, Apr 10, 2011 at 09:50:14AM CEST:
> > Thanks for the fast review,
> >    Stefano
> 
> Hmm.  Did you test this though?
>
Yes, but I only have javac 1.6.0 on my system, which works even with
just the `-version' option:

 $ javac -version; echo '$?' = $?
 javac 1.6.0_20
 $? = 0

Adding a dummy non-existent file to the command line of the javac
invocation unfortunately won't fix your problem:

 $ javac -version dummy.java; echo '$?' = $?
 javac 1.6.0_20
 javac: file not found: dummy.java
 Usage: javac <options> <source files>
 use -help for a list of possible options
 $? = 1

 $ javac -version /dev/null; echo '$?' = $?
 javac 1.6.0_20
 javac: invalid flag: /dev/null
 Usage: javac <options> <source files>
 use -help for a list of possible options
 $? = 1

Maybe adding also the `-help' option to the java invocation works?  E.g.,

 $ javac -version -help

Does this fix your problem?

Sorry for the inconvenience,
  Stefano



reply via email to

[Prev in Thread] Current Thread [Next in Thread]