Topic
  • 1 reply
  • Latest Post - ‏2008-09-12T08:12:46Z by SystemAdmin
SystemAdmin
SystemAdmin
235 Posts

Pinned topic an aix jdk16 issue about java.util.AbstractMap

‏2008-07-09T01:43:24Z |
When i run my case(attached),i can get different results between jdk15 and jdk16.

I find a change in java.util.AbstractMap.

JDK16 code(build pap3260sr1-20080416_01(SR1)):
Set keySet;
Collection valuesCollection;

AIX JDK15 code or JDK15/JDK16(sun/hp):
volatile transient Set keySet;
volatile transient Collection valuesCollection;

Why change them?Please help to check whether it is a bug.
Thanks.
Xiaojie

Attachments

Updated on 2008-09-12T08:12:46Z at 2008-09-12T08:12:46Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    235 Posts

    Re: an aix jdk16 issue about java.util.AbstractMap

    ‏2008-09-12T08:12:46Z  
    another aix jdk16 issue.for attached file we can't get same result between aix jdk15 and jdk16.It should be an issue of jdk16.
    Here is java snippet:
    Collections.sort( list, new Comparator() {
    public int compare(Object obj1, Object obj2 )
    {
    if (Integer.valueOf((String)obj1).intValue() > Integer.valueOf((
    String)obj2).intValue())
    return 1;
    else
    return 0;
    }
    });