critical Java regression
Per Bothner
per@bothner.com
Mon Apr 22 14:07:00 GMT 2002
When I do (cd gnu/math; make) given the attached sources,
I get the following:
CLASSPATH=.:../.. gcj -C RealNum.java
gcj -g -I../.. -I. -c FixedRealFormat.java -o gnu-math.o
gnu/math/RealNum.java: In class `gnu.math.FixedRealFormat':
gnu/math/RealNum.java: In method
`gnu.math.FixedRealFormat.format(gnu.math.RatNum,java.lang.StringBuffer)':
gnu/math/RealNum.java:0: reading class gnu.math.RealNum for the second
time from ./RealNum.class
compilation terminated.
This case is simplified from Kawa. It used to work last time
I tried this. I consider this a release-critical regression.
The problem happens when trying to resolve RealNum.toScaledInt.
It first looks for a class 'RealNum.toScaledInt' and then looks
for 'RealNum'. However, the latter does not check if the class
is already loaded. Unfortunatey, I don't know this code well
enough to know should be happening.
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: math-test.tgz
Type: application/x-gzip
Size: 584 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java/attachments/20020422/9c8c77e7/attachment.bin>
More information about the Java
mailing list