java/2603: out-of-date .class file warning message does not specify filename

alk@pobox.com alk@pobox.com
Fri Apr 20 15:06:00 GMT 2001


>Number:         2603
>Category:       java
>Synopsis:       out-of-date .class file warning message does not specify filename
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 20 15:06:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     alk@pobox.com
>Release:        gcc 3.0 branch
>Organization:
>Environment:
rh 7 linux, gcc 3.0 branch current revision 20 Apr 2001
>Description:
gcj -g -fno-bounds-check  -o obj/FECFileTest.o -c ../../FEC/tests/FECFileTest.java 
../../FEC/tests/FECFileTest.java:2: warning: Source file for class `com.swarmcast.fec.io' is newer than its matching class file. Source file used instead

In this example, a dependency of FECFileTest.java was
present as an (out-of-date) .class file and a (current) .java file.  The class name is not given, as claimed.
Instead, the package of the class is given.
>How-To-Repeat:
create two .java files, one depending on the other.
compile the prior file to a .class file.  touch the .java
file for that class afterwards.  now compile the dependent
.java file
>Fix:
add the .class file name to the message.
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Java-prs mailing list