This is the mail archive of the java-prs@sources.redhat.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gcj/333


The following reply was made to PR gcj/333; it has been noted by GNATS.

From: Oskar Liljeblad <osk@hem.passagen.se>
To: Alexandre Petit-Bianco <apbianco@cygnus.com>
Cc: java-gnats@sourceware.cygnus.com
Subject: Re: gcj/333
Date: Sat, 25 Nov 2000 10:56:21 +0100

 On Friday, November 24, 2000 at 13:41, Alexandre Petit-Bianco wrote:
 
 > >  I have tried the patch and it works fine. However, it still prints
 > >
 > >    warning: Source file `X.java' for class `Y' is newer than its
 > >    matching class file. Source file used instead
 > >
 > >  even when the file X.class does not exist. [..]
 >
 > I don't understand/can't reproduce what you're describing. If I refer
 > to your original testcase, I witness the following behavior:
 
 You are correct, that script doesn't trigger the behavior. Here is a
 better one:
 
   mkdir dummy
   echo >dummy/ClassA.java "package dummy; class ClassA {}"
   echo >dummy/ClassB.java "package dummy; class ClassB { ClassB(ClassA t) {} }"
   gcj -C dummy/*.java
   touch dummy/*.java
 
 Now, every time you run
 
   gcj -c dummy/Class{A,B}.java
 or
   gcj -c dummy/Class{B,A}.java
 
 the following will be printed:
 
   dummy/ClassB.java:7: warning: Source file for class `dummy.ClassA' is
   newer than its matching class file. Source file used instead
 
 So actually this is a different PR... But maybe it is not a bug at all.
 It is confusing though - I was compiling from .java->.o and had some
 old .class files lying around, and I kept getting those error
 messages.
 
 Oskar Liljeblad (osk@hem.passagen.se)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]