harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivanov, Alexey A" <alexey.a.iva...@intel.com>
Subject RE: [classlib][awt] Does Harmony awt support "win.xpstyle.dllName" desktop property in windows XP?
Date Thu, 09 Nov 2006 08:25:30 GMT
>-----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 <alexey.a.ivanov@intel.com>:
>> >-----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 <alexey.a.petrenko@gmail.com> 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 <zhanghuangzhu@gmail.com>:
>> >> > 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 = new MyToolkit();
>> >> >  myToolkit.initializeDesktopProperties();
>> >> >  Map props = 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 <dmitry.a.durnev@gmail.com> wrote:
>> >> > >
>> >> > > AFAIK at least 4 'xpstyle'-related windows properties are not
>> >> described.
>> >> > > 10/17/06, Geir Magnusson Jr. <geir@pobox.com> 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 <zhanghuangzhu@gmail.com>
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 = Toolkit.getDefaultToolkit();
>> >> > > > >> String xpstyleDll = (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

Mime
View raw message