openjdk6 b17

Ronald Klop ronald-freebsd8 at klop.yi.org
Sat Oct 31 16:29:17 UTC 2009


On Fri, 30 Oct 2009 22:29:38 +0100, Brian Gardner <brian at getsnappy.com>  
wrote:

> Hi everybody,
> I've completed the port of openjdk6 from b16 to b17.  I've blogged about  
> the upgrade here:
> http://www.getsnappy.com/tech-blog/freebsd-tips-tricks/upgrading-freebsd-port-javaopenjdk6-from-b16-to-b17/
>
> You can download this port and test it before it is committed from:
> http://www.getsnappy.com/downloads/openjdk6-b17.tar.gz
>
> To install the port:
>
> cd /usr/ports/java
> tar -xjf <path_to_tar_bundle>/openjdk6-b17.tar.gz
> cd openjdk6-b17
> make
> I haven't done any testing yet and before I commit I would like to  
> address the existing issue with poor font quality.
>
> Please leave good or bad comments about your experience with the  
> preliminary build on this mailing list or my blog, so we can speed the  
> process of committing a more stable and up-to-date version of Java for  
> FreeBSD.

Hi,

Compiles and runs ok here on 8.0-RC2/amd64.
I have one issue, which I also had with openjdk6-b16. The local of  
non-english languages are not correct. They are correct in the jdk16 port.

         public static void main(String[] args) {
                 for (Locale l : new Locale[] { new Locale("nl"), new  
Locale("nl", "NL"), new Locale("fr") }) {
                         System.out.println("displayname: " +  
l.getDisplayName());
                         DecimalFormat nf =  
(DecimalFormat)NumberFormat.getNumberInstance(l);
                         final DecimalFormatSymbols decimalFormatSymbols =  
nf.getDecimalFormatSymbols();
                         System.out.println("decimal: " +  
decimalFormatSymbols.getDecimalSeparator());
                         System.out.println("grouping: " +  
decimalFormatSymbols.getGroupingSeparator());

                         SimpleDateFormat sdf = new SimpleDateFormat("G",  
l);
                         System.out.println("dateformat: " + sdf.format(new  
Date()));
                 }
         }

Openjdk6 gives:

displayname: Dutch
decimal: .
grouping: ,
dateformat: AD
displayname: Dutch (Netherlands)
decimal: .
grouping: ,
dateformat: AD
displayname: French
decimal: .
grouping: ,
dateformat: AD

jdk16 gives:
displayname: Dutch
decimal: ,
grouping: .
dateformat: AD
displayname: Dutch (Netherlands)
decimal: ,
grouping: .
dateformat: AD
displayname: French
decimal: ,
grouping:
dateformat: ap. J.-C.

The jdk16 stuff is better. I looked in the code, but can't really find  
where this info is.

Thanks for the hard work on porting this. Nice read in your blog also.

Ronald.


More information about the freebsd-java mailing list