Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #39145

PrintService Java 11 bug?

Newsgroups comp.lang.java.programmer
Date 2019-09-11 06:24 -0700
Message-ID <00283572-b5ee-4277-9dcf-90b658ec2e67@googlegroups.com> (permalink)
Subject PrintService Java 11 bug?
From Eric Douglas <e.d.programmer@gmail.com>

Show all headers | View raw


I don't believe we had this issue with Java 8.
I just wrote a little test program and called javax.print.PrintServiceLookup.lookupPrintServices() and it returned an empty array.  I immediately called it a second time and it returned all 11 printers.
It's like it's telling something to gather a list of printers and not waiting for it.  Is this a bug in the JDK or is there some way I can force it to wait?

Back to comp.lang.java.programmer | Previous | Next | Find similar | Unroll thread


Thread

PrintService Java 11 bug? Eric Douglas <e.d.programmer@gmail.com> - 2019-09-11 06:24 -0700

csiph-web