Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4297689

Reentrant execution of print callback causes regression

XMLWordPrintable

    • 2d
    • kestrel
    • generic, sparc
    • solaris_2.6, solaris_7

      The 2D printing API has been enhanced in 1.3 so that transparent images can be rendered without treating the entire page as a raster. This has lead to huge improvements in quality, spool file size, and printing speed.

      The mechansim for doing this is to reinvoke the print() method for the page to render just the area covered by the image into a BufferedImage. The reinvocation is recursive.

      However, JavaHelp and any application that is using Swing does not support re-entrancy in its paint methods. A bug has been filed on Swing text/Views. In the case of JavaHelp code that worked on JDK1.2 no longer works on JDK1.3. Printing is often distorted or missing key elements.

      The problem needs to be addressed otherwise legacy print code will fail when JDK1.3 ships.

            prr Philip Race
            rbrinkle Roger Brinkley (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: