Java debugging

Andrew Haley aph at redhat.com
Wed Apr 30 16:35:08 UTC 2008


Andrew Haley wrote:
> Les Mikesell wrote:
>> Andrew Haley wrote:
>>> Jerry James wrote:
>>>> On Wed, Apr 30, 2008 at 3:07 AM, Andrew Haley <aph at redhat.com> wrote:
>>>>>  I take your point.  Does simply rebuilding that RPM fix this problem?
>>>> Rebuilding that RPM fails:
>>>>
>>>>     [javac]
>>>> /home/jamesjer/rpmbuild/BUILD/axis-1_2_1/src/org/apache/axis/i18n/ProjectResourceBundle.java:363:
>>>>
>>>> clearCache() in org.apache.axis.i18n.ProjectResourceBundle cannot
>>>> override clearCache() in java.util.ResourceBundle; overridden method
>>>> is static final
>>>>     [javac]     public static void clearCache()
>>>>     [javac]                        ^
>>> Oh, great.  :-(
>>>
>>> That's an incompatible change from Java 1.5 to 1.6.
>>>
>>> Java 1.6 has a final method clearCache(), 1.5 doesn't:
>>>
>>> http://java.sun.com/j2se/1.5.0/docs/api/java/util/ResourceBundle.html
>>> http://java.sun.com/javase/6/docs/api/java/util/ResourceBundle.html
>> So someone has noticed that shipping a 1.6'ish JVM isn't necessarily
>> going to work for everyone who needs to run current java applications?
> 
> They'll work; they're binary compatible, not source compatible.

Hmm, I think I'm wrong about that: we'll get an assert failure.

I think this should be fixed.

Andrew.




More information about the fedora-devel-list mailing list