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/15133] gcjh generates wrong method signatures


------- Additional Comments From rmathew at gcc dot gnu dot org  2004-04-27 10:25 -------
The problem is that disambiguation using arguments should only happen
for *native* overloaded methods - in this case, even a non-native
method triggers the disambiguation logic.

More specifically, in gjavah.c we should also keep track of 
whether a method seen before was native and use this information in
overloaded_jni_method_exists_p().

I have a patch for this which I will submit shortly, assuming it
passes all tests - it certainly resolves this particular testcase
and also behaves correctly when more overloaded native methods
are present.

-- 


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


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