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]

gcj/333: incorrect error message "Source file for class `dummy' ..."



>Number:         333
>Category:       gcj
>Synopsis:       incorrect error message "Source file for class `dummy' ..."
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apbianco
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 28 07:30:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Oskar Liljeblad
>Release:        unknown-1.0
>Organization:
>Environment:
2.96 20000814
>Description:
Executing the script below gives this output

dummy/ClassB.java:2: warning: Source file for class `dummy' is newer than its matching class file. Source file used instead

when it should really say "Source file for class `dummy.ClassA' is ...".

Oskar Liljeblad (osk@hem.passagen.se)
>How-To-Repeat:
mkdir dummy
echo >dummy/ClassA.java "package dummy; class ClassA {}"
echo >dummy/ClassB.java "package dummy; class ClassB { ClassB(ClassA t) {} }"
gcj -C dummy/ClassA.java
touch dummy/ClassA.java
gcj -C dummy/ClassB.java
>Fix:
I didn't make a fix but the problem is in
gcc/java/jcf-io.c near line 370.
>Release-Note:
>Audit-Trail:
>Unformatted:

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