Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
P3
-
Resolution: Fixed
-
Affects Version/s: 8, 9
-
Fix Version/s: 9
-
Component/s: client-libs
-
Labels:None
-
Subcomponent:
-
Resolved In Build:b96
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8183831 | 8u161 | Philip Race | P3 | Resolved | Fixed | b01 |
JDK-8177049 | 8u152 | Philip Race | P3 | Resolved | Fixed | b02 |
JDK-8192565 | emb-8u161 | Philip Race | P3 | Resolved | Fixed | b01 |
Description
This program shows a stack over flow ..
import java.awt.print.*;
import javax.print.*;
import javax.print.attribute.*;
import javax.print.attribute.standard.*;
public class PD {
public static void main(String args[]) {
PrinterJob job = PrinterJob.getPrinterJob();
if (job == null) {
return;
}
PrintRequestAttributeSet pSet =
new HashPrintRequestAttributeSet();
pSet.add(DialogTypeSelection.NATIVE);
job.printDialog(pSet);
job.pageDialog(pSet);
}
}
Exception in thread "main" java.lang.StackOverflowError
at java.security.AccessController.doPrivileged(Native Method)
at sun.print.RasterPrinterJob.pageDialog(RasterPrinterJob.java:720)
at sun.print.RasterPrinterJob.pageDialog(RasterPrinterJob.java:762)
at sun.print.RasterPrinterJob.pageDialog(RasterPrinterJob.java:737)
at sun.print.RasterPrinterJob.pageDialog(RasterPrinterJob.java:762)
at sun.print.RasterPrinterJob.pageDialog(RasterPrinterJob.java:737)
import java.awt.print.*;
import javax.print.*;
import javax.print.attribute.*;
import javax.print.attribute.standard.*;
public class PD {
public static void main(String args[]) {
PrinterJob job = PrinterJob.getPrinterJob();
if (job == null) {
return;
}
PrintRequestAttributeSet pSet =
new HashPrintRequestAttributeSet();
pSet.add(DialogTypeSelection.NATIVE);
job.printDialog(pSet);
job.pageDialog(pSet);
}
}
Exception in thread "main" java.lang.StackOverflowError
at java.security.AccessController.doPrivileged(Native Method)
at sun.print.RasterPrinterJob.pageDialog(RasterPrinterJob.java:720)
at sun.print.RasterPrinterJob.pageDialog(RasterPrinterJob.java:762)
at sun.print.RasterPrinterJob.pageDialog(RasterPrinterJob.java:737)
at sun.print.RasterPrinterJob.pageDialog(RasterPrinterJob.java:762)
at sun.print.RasterPrinterJob.pageDialog(RasterPrinterJob.java:737)
Attachments
Issue Links
- backported by
-
JDK-8177049 Stack overflow on Linux using DialogTypeSelection.NATIVE
-
- Resolved
-
-
JDK-8183831 Stack overflow on Linux using DialogTypeSelection.NATIVE
-
- Resolved
-
-
JDK-8192565 Stack overflow on Linux using DialogTypeSelection.NATIVE
-
- Resolved
-
- duplicates
-
JDK-8133737 Stack Overflow from Printing with Native Dialog while Print Service is disabled
-
- Closed
-