JDK-6525932 : java.lang.InternalError: not implemented yet at sun.awt.X11SurfaceData.getRaster()
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 1.4.2_14
  • Priority: P2
  • Status: Closed
  • Resolution: Won't Fix
  • OS: linux_suse_sles_10
  • CPU: generic
  • Submitted: 2007-02-16
  • Updated: 2010-07-29
  • Resolved: 2008-12-17
Related Reports
Relates :  
Description
An application which used to work fine with 1.3.1 on Solaris and Linux
no longer works when moving to 1.4.2. The error message is:

Exception in thread "AWT-EventQueue-0" java.lang.InternalError: not implemented yet

This is a bit silly given the fact that it used to work earlier.
"No longer implemented" would be more suitable.
Hence we have a regression that should be fixed in all releases
1.4.2 and higher.

Comments
WORK AROUND providing another workaround where the customer could achieve a XOR behaviour. class c_composite_panel Method: public void paint(Graphics ds_g) { Replace ds_g2d.setComposite(this.ds_ct); with ds_g2d.setComposite(AlphaComposite.Xor); I have compiled and run the testcase and it seems to achieve customer's requirement. Note that AlphaComposite.Xor was introduced in 1.4
17-12-2008

WORK AROUND Using a custom composite interface from 1.4.2 generates exceptions when trying to render directly to the screen. However, the same code will render successfully to a BufferedImage. As this is a more popular method of rendering anyways, presently there is no set time frame by which this will be fixed.
21-05-2007

EVALUATION As I can see, X11RasterData is moved from sun.awt to sun.java2d.x11 package, but getRaster() still throws InternalError. So I'm dispatching this change request to Java2D team.
16-02-2007

WORK AROUND Use 1.3.1. This can no longer be recommended since 1.3.1 is EOSL at least for Linux and also for Solaris 9 and 10.
16-02-2007