Miranda methods again (Was: compatibility with jikes ?)
Sat Mar 1 17:33:00 GMT 2003
>>>>> "Mark" == Mark Wielaard <email@example.com> writes:
Mark> I vote that we add the Miranda methods explicitly to the
Mark> abstract classes in Classpath that need them.
Don't we only need this to work around gcj bugs? Maybe this should
only happen in the gcj tree.
In either case, let's mark the methods so we know to remove them
Mark> The reason is that "modern" compilers like jikes (when used with
Mark> -target 1.4) no longer generate them and buggy compilers like
Mark> gcj -C never generated them. But not having those methods for
Mark> the standard classes now makes the serialisation different
Mark> (depends on Declared Methods) and breaks "buggy" VMs (that is
Mark> almost all VMs since till very recently they all depended on the
Mark> compiler generating these Miranda methods).
I think we have to solve serialization problems differently -- by
setting the UID explicitly and having tests. That seems like the only
approach that will work with all compilers.
More information about the Java