# HG changeset patch # User lana # Date 1270764016 25200 # Node ID 60b266b1fea0c4c502b46a8b091757c1b1a87805 # Parent 7077b95d42f6b3942a8751bba033801ff50e5889# Parent 29949600bb1f43bbe4d2d667372ab10be5ffce05 Merge diff -r 7077b95d42f6 -r 60b266b1fea0 jdk/make/sun/javazic/tzdata/VERSION --- a/jdk/make/sun/javazic/tzdata/VERSION Wed Jul 05 17:09:16 2017 +0200 +++ b/jdk/make/sun/javazic/tzdata/VERSION Thu Apr 08 15:00:16 2010 -0700 @@ -21,4 +21,4 @@ # CA 95054 USA or visit www.sun.com if you need additional information or # have any questions. # -tzdata2010b +tzdata2010g diff -r 7077b95d42f6 -r 60b266b1fea0 jdk/make/sun/javazic/tzdata/antarctica --- a/jdk/make/sun/javazic/tzdata/antarctica Wed Jul 05 17:09:16 2017 +0200 +++ b/jdk/make/sun/javazic/tzdata/antarctica Thu Apr 08 15:00:16 2010 -0700 @@ -79,6 +79,33 @@ Rule ChileAQ 1999 max - Oct Sun>=9 4:00u 1:00 S Rule ChileAQ 2000 max - Mar Sun>=9 3:00u 0 - +# These rules are stolen from the `australasia' file. +Rule AusAQ 1917 only - Jan 1 0:01 1:00 - +Rule AusAQ 1917 only - Mar 25 2:00 0 - +Rule AusAQ 1942 only - Jan 1 2:00 1:00 - +Rule AusAQ 1942 only - Mar 29 2:00 0 - +Rule AusAQ 1942 only - Sep 27 2:00 1:00 - +Rule AusAQ 1943 1944 - Mar lastSun 2:00 0 - +Rule AusAQ 1943 only - Oct 3 2:00 1:00 - +Rule ATAQ 1967 only - Oct Sun>=1 2:00s 1:00 - +Rule ATAQ 1968 only - Mar lastSun 2:00s 0 - +Rule ATAQ 1968 1985 - Oct lastSun 2:00s 1:00 - +Rule ATAQ 1969 1971 - Mar Sun>=8 2:00s 0 - +Rule ATAQ 1972 only - Feb lastSun 2:00s 0 - +Rule ATAQ 1973 1981 - Mar Sun>=1 2:00s 0 - +Rule ATAQ 1982 1983 - Mar lastSun 2:00s 0 - +Rule ATAQ 1984 1986 - Mar Sun>=1 2:00s 0 - +Rule ATAQ 1986 only - Oct Sun>=15 2:00s 1:00 - +Rule ATAQ 1987 1990 - Mar Sun>=15 2:00s 0 - +Rule ATAQ 1987 only - Oct Sun>=22 2:00s 1:00 - +Rule ATAQ 1988 1990 - Oct lastSun 2:00s 1:00 - +Rule ATAQ 1991 1999 - Oct Sun>=1 2:00s 1:00 - +Rule ATAQ 1991 2005 - Mar lastSun 2:00s 0 - +Rule ATAQ 2000 only - Aug lastSun 2:00s 1:00 - +Rule ATAQ 2001 max - Oct Sun>=1 2:00s 1:00 - +Rule ATAQ 2006 only - Apr Sun>=1 2:00s 0 - +Rule ATAQ 2007 only - Mar lastSun 2:00s 0 - +Rule ATAQ 2008 max - Apr Sun>=1 2:00s 0 - # Argentina - year-round bases # Belgrano II, Confin Coast, -770227-0343737, since 1972-02-05 @@ -120,20 +147,52 @@ # http://www.timeanddate.com/news/time/antarctica-new-times.html # +# From Steffen Thorsen (2010-03-10): +# We got these changes from the Australian Antarctic Division: +# - Macquarie Island will stay on UTC+11 for winter and therefore not +# switch back from daylight savings time when other parts of Australia do +# on 4 April. +# +# - Casey station reverted to its normal time of UTC+8 on 5 March 2010. +# The change to UTC+11 is being considered as a regular summer thing but +# has not been decided yet. +# +# - Davis station will revert to its normal time of UTC+7 at 10 March 2010 +# 20:00 UTC. +# +# - Mawson station stays on UTC+5. +# +# In addition to the Rule changes for Casey/Davis, it means that Macquarie +# will no longer be like Hobart and will have to have its own Zone created. +# +# Background: +# +# http://www.timeanddate.com/news/time/antartica-time-changes-2010.html +# + # Zone NAME GMTOFF RULES FORMAT [UNTIL] Zone Antarctica/Casey 0 - zzz 1969 8:00 - WST 2009 Oct 18 2:00 # Western (Aus) Standard Time - 11:00 - CAST # Casey Time + 11:00 - CAST 2010 Mar 5 2:00 + # Casey Time + 8:00 - WST Zone Antarctica/Davis 0 - zzz 1957 Jan 13 7:00 - DAVT 1964 Nov # Davis Time 0 - zzz 1969 Feb 7:00 - DAVT 2009 Oct 18 2:00 - 5:00 - DAVT + 5:00 - DAVT 2010 Mar 10 20:00u + 7:00 - DAVT Zone Antarctica/Mawson 0 - zzz 1954 Feb 13 6:00 - MAWT 2009 Oct 18 2:00 # Mawson Time 5:00 - MAWT +Zone Antarctica/Macquarie 0 - zzz 1911 + 10:00 - EST 1916 Oct 1 2:00 + 10:00 1:00 EST 1917 Feb + 10:00 AusAQ EST 1967 + 10:00 ATAQ EST 2010 Apr 4 3:00 + 11:00 - MIST # Macquarie Island Time # References: # # Casey Weather (1998-02-26) diff -r 7077b95d42f6 -r 60b266b1fea0 jdk/make/sun/javazic/tzdata/asia --- a/jdk/make/sun/javazic/tzdata/asia Wed Jul 05 17:09:16 2017 +0200 +++ b/jdk/make/sun/javazic/tzdata/asia Thu Apr 08 15:00:16 2010 -0700 @@ -236,22 +236,20 @@ # 2010 midnight. The decision came at a cabinet meeting at the Prime # Minister's Office last night..." -# From Danvin Ruangchan (2009-12-24): -# ...the news mentions DST will be turned off again 7 months after March -# 31st on Oct 31, 2010. - -# From Arthur David Olson (2009-12-26): -# Indeed, "The government will advance again the Banglasdesh Standard -# Time by one one hour on March 31 next year by enforcing the Daylight -# Saving Time (DST) for seven months. It will continue till October 31 -# until further notice." I take that last sentence as the -# establishment of a rule. +# From Alexander Krivenyshev (2010-03-22): +# According to Bangladesh newspaper "The Daily Star," +# Cabinet cancels Daylight Saving Time +# +# http://www.thedailystar.net/newDesign/latest_news.php?nid=22817 +# +# or +# +# http://www.worldtimezone.com/dst_news/dst_news_bangladesh06.html +# # Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S Rule Dhaka 2009 only - Jun 19 23:00 1:00 S -Rule Dhaka 2010 only - Jan 1 0:00 0 - -Rule Dhaka 2010 max - Mar 31 23:00 1:00 S -Rule Dhaka 2010 max - Nov 1 0:00 0 - +Rule Dhaka 2009 only - Dec 31 23:59 0 - # Zone NAME GMTOFF RULES FORMAT [UNTIL] Zone Asia/Dhaka 6:01:40 - LMT 1890 @@ -2131,6 +2129,32 @@ # http://www.worldtimezone.com/dst_news/dst_news_gazastrip02.html # +# From Alexander Krivenyshev (2010-03-19): +# According to Voice of Palestine DST will last for 191 days, from March +# 26, 2010 till "the last Sunday before the tenth day of Tishri +# (October), each year" (October 03, 2010?) +# +# +# http://palvoice.org/forums/showthread.php?t=245697 +# +# (in Arabic) +# or +# +# http://www.worldtimezone.com/dst_news/dst_news_westbank03.html +# + +# From Steffen Thorsen (2010-03-24): +# ...Ma'an News Agency reports that Hamas cabinet has decided it will +# start one day later, at 12:01am. Not sure if they really mean 12:01am or +# noon though: +# +# +# http://www.maannews.net/eng/ViewDetails.aspx?ID=271178 +# +# (Ma'an News Agency) +# "At 12:01am Friday, clocks in Israel and the West Bank will change to +# 1:01am, while Gaza clocks will change at 12:01am Saturday morning." + # The rules for Egypt are stolen from the `africa' file. # Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S Rule EgyptAsia 1957 only - May 10 0:00 1:00 S @@ -2148,7 +2172,8 @@ Rule Palestine 2006 only - Sep 22 0:00 0 - Rule Palestine 2007 only - Sep Thu>=8 2:00 0 - Rule Palestine 2008 only - Aug lastFri 2:00 0 - -Rule Palestine 2009 max - Mar lastFri 0:00 1:00 S +Rule Palestine 2009 only - Mar lastFri 0:00 1:00 S +Rule Palestine 2010 max - Mar lastSat 0:01 1:00 S Rule Palestine 2009 max - Sep Fri>=1 2:00 0 - # Zone NAME GMTOFF RULES FORMAT [UNTIL] @@ -2440,9 +2465,18 @@ # Thursday of the month or the start of the last Friday of the month or # something else. For now, use the start of the last Friday. +# From Steffen Thorsen (2010-03-17): +# The "Syrian News Station" reported on 2010-03-16 that the Council of +# Ministers has decided that Syria will start DST on midnight Thursday +# 2010-04-01: (midnight between Thursday and Friday): +# +# http://sns.sy/sns/?path=news/read/11421 (Arabic) +# + Rule Syria 2008 only - Apr Fri>=1 0:00 1:00 S Rule Syria 2008 only - Nov 1 0:00 0 - -Rule Syria 2009 max - Mar lastFri 0:00 1:00 S +Rule Syria 2009 only - Mar lastFri 0:00 1:00 S +Rule Syria 2010 max - Apr Fri>=1 0:00 1:00 S Rule Syria 2009 max - Oct lastFri 0:00 0 - # Zone NAME GMTOFF RULES FORMAT [UNTIL] diff -r 7077b95d42f6 -r 60b266b1fea0 jdk/make/sun/javazic/tzdata/australasia --- a/jdk/make/sun/javazic/tzdata/australasia Wed Jul 05 17:09:16 2017 +0200 +++ b/jdk/make/sun/javazic/tzdata/australasia Thu Apr 08 15:00:16 2010 -0700 @@ -289,11 +289,30 @@ # # http://www.fiji.gov.fj/publish/page_16198.shtml # + +# From Steffen Thorsen (2010-03-03): +# The Cabinet in Fiji has decided to end DST about a month early, on +# 2010-03-28 at 03:00. +# The plan is to observe DST again, from 2010-10-24 to sometime in March +# 2011 (last Sunday a good guess?). +# +# Official source: +# +# http://www.fiji.gov.fj/index.php?option=com_content&view=article&id=1096:3310-cabinet-approves-change-in-daylight-savings-dates&catid=49:cabinet-releases&Itemid=166 +# +# +# A bit more background info here: +# +# http://www.timeanddate.com/news/time/fiji-dst-ends-march-2010.html +# + # Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S Rule Fiji 1998 1999 - Nov Sun>=1 2:00 1:00 S Rule Fiji 1999 2000 - Feb lastSun 3:00 0 - Rule Fiji 2009 only - Nov 29 2:00 1:00 S -Rule Fiji 2010 only - Apr 25 3:00 0 - +Rule Fiji 2010 only - Mar lastSun 3:00 0 - +Rule Fiji 2010 only - Oct 24 2:00 1:00 S +Rule Fiji 2011 only - Mar lastSun 3:00 0 - # Zone NAME GMTOFF RULES FORMAT [UNTIL] Zone Pacific/Fiji 11:53:40 - LMT 1915 Oct 26 # Suva 12:00 Fiji FJ%sT # Fiji Time @@ -471,70 +490,30 @@ # Samoa -# From Alexander Krivenyshev (2008-12-06): -# The Samoa government (Western Samoa) may implement DST on the first Sunday of -# October 2009 (October 4, 2009) until the last Sunday of March 2010 (March 28, -# 2010). -# -# "Selected Committee reports to Cabinet on Daylight Saving Time", -# Government of Samoa: -# -# http://www.govt.ws/pr_article.cfm?pr_id=560 -# -# or -# -# http://www.worldtimezone.com/dst_news/dst_news_samoa01.html -# - -# From Steffen Thorsen (2009-08-27): -# Samoa's parliament passed the Daylight Saving Bill 2009, and will start -# daylight saving time on the first Sunday of October 2009 and end on the -# last Sunday of March 2010. We hope that the full text will be published -# soon, but we believe that the bill is only valid for 2009-2010. Samoa's -# Daylight Saving Act 2009 will be enforced as soon as the Head of State -# executes a proclamation publicizing this Act. +# From Steffen Thorsen (2009-10-16): +# We have been in contact with the government of Samoa again, and received +# the following info: # -# Some background information here, which will be updated once we have -# more details: +# "Cabinet has now approved Daylight Saving to be effected next year +# commencing from the last Sunday of September 2010 and conclude first +# Sunday of April 2011." +# +# Background info: # # http://www.timeanddate.com/news/time/samoa-dst-plan-2009.html # - -# From Alexander Krivenyshev (2009-10-03): -# First, my deepest condolences to people of Samoa islands and all families and -# loved ones around the world who lost their lives in the earthquake and tsunami. # -# Considering the recent devastation on Samoa by earthquake and tsunami and that -# many government offices/ ministers are closed- not sure if "Daylight Saving -# Bill 2009" will be implemented in next few days- on October 4, 2009. -# -# Here is reply from Consulate-General of Samoa in New Zealand -# --------------------------- -# Consul General -# consulgeneral@samoaconsulate.org.nz -# -# Talofa Alexander, -# -# Thank you for your sympathy for our country but at this time we have not -# been informed about the Daylight Savings Time Change. Most Ministries in -# Apia are closed or relocating due to weather concerns. -# -# When we do find out if they are still proceeding with the time change we -# will advise you soonest. -# -# Kind Regards, -# Lana -# for: Consul General - -# From Steffen Thorsen (2009-10-05): -# We have called a hotel in Samoa and asked about local time there - they -# are still on standard time. +# Samoa's Daylight Saving Time Act 2009 is available here, but does not +# contain any dates: +# +# http://www.parliament.gov.ws/documents/acts/Daylight%20Saving%20Act%20%202009%20%28English%29%20-%20Final%207-7-091.pdf +# Zone Pacific/Apia 12:33:04 - LMT 1879 Jul 5 -11:26:56 - LMT 1911 -11:30 - SAMT 1950 # Samoa Time - -11:00 - WST 2009 Oct 4 - -11:00 1:00 WSDT 2010 Mar 28 + -11:00 - WST 2010 Sep 26 + -11:00 1:00 WSDT 2011 Apr 3 -11:00 - WST # Solomon Is diff -r 7077b95d42f6 -r 60b266b1fea0 jdk/make/sun/javazic/tzdata/europe --- a/jdk/make/sun/javazic/tzdata/europe Wed Jul 05 17:09:16 2017 +0200 +++ b/jdk/make/sun/javazic/tzdata/europe Thu Apr 08 15:00:16 2010 -0700 @@ -2063,7 +2063,9 @@ 3:00 Russia KUY%sT 1991 Mar 31 2:00s 2:00 Russia KUY%sT 1991 Sep 29 2:00s 3:00 - KUYT 1991 Oct 20 3:00 - 4:00 Russia SAM%sT # Samara Time + 4:00 Russia SAM%sT 2010 Mar 28 2:00s # Samara Time + 3:00 Russia SAM%sT + # # From Oscar van Vlijmen (2001-08-25): [This region consists of] # Respublika Bashkortostan, Komi-Permyatskij avtonomnyj okrug, @@ -2216,7 +2218,8 @@ 11:00 - PETT 1930 Jun 21 # P-K Time 12:00 Russia PET%sT 1991 Mar 31 2:00s 11:00 Russia PET%sT 1992 Jan 19 2:00s - 12:00 Russia PET%sT + 12:00 Russia PET%sT 2010 Mar 28 2:00s + 11:00 Russia PET%sT # # Chukotskij avtonomnyj okrug Zone Asia/Anadyr 11:49:56 - LMT 1924 May 2 @@ -2224,7 +2227,8 @@ 13:00 Russia ANA%sT 1982 Apr 1 0:00s 12:00 Russia ANA%sT 1991 Mar 31 2:00s 11:00 Russia ANA%sT 1992 Jan 19 2:00s - 12:00 Russia ANA%sT + 12:00 Russia ANA%sT 2010 Mar 28 2:00s + 11:00 Russia ANA%sT # Serbia # Zone NAME GMTOFF RULES FORMAT [UNTIL] diff -r 7077b95d42f6 -r 60b266b1fea0 jdk/make/sun/javazic/tzdata/southamerica --- a/jdk/make/sun/javazic/tzdata/southamerica Wed Jul 05 17:09:16 2017 +0200 +++ b/jdk/make/sun/javazic/tzdata/southamerica Thu Apr 08 15:00:16 2010 -0700 @@ -1143,6 +1143,18 @@ # http://www.shoa.cl/noticias/2008/04hora/hora.htm # . +# From Angel Chiang (2010-03-04): +# Subject: DST in Chile exceptionally extended to 3 April due to earthquake +# +# http://www.gobiernodechile.cl/viewNoticia.aspx?idArticulo=30098 +# +# (in Spanish, last paragraph). +# +# This is breaking news. There should be more information available later. + +# From Arthur Daivd Olson (2010-03-06): +# Angel Chiang's message confirmed by Julio Pacheco; Julio provided a patch. + # Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S Rule Chile 1927 1932 - Sep 1 0:00 1:00 S Rule Chile 1928 1932 - Apr 1 0:00 0 - @@ -1177,7 +1189,9 @@ # N.B.: the end of March 29 in Chile is March 30 in Universal time, # which is used below in specifying the transition. Rule Chile 2008 only - Mar 30 3:00u 0 - -Rule Chile 2009 max - Mar Sun>=9 3:00u 0 - +Rule Chile 2009 only - Mar Sun>=9 3:00u 0 - +Rule Chile 2010 only - Apr 4 3:00u 0 - +Rule Chile 2011 max - Mar Sun>=9 3:00u 0 - # IATA SSIM anomalies: (1992-02) says 1992-03-14; # (1996-09) says 1998-03-08. Ignore these. # Zone NAME GMTOFF RULES FORMAT [UNTIL] @@ -1386,8 +1400,24 @@ # Decree 1,867 (2004-03-05) # From Carlos Raul Perasso via Jesper Norgaard Welen (2006-10-13) # -Rule Para 2004 max - Oct Sun>=15 0:00 1:00 S -Rule Para 2005 max - Mar Sun>=8 0:00 0 - +Rule Para 2004 2009 - Oct Sun>=15 0:00 1:00 S +Rule Para 2005 2009 - Mar Sun>=8 0:00 0 - +# From Carlos Raul Perasso (2010-02-18): +# By decree number 3958 issued yesterday ( +# +# http://www.presidencia.gov.py/v1/wp-content/uploads/2010/02/decreto3958.pdf +# +# ) +# Paraguay changes its DST schedule, postponing the March rule to April and +# modifying the October date. The decree reads: +# ... +# Art. 1. It is hereby established that from the second Sunday of the month of +# April of this year (2010), the official time is to be set back 60 minutes, +# and that on the first Sunday of the month of October, it is to be set +# forward 60 minutes, in all the territory of the Paraguayan Republic. +# ... +Rule Para 2010 max - Oct Sun>=1 0:00 1:00 S +Rule Para 2010 max - Apr Sun>=8 0:00 0 - # Zone NAME GMTOFF RULES FORMAT [UNTIL] Zone America/Asuncion -3:50:40 - LMT 1890 diff -r 7077b95d42f6 -r 60b266b1fea0 jdk/make/sun/javazic/tzdata/zone.tab --- a/jdk/make/sun/javazic/tzdata/zone.tab Wed Jul 05 17:09:16 2017 +0200 +++ b/jdk/make/sun/javazic/tzdata/zone.tab Thu Apr 08 15:00:16 2010 -0700 @@ -66,6 +66,7 @@ AQ -7824+10654 Antarctica/Vostok Vostok Station, S Magnetic Pole AQ -6640+14001 Antarctica/DumontDUrville Dumont-d'Urville Station, Terre Adelie AQ -690022+0393524 Antarctica/Syowa Syowa Station, E Ongul I +AQ -5430+15857 Antarctica/Macquarie Macquarie Island Station, Macquarie Island AR -3436-05827 America/Argentina/Buenos_Aires Buenos Aires (BA, CF) AR -3124-06411 America/Argentina/Cordoba most locations (CB, CC, CN, ER, FM, MN, SE, SF) AR -2447-06525 America/Argentina/Salta (SA, LP, NQ, RN) @@ -351,7 +352,7 @@ RU +5443+02030 Europe/Kaliningrad Moscow-01 - Kaliningrad RU +5545+03735 Europe/Moscow Moscow+00 - west Russia RU +4844+04425 Europe/Volgograd Moscow+00 - Caspian Sea -RU +5312+05009 Europe/Samara Moscow+01 - Samara, Udmurtia +RU +5312+05009 Europe/Samara Moscow - Samara, Udmurtia RU +5651+06036 Asia/Yekaterinburg Moscow+02 - Urals RU +5500+07324 Asia/Omsk Moscow+03 - west Siberia RU +5502+08255 Asia/Novosibirsk Moscow+03 - Novosibirsk @@ -362,8 +363,8 @@ RU +4310+13156 Asia/Vladivostok Moscow+07 - Amur River RU +4658+14242 Asia/Sakhalin Moscow+07 - Sakhalin Island RU +5934+15048 Asia/Magadan Moscow+08 - Magadan -RU +5301+15839 Asia/Kamchatka Moscow+09 - Kamchatka -RU +6445+17729 Asia/Anadyr Moscow+10 - Bering Sea +RU +5301+15839 Asia/Kamchatka Moscow+08 - Kamchatka +RU +6445+17729 Asia/Anadyr Moscow+08 - Bering Sea RW -0157+03004 Africa/Kigali SA +2438+04643 Asia/Riyadh SB -0932+16012 Pacific/Guadalcanal diff -r 7077b95d42f6 -r 60b266b1fea0 jdk/make/tools/src/build/tools/javazic/RuleDay.java --- a/jdk/make/tools/src/build/tools/javazic/RuleDay.java Wed Jul 05 17:09:16 2017 +0200 +++ b/jdk/make/tools/src/build/tools/javazic/RuleDay.java Thu Apr 08 15:00:16 2010 -0700 @@ -139,7 +139,7 @@ if (isLast()) { return -1; } - return getDay(); + return isEarlier() ? -getDay() : getDay(); } /** @@ -147,13 +147,10 @@ * @return the SimpleTimeZone day-of-week rule value */ int getDayOfWeekForSimpleTimeZoneInt() { - if (!isLater() && !isEarlier() && !isLast()) { - return 0; - } - if (isLater()) { + if (isEarlier() || isLater()) { return -getDayOfWeekNum(); } - return getDayOfWeekNum(); + return isLast() ? getDayOfWeekNum() : 0; } /** diff -r 7077b95d42f6 -r 60b266b1fea0 jdk/src/share/classes/java/beans/Expression.java --- a/jdk/src/share/classes/java/beans/Expression.java Wed Jul 05 17:09:16 2017 +0200 +++ b/jdk/src/share/classes/java/beans/Expression.java Thu Apr 08 15:00:16 2010 -0700 @@ -99,6 +99,29 @@ } /** + * {@inheritDoc} + *

+ * If the invoked method completes normally, + * the value it returns is copied in the {@code value} property. + * Note that the {@code value} property is set to {@code null}, + * if the return type of the underlying method is {@code void}. + * + * @throws NullPointerException if the value of the {@code target} or + * {@code methodName} property is {@code null} + * @throws NoSuchMethodException if a matching method is not found + * @throws SecurityException if a security manager exists and + * it denies the method invocation + * @throws Exception that is thrown by the invoked method + * + * @see java.lang.reflect.Method + * @since 1.7 + */ + @Override + public void execute() throws Exception { + setValue(invoke()); + } + + /** * If the value property of this instance is not already set, * this method dynamically finds the method with the specified * methodName on this target with these arguments and calls it. diff -r 7077b95d42f6 -r 60b266b1fea0 jdk/src/share/classes/java/beans/Statement.java --- a/jdk/src/share/classes/java/beans/Statement.java Wed Jul 05 17:09:16 2017 +0200 +++ b/jdk/src/share/classes/java/beans/Statement.java Thu Apr 08 15:00:16 2010 -0700 @@ -127,8 +127,8 @@ } /** - * The execute method finds a method whose name is the same - * as the methodName property, and invokes the method on + * The {@code execute} method finds a method whose name is the same + * as the {@code methodName} property, and invokes the method on * the target. * * When the target's class defines many methods with the given name @@ -136,7 +136,7 @@ * the algorithm specified in the Java Language Specification * (15.11). The dynamic class of the target and arguments are used * in place of the compile-time type information and, like the - * java.lang.reflect.Method class itself, conversion between + * {@link java.lang.reflect.Method} class itself, conversion between * primitive values and their associated wrapper classes is handled * internally. *

@@ -147,13 +147,22 @@ *

  • * The reserved method name "new" may be used to call a class's constructor * as if all classes defined static "new" methods. Constructor invocations - * are typically considered Expressions rather than Statements + * are typically considered {@code Expression}s rather than {@code Statement}s * as they return a value. *
  • - * The method names "get" and "set" defined in the java.util.List + * The method names "get" and "set" defined in the {@link java.util.List} * interface may also be applied to array instances, mapping to - * the static methods of the same name in the Array class. + * the static methods of the same name in the {@code Array} class. * + * + * @throws NullPointerException if the value of the {@code target} or + * {@code methodName} property is {@code null} + * @throws NoSuchMethodException if a matching method is not found + * @throws SecurityException if a security manager exists and + * it denies the method invocation + * @throws Exception that is thrown by the invoked method + * + * @see java.lang.reflect.Method */ public void execute() throws Exception { invoke(); diff -r 7077b95d42f6 -r 60b266b1fea0 jdk/src/share/classes/javax/swing/JSplitPane.java --- a/jdk/src/share/classes/javax/swing/JSplitPane.java Wed Jul 05 17:09:16 2017 +0200 +++ b/jdk/src/share/classes/javax/swing/JSplitPane.java Thu Apr 08 15:00:16 2010 -0700 @@ -246,8 +246,7 @@ * layout, using two buttons for the components. */ public JSplitPane() { - this(JSplitPane.HORIZONTAL_SPLIT, - UIManager.getBoolean("SplitPane.continuousLayout"), + this(JSplitPane.HORIZONTAL_SPLIT, false, new JButton(UIManager.getString("SplitPane.leftButtonText")), new JButton(UIManager.getString("SplitPane.rightButtonText"))); } @@ -264,8 +263,7 @@ */ @ConstructorProperties({"orientation"}) public JSplitPane(int newOrientation) { - this(newOrientation, - UIManager.getBoolean("SplitPane.continuousLayout")); + this(newOrientation, false); } @@ -309,9 +307,7 @@ public JSplitPane(int newOrientation, Component newLeftComponent, Component newRightComponent){ - this(newOrientation, - UIManager.getBoolean("SplitPane.continuousLayout"), - newLeftComponent, newRightComponent); + this(newOrientation, false, newLeftComponent, newRightComponent); } diff -r 7077b95d42f6 -r 60b266b1fea0 jdk/src/share/classes/javax/swing/plaf/basic/BasicTextUI.java --- a/jdk/src/share/classes/javax/swing/plaf/basic/BasicTextUI.java Wed Jul 05 17:09:16 2017 +0200 +++ b/jdk/src/share/classes/javax/swing/plaf/basic/BasicTextUI.java Thu Apr 08 15:00:16 2010 -0700 @@ -762,7 +762,9 @@ * component's background color to be painted. *
  • * Installs the default caret and highlighter into the - * associated component. + * associated component. These properties are only set if their + * current value is either {@code null} or an instance of + * {@link UIResource}. *
  • * Attaches to the editor and model. If there is no * model, a default one is created. diff -r 7077b95d42f6 -r 60b266b1fea0 jdk/src/share/classes/javax/swing/plaf/nimbus/skin.laf --- a/jdk/src/share/classes/javax/swing/plaf/nimbus/skin.laf Wed Jul 05 17:09:16 2017 +0200 +++ b/jdk/src/share/classes/javax/swing/plaf/nimbus/skin.laf Thu Apr 08 15:00:16 2010 -0700 @@ -21276,7 +21276,6 @@ - diff -r 7077b95d42f6 -r 60b266b1fea0 jdk/src/share/classes/javax/swing/plaf/synth/SynthLookAndFeel.java --- a/jdk/src/share/classes/javax/swing/plaf/synth/SynthLookAndFeel.java Wed Jul 05 17:09:16 2017 +0200 +++ b/jdk/src/share/classes/javax/swing/plaf/synth/SynthLookAndFeel.java Thu Apr 08 15:00:16 2010 -0700 @@ -648,6 +648,14 @@ table.put("ColorChooser.swatchesDefaultRecentColor", Color.RED); table.put("ColorChooser.swatchesSwatchSize", new Dimension(10, 10)); + // These need to be defined for ImageView. + table.put("html.pendingImage", SwingUtilities2.makeIcon(getClass(), + BasicLookAndFeel.class, + "icons/image-delayed.png")); + table.put("html.missingImage", SwingUtilities2.makeIcon(getClass(), + BasicLookAndFeel.class, + "icons/image-failed.png")); + // These are needed for PopupMenu. table.put("PopupMenu.selectedWindowInputMapBindings", new Object[] { "ESCAPE", "cancel", diff -r 7077b95d42f6 -r 60b266b1fea0 jdk/src/share/classes/javax/swing/plaf/synth/SynthTabbedPaneUI.java --- a/jdk/src/share/classes/javax/swing/plaf/synth/SynthTabbedPaneUI.java Wed Jul 05 17:09:16 2017 +0200 +++ b/jdk/src/share/classes/javax/swing/plaf/synth/SynthTabbedPaneUI.java Thu Apr 08 15:00:16 2010 -0700 @@ -489,23 +489,6 @@ } - /** - * @inheritDoc - */ - @Override - protected void paintTabArea(Graphics g, int tabPlacement, - int selectedIndex) { - // This can be invoked from ScrollabeTabPanel - Insets insets = tabPane.getInsets(); - int x = insets.left; - int y = insets.top; - int width = tabPane.getWidth() - insets.left - insets.right; - int height = tabPane.getHeight() - insets.top - insets.bottom; - - paintTabArea(tabAreaContext, g, tabPlacement, selectedIndex, - new Rectangle(x, y, width, height)); - } - private void paintTabArea(SynthContext ss, Graphics g, int tabPlacement, int selectedIndex, Rectangle tabAreaBounds) { diff -r 7077b95d42f6 -r 60b266b1fea0 jdk/src/share/classes/sun/util/resources/TimeZoneNames.java --- a/jdk/src/share/classes/sun/util/resources/TimeZoneNames.java Wed Jul 05 17:09:16 2017 +0200 +++ b/jdk/src/share/classes/sun/util/resources/TimeZoneNames.java Thu Apr 08 15:00:16 2010 -0700 @@ -446,12 +446,13 @@ {"America/Winnipeg", CST}, {"America/Yakutat", AKST}, {"America/Yellowknife", MST}, - {"Antarctica/Casey", new String[] {"Casey Time", "CAST", - "Casey Summer Time", "CAST"}}, + {"Antarctica/Casey", WST_AUS}, {"Antarctica/Davis", new String[] {"Davis Time", "DAVT", "Davis Summer Time", "DAVST"}}, {"Antarctica/DumontDUrville", new String[] {"Dumont-d'Urville Time", "DDUT", "Dumont-d'Urville Summer Time", "DDUST"}}, + {"Antarctica/Macquarie", new String[] {"Macquarie Island Time", "MIST", + "Macquarie Island Summer Time", "MIST"}}, {"Antarctica/Mawson", new String[] {"Mawson Time", "MAWT", "Mawson Summer Time", "MAWST"}}, {"Antarctica/McMurdo", NZST}, diff -r 7077b95d42f6 -r 60b266b1fea0 jdk/src/windows/native/sun/windows/awt_Component.cpp --- a/jdk/src/windows/native/sun/windows/awt_Component.cpp Wed Jul 05 17:09:16 2017 +0200 +++ b/jdk/src/windows/native/sun/windows/awt_Component.cpp Thu Apr 08 15:00:16 2010 -0700 @@ -1,5 +1,5 @@ /* - * Copyright 1996-2009 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1996-2010 Sun Microsystems, Inc. All Rights Reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -3707,8 +3707,7 @@ if (hIMC == NULL) { return; } - COMPOSITIONFORM cf = {CFS_POINT, {0, r.bottom}, NULL}; - // Place the composition window right below the client Window + COMPOSITIONFORM cf = {CFS_DEFAULT, {0, 0}, {0, 0, 0, 0}}; ImmSetCompositionWindow(hIMC, &cf); } diff -r 7077b95d42f6 -r 60b266b1fea0 jdk/test/java/beans/Statement/Test6707226.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jdk/test/java/beans/Statement/Test6707226.java Thu Apr 08 15:00:16 2010 -0700 @@ -0,0 +1,45 @@ +/* + * Copyright 2010 Sun Microsystems, Inc. All Rights Reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, + * CA 95054 USA or visit www.sun.com if you need additional information or + * have any questions. + */ + +/* + * @test + * @bug 6707226 + * @summary Tests the value updating in Expression + * @author Sergey Malenkov + */ + +import java.beans.Expression; + +public class Test6707226 { + public static void main(String[] args) throws Exception { + Object value = new Object(); + + Expression expression = new Expression(value, Object.class, "new", null); + if (!value.equals(expression.getValue())) + throw new Error("the value is updated unexpectedly"); + + expression.execute(); + if (value.equals(expression.getValue())) + throw new Error("the value is not updated as expected"); + } +} diff -r 7077b95d42f6 -r 60b266b1fea0 jdk/test/javax/swing/plaf/synth/Test6933784.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jdk/test/javax/swing/plaf/synth/Test6933784.java Thu Apr 08 15:00:16 2010 -0700 @@ -0,0 +1,76 @@ +/* + * Copyright 2010 Sun Microsystems, Inc. All Rights Reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, + * CA 95054 USA or visit www.sun.com if you need additional information or + * have any questions. + */ + +/* @test + @bug 6933784 + @summary NIMBUS: ImageView getNoImageIcon and getLoadingImageIcon returns nulls instead of an icon + @author Pavel Porvatov + @run main Test6933784 +*/ + +import javax.swing.*; +import javax.swing.plaf.nimbus.NimbusLookAndFeel; +import javax.swing.plaf.synth.SynthLookAndFeel; +import javax.swing.text.Element; +import javax.swing.text.html.HTMLDocument; +import javax.swing.text.html.HTMLEditorKit; +import javax.swing.text.html.ImageView; +import java.io.StringReader; + +public class Test6933784 { + public static void main(String[] args) throws Exception { + UIManager.setLookAndFeel(new SynthLookAndFeel()); + + checkImages(); + + UIManager.setLookAndFeel(new NimbusLookAndFeel()); + + checkImages(); + } + + private static void checkImages() throws Exception { + SwingUtilities.invokeAndWait(new Runnable() { + public void run() { + HTMLEditorKit c = new HTMLEditorKit(); + HTMLDocument doc = new HTMLDocument(); + + try { + c.read(new StringReader("Test"), doc, 0); + } catch (Exception e) { + throw new RuntimeException("The test failed", e); + } + + Element elem = doc.getElement("test"); + ImageView iv = new ImageView(elem); + + if (iv.getLoadingImageIcon() == null) { + throw new RuntimeException("getLoadingImageIcon returns null"); + } + + if (iv.getNoImageIcon() == null) { + throw new RuntimeException("getNoImageIcon returns null"); + } + } + }); + } +}