Japi diffs for classpath

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/15/06, Stuart Ballard <stuart.a.ballard@xxxxxxxxx> wrote:
> 2) The problem that I was actually trying to target with this change
> doesn't seem to be solved yet:
> http://www.kaffe.org/~stuart/japi/htmlout/h-jdk14-jdk15.html#err_missing_java_lang
> Still shows a whole bunch of methods missing from 1.5 that should be
> present. Why that's happening requires further investigation.

Figured it out - it's a japi bug that's rather hard to fix.

Seems that in JDK1.5 there's a package-private class
AbstractStringBuilder<T extends AbstractStringBuilder<T>> and
StringBuffer is a subclass of AbstractStringBuilder<StringBuffer>.

The methods in question are defined in AbstractStringBuilder as returning T.

So they're present in StringBuffer two ways: as bridge methods,
returning AbstractStringBuilder, and as real methods returning
StringBuffer.

Unfortunately japi is having some trouble with the fact that these
methods differ only in their return type, and ends up only seeing the
bridge method. And since that returns a nonpublic type, it skips it.

The code in Japize that needs to be changed to fix this is complicated
and the change needed isn't trivial. However, it's a different bug
than the one that was just fixed, so the current results are correct
as far as they go.

Stuart.
--
http://sab39.dev.netreach.com/


[Index of Archives]     [Linux Kernel]     [Linux Cryptography]     [Fedora]     [Fedora Directory]     [Red Hat Development]

  Powered by Linux