On 31.05.2017 17:11, Baesken, Matthias wrote:

I wonder why the display names for timezone MET changed ( I observed this on 
Linux and Solaris) when I compare
jdk8 to jdk9 .

The test is very small, it just outputs for Locale.GERMAN  the display name.
With jdk8 we get a translated german timezone name, but not with jdk9  (this is 
a bit strange because  the jdk9 rsource file
src/jdk.localedata/share/classes/sun/util/resources/ext/TimeZoneNames_de.java
still contains the translation).

Is this intentional  or a bug ?

Hi Matthias,

it might be a side effect of http://openjdk.java.net/jeps/252 .

cheers,
dalibor topic

Best regards, Matthias



TimeZoneTest.java
------------------------
import java.util.TimeZone;
import java.util.Locale;

public class TimeZoneTest {

    public static void main(String[] args)
    {
        TimeZone tz = TimeZone.getDefault();
        // now test for german
        String dng = tz.getDisplayName(Locale.GERMAN);
        System.out.println("timezone display name for Locale.GERMAN " + dng);
    }
}
------------------------

for environment variable TZ=MET  (export TZ=MET) we get :
../output-jdk8/images/j2sdk-image/bin/java  TimeZoneTest
timezone display name for Locale.GERMAN Zentraleuropäische Zeit

../output-jdk9/images/jdk/bin/java  TimeZoneTest
timezone display name for Locale.GERMAN Middle Europe Time


--
<http://www.oracle.com> Dalibor Topic | Principal Product Manager
Phone: +494089091214 <tel:+494089091214> | Mobile: +491737185961
<tel:+491737185961>

ORACLE Deutschland B.V. & Co. KG | Kühnehöfe 5 | 22761 Hamburg

ORACLE Deutschland B.V. & Co. KG
Hauptverwaltung: Riesstr. 25, D-80992 München
Registergericht: Amtsgericht München, HRA 95603

Komplementärin: ORACLE Deutschland Verwaltung B.V.
Hertogswetering 163/167, 3543 AS Utrecht, Niederlande
Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697
Geschäftsführer: Alexander van der Ven, Jan Schultheiss, Val Maher

<http://www.oracle.com/commitment> Oracle is committed to developing
practices and products that help protect the environment

Reply via email to