classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] java.awt.print.PrinterJob fix


From: Thomas Fitzsimmons
Subject: [cp-patches] java.awt.print.PrinterJob fix
Date: Thu, 29 Sep 2005 16:28:01 -0400

Hi,

JAPI pointed out this API bug which I've fixed.

Tom

2005-09-29  Thomas Fitzsimmons  <address@hidden>

        * java/awt/print/PrinterJob.java
        (print(PrintRequestAttributeSet)): Remove abstract modifier and
        implement.

Index: java/awt/print/PrinterJob.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/print/PrinterJob.java,v
retrieving revision 1.13
diff -u -r1.13 PrinterJob.java
--- java/awt/print/PrinterJob.java      2 Jul 2005 20:32:37 -0000       1.13
+++ java/awt/print/PrinterJob.java      29 Sep 2005 20:12:14 -0000
@@ -169,8 +169,11 @@
   /**
    * Prints the page with given attributes.
    */
-  public abstract void print (PrintRequestAttributeSet attributes)
-    throws PrinterException;
+  public void print (PrintRequestAttributeSet attributes)
+    throws PrinterException
+  {
+    print ();
+  }
 
   /**
    * Displays a dialog box to the user which allows the print job

reply via email to

[Prev in Thread] Current Thread [Next in Thread]