This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug java/14231] [3.4/3.5 Regression]Incorrect interface method called when compiling against .class files


------- Additional Comments From daney at gcc dot gnu dot org  2004-02-25 22:20 -------
The new patch lets me build and gets me past the point of failure demonstrated
by the test case.  However I am now having similar problems in a different place.

I am trying to generate a test case, but have not been able to reproduce outside
of my main application which is 160,000 lines of code across 600 java files.

I will try to describe it in hopes that you can either fix it or help me figure
out what is happening.

I get a NoSuchMethodError when calling through an interface.  The interface in
question extends java.lang.Comparable and the class of the object extends an
abstract base class that contains the implementation of compareTo(Object).

I get the NoSuchMethodError calling compareTo(Object) on the interface.

I have the same type of build environment as before, java.lang.Comparable being
part of the runtime is compiled with gcj in the libgcj build.  My code is
compiled to class files with Sun's javac and then each java file is compiled
(from java source) with gcj using the class files generated by Sun's javac as
the classpath.

I have never tried to take Sun's javac out of the equation.  The same build has
no problems when using gcj 3.3.1

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14231


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