Thanks to Wolfgang's work, we can eliminate this particular stub: 2006-05-10 Sven de Marothy <[EMAIL PROTECTED]>
* java/awt/print/PrinterJob.java: (lookupPrintServices): Un-comment-out.
Index: java/awt/print/PrinterJob.java =================================================================== RCS file: /sources/classpath/classpath/java/awt/print/PrinterJob.java,v retrieving revision 1.15 diff -U3 -r1.15 PrinterJob.java --- java/awt/print/PrinterJob.java 28 Jan 2006 17:48:04 -0000 1.15 +++ java/awt/print/PrinterJob.java 10 May 2006 18:37:23 -0000 @@ -41,6 +41,9 @@ import java.awt.HeadlessException; import javax.print.PrintService; +import javax.print.PrintServiceLookup; +import javax.print.DocFlavor; +import javax.print.StreamPrintServiceFactory; import javax.print.attribute.PrintRequestAttributeSet; /** @@ -244,13 +247,11 @@ */ public static PrintService[] lookupPrintServices() { - return new PrintService[0]; - // FIXME: - // Enable this when javax.print has this implemented. -// return PrintServiceLookup.lookupPrintServices( -// new DocFlavor("application/x-java-jvm-local-objectref", -// "java.awt.print.Pageable"), -// null); + return PrintServiceLookup.lookupPrintServices + ( + new DocFlavor("application/x-java-jvm-local-objectref", + "java.awt.print.Pageable"), + null); } /** @@ -263,8 +264,8 @@ * @return Array of stream print services, could be empty. * @since 1.4 */ - // FIXME: - // Enable when javax.print has StreamPrintServiceFactory + // FIXME: + // Enable when StreamPrintServiceFactory has lookupStreamServiceFactories // public static StreamPrintServiceFactory[] lookupStreamPrintServices(String mimeType) // { // return StreamPrintServiceFactory.lookupStreamServiceFactories(