Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 66328 invoked from network); 9 Nov 2006 08:27:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Nov 2006 08:27:19 -0000 Received: (qmail 1164 invoked by uid 500); 9 Nov 2006 08:27:26 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 1126 invoked by uid 500); 9 Nov 2006 08:27:26 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 1114 invoked by uid 99); 9 Nov 2006 08:27:26 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Nov 2006 00:27:26 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [143.182.124.21] (HELO mga03.intel.com) (143.182.124.21) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Nov 2006 00:27:12 -0800 Received: from azsmga001.ch.intel.com ([10.2.17.19]) by mga03.intel.com with ESMTP; 09 Nov 2006 00:26:52 -0800 Received: from fmsmsx331.fm.intel.com (HELO fmsmsx331.amr.corp.intel.com) ([132.233.42.156]) by azsmga001.ch.intel.com with ESMTP; 09 Nov 2006 00:26:50 -0800 X-ExtLoop1: 1 X-IronPort-AV: i="4.09,403,1157353200"; d="scan'208"; a="143486770:sNHT127027523" Received: from fmsmsx312.amr.corp.intel.com ([132.233.42.227]) by fmsmsx331.amr.corp.intel.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 9 Nov 2006 00:26:49 -0800 Received: from mssmsx411.ccr.corp.intel.com ([10.125.2.10]) by fmsmsx312.amr.corp.intel.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 9 Nov 2006 00:26:49 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [classlib][awt] Does Harmony awt support "win.xpstyle.dllName" desktop property in windows XP? Date: Thu, 9 Nov 2006 11:25:30 +0300 Message-ID: <8E389A5F2FEABA4CB1DEC35A25CB39CE6E5E42@mssmsx411> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [classlib][awt] Does Harmony awt support "win.xpstyle.dllName" desktop property in windows XP? thread-index: AccD0K7+1ny97DQCRwKUIY8naOlo2gAB7F3w From: "Ivanov, Alexey A" To: X-OriginalArrivalTime: 09 Nov 2006 08:26:49.0436 (UTC) FILETIME=[CD3AF1C0:01C703D8] X-Virus-Checked: Checked by ClamAV on apache.org >-----Original Message----- >From: Alexey Petrenko [mailto:alexey.a.petrenko@gmail.com] >Sent: Thursday, November 09, 2006 10:28 AM >To: harmony-dev@incubator.apache.org >Subject: Re: [classlib][awt] Does Harmony awt support "win.xpstyle.dllName" >desktop property in windows XP? > >2006/11/9, Ivanov, Alexey A : >> >-----Original Message----- >> >From: Andrew Zhang [mailto:zhanghuangzhu@gmail.com] >> >Sent: Thursday, November 09, 2006 9:51 AM >> >To: harmony-dev@incubator.apache.org >> >Subject: Re: [classlib][awt] Does Harmony awt support >> "win.xpstyle.dllName" >> >desktop property in windows XP? >> > >> >On 11/9/06, Alexey Petrenko wrote: >> >> >> >> Andrew, you know a way! File a JIRA :) >> > >> > >> >ya, done, Harmony-2116. >> > >> >http://issues.apache.org/jira/browse/HARMONY-2116 >> JIRAs are good, however, notifying dev-list of a problem is a good thing >> too because it attracts more attention to that problem. >> >> So if one considers a problem is important, it's better to send a >> message to dev-list as well as to create a JIRA issue. >It's better to create JIRA *AND* send a message to dev list :) It is exactly what I meant. Regards, Alexey. > >SY, Alexey > >> >2006/11/9, Andrew Zhang : >> >> > Thanks Dmitry and Paulex. >> >> > >> >> > After applying Harmony-1887 patch, it returns valid property value. >> >> > >> >> > But there's another problem. Running following code against Harmony >> >will >> >> > print NPE while RI returns silently. >> >> > >> >> > public static void main(String[] args) { >> >> > MyToolkit myToolkit =3D new MyToolkit(); >> >> > myToolkit.initializeDesktopProperties(); >> >> > Map props =3D myToolkit.getDesktopProperties(); >> >> > } >> >> > >> >> > MyToolkit extends Toolkit, implements all abstract methods by >> default >> >> except >> >> > following two methods: >> >> > public Map getDesktopProperties() { >> >> > return desktopProperties; >> >> > } >> >> > public void initializeDesktopProperties() { >> >> > super.initializeDesktopProperties(); >> >> > } >> >> > >> >> > The output against Harmony: >> >> > java.lang.NullPointerException >> >> > at >> java.awt.EventDispatchThread.runModalLoop(EventDispatchThread.java >> >> :73) >> >> > at java.awt.EventDispatchThread.run(EventDispatchThread.java:48) >> >> > >> >> > >> >> > >> >> > >> >> > On 10/17/06, Dmitry Durnev wrote: >> >> > > >> >> > > AFAIK at least 4 'xpstyle'-related windows properties are not >> >> described. >> >> > > 10/17/06, Geir Magnusson Jr. wrote: >> >> > > > How many are there that aren't described? >> >> > > > >> >> > > > Sergey Soldatov wrote: >> >> > > > > No, it doesn't. Unfortunately most of desktop properties are >> not >> >> > > described >> >> > > > > in j2se documentation. If you feel that we need to support >> this >> >> > > > > property please file JIRA issue and we'll try to fix it ASAP. >> >> > > > > >> >> > > > > On 10/17/06, Andrew Zhang wrote: >> >> > > > >> >> >> > > > >> Hi, does Harmony awt support "win.xpstyle.dllName" desktop >> >> property >> >> > > in >> >> > > > >> windows XP? >> >> > > > >> >> >> > > > >> Consider following code: >> >> > > > >> >> >> > > > >> public static void main(String[] args) { >> >> > > > >> Toolkit toolkit =3D Toolkit.getDefaultToolkit(); >> >> > > > >> String xpstyleDll =3D (String) toolkit >> >> > > > >> .getDesktopProperty("win.xpstyle.dllName"); >> >> > > > >> System.out.println(xpstyleDll); >> >> > > > >> } >> >> > > > >> >> >> > > > >> RI Output: >> >> > > > >> C:\WINDOWS\resources\Themes\luna\luna.msstyles >> >> > > > >> >> >> > > > >> Harmony Output: >> >> > > > >> null >> >> > > > >> >> >> > > > >> >> >> > > > >> -- >> >> > > > >> Best regards, >> >> > > > >> Andrew Zhang >> >> > > > >> >> >> > > > >> >> >> > > > > >> >> > > > > >> >> > > > >> >> > > > >> >> --------------------------------------------------------------------- >> >> > > > Terms of use : http://incubator.apache.org/harmony/mailing.html >> >> > > > To unsubscribe, e-mail: harmony-dev- >> >unsubscribe@incubator.apache.org >> >> > > > For additional commands, e-mail: >> >> harmony-dev-help@incubator.apache.org >> >> > > > >> >> > > > >> >> > > >> >> > > >> >> > > -- >> >> > > >> >> > > Dmitry A. Durnev, >> >> > > Intel Middleware Products Division >> >> > > >> >> > > >> --------------------------------------------------------------------- >> >> > > Terms of use : http://incubator.apache.org/harmony/mailing.html >> >> > > To unsubscribe, e-mail: >> harmony-dev-unsubscribe@incubator.apache.org >> >> > > For additional commands, e-mail: harmony-dev- >> >help@incubator.apache.org >> >> > > >> >> > > >> >> > >> >> > >> >> > -- >> >> > Best regards, >> >> > Andrew Zhang >> >> > >> >> > >> >> >> > >> > >> > >> >-- >> >Best regards, >> >Andrew Zhang >> >> -- >> Alexey A. Ivanov >> Intel Middleware Product Division >> -- Alexey A. Ivanov Intel Middleware Product Division