Re: [RFC] Tray icons for applications are not displayed in the GNOME notification bar.

2011-10-21 Thread Anthony Petrov
Hi Danesh, Overall, the fix looks reasonable. However, I see a problem with using the RuntimeMXBean.getName() method to obtain the information we need, because the specification of the method states: Returns the name representing the running Java virtual machine. The returned name string ca

Re: sun.awt.X11.XEvent is creating 600 MB of char[] for no good reason

2011-10-21 Thread Anthony Petrov
Hi Federico, Indeed, this is a nasty issue. Thanks for spotting it. You may notice that in most other places where something is logged, the code usually checks whether logging is enabled for a certain level of logging, e.g.: if (shapeLog.isLoggable(PlatformLogger.FINER)) {

Re: sun.awt.X11.XEvent is creating 600 MB of char[] for no good reason

2011-10-21 Thread Federico
2011/10/21 Anthony Petrov : > > Could you make a patch, test it, and post it to this mailing list for review > please? > Here's a patch. I tried to follow the style used in other places where one line if statements are used to avoid calling the logging code. I hope the patch is acceptable. # This

Re: sun.awt.X11.XEvent is creating 600 MB of char[] for no good reason

2011-10-21 Thread Oleg Sukhodolsky
Could you please use curly braces even for one-line ifs. It looks like it is a part of the style. Regards, Oleg. On Sat, Oct 22, 2011 at 6:30 AM, Federico wrote: > 2011/10/21 Anthony Petrov : >> >> Could you make a patch, test it, and post it to this mailing list for review >> please? >> > > He