recent regression
Bryce McKinlay
mckinlay@redhat.com
Fri Jun 25 06:23:00 GMT 2004
Tom Tromey wrote:
>Anybody care to claim this one?
>>fleche. gcj -C a.java
>fleche. touch a.java
>fleche. gcj -C a.java
>a.java:0: warning: source file for class `a' is newer than its matching class file. Source file `./a.java' used instead
>>>We never used to emit that warning, which is bogus -- I specifically
>asked to compile a.java, and in this situation reading a.class would
>be wrong anyway.
>>
I reopened an old PR on this issue:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1207
The problem is that that load_class is being called on "a" while it is
already being parsed. This is apparantly pretty harmless, except that
the class resolution code called from load_class doesn't know about
source files from the command line.
Here's a fix. OK to commit?
Regards
Bryce
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcj-source-warning.patch
Type: text/x-patch
Size: 704 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java/attachments/20040625/ec5dbb1e/attachment.bin>
More information about the Java
mailing list