JDK-6461488 : AWT should write XError-free code
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • OS: linux_suse_sles_9.3
  • CPU: x86
  • Submitted: 2006-08-18
  • Updated: 2011-05-17
  • Resolved: 2011-05-17
Related Reports
Relates :  
Description
Because of historical reason AWT doesn't try to avoid XErrors, but uses XErrorHandler instead.
(perhaps it was done to improve our performance).
It is ok in most situation, but if AWT is used with some user's native code or in combination
with SWT.  These errors may becaome visible for users and cause some "unpleasant" effects.
See for example:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=110163
https://bugs.eclipse.org/bugs/show_bug.cgi?id=142644

Thus it would be better to fix AWT so every XError shows a real problem.  Not sure if it is
possible though :(

Comments
EVALUATION SWT issue #110163 is addressed by the fix for 6678385, so this issue is no longer actual. Closing it as will not fix (or "will not implement" as it should be considered an RFE rather than a bug).
17-05-2011

EVALUATION this could be a long term project.
18-08-2006