Why is GCJ shy of overwriting a .class file?

Ranjit Mathew rmathew@hotmail.com
Fri Nov 8 03:38:00 GMT 2002


Andrew Haley wrote:
> Ranjit Mathew writes:
>  > Hi,
>  > 
>  >      gcj happily overwrites object files, executables,
>  > etc. after compilation, but it complains if a class
>  > file already exists.
> 
> Not to me.  Please give an example of this behaviour.

On Windows, I get:
------------------------ 8< ----------------------------
C:\src\tmp>gcj -C T.java

C:\src\tmp>gcj -C T.java
jc1.exe: File exists: can't create ./T.class
------------------------ 8< ----------------------------

Strangely however, on Solaris I *don't* get the error.

???

Ranjit.

-- 
Ranjit Mathew          Email: rmathew AT hotmail DOT com

Bangalore, INDIA.      Web: http://ranjitmathew.tripod.com/





More information about the Java mailing list