Comments (16)
This issue has been submitted to a private bug tracker (paid OpenJDK support). I will continue to provide updates here as they arrive.
from adoptium-support.
You'll also be pleased to hear that it looks like Apple is going to be rejoining OpenJDK, so we may see a little more focus on that port in general.
from adoptium-support.
The vendor has provided a patched JDK and in my tests it is passing the original unit test. Next steps, quoting the vendor:
[We] still need to refactor the code and get it formatted and take it to community before this turns official.
So the upstream bug report should soon be updated to reflect this.
from adoptium-support.
Merged into OpenJDK11, closing.
from adoptium-support.
Reported upstream as: https://bugs.openjdk.java.net/browse/JDK-8234393
from adoptium-support.
@tresf is it possible to get the output of:
System.out.println("Print service type: " + printer.getClass().getName());
System.out.println("PrinterJob type: " + job.getClass().getName());
for (Media media : supportedMedia) {
System.out.println("Media: " + media.getClass().getName() + " " + media);
}
When added to your example code, just so I know what classes we are talking about on an effected system.
from adoptium-support.
here is my output:
Print service type: sun.print.IPPPrintService
PrinterJob type: sun.lwawt.macosx.CPrinterJob
Media: sun.print.CustomMediaSizeName 101.6x180.6mm
Media: sun.print.CustomMediaSizeName 101.6x180.6mm
Media: sun.print.CustomMediaSizeName 120x120mm
Media: sun.print.CustomMediaSizeName 120x120mm
Media: sun.print.CustomMediaSizeName 195x270mm
Media: javax.print.attribute.standard.MediaSizeName iso-b7
Media: javax.print.attribute.standard.MediaSizeName iso-b7
Media: sun.print.CustomMediaSizeName 4x6
Media: sun.print.CustomMediaSizeName 4x6
Media: javax.print.attribute.standard.MediaSizeName na-5x7
Media: javax.print.attribute.standard.MediaSizeName na-5x7
Media: sun.print.CustomMediaSizeName 5x8
Media: javax.print.attribute.standard.MediaSizeName na-8x10
Media: javax.print.attribute.standard.MediaSizeName na-8x10
Media: javax.print.attribute.standard.MediaSizeName iso-a4
Media: javax.print.attribute.standard.MediaSizeName iso-a4
Media: javax.print.attribute.standard.MediaSizeName iso-a5
Media: javax.print.attribute.standard.MediaSizeName iso-a6
Media: javax.print.attribute.standard.MediaSizeName jis-b5
Media: javax.print.attribute.standard.MediaSizeName jis-b6
Media: javax.print.attribute.standard.MediaSizeName na-number-10-envelope
Media: javax.print.attribute.standard.MediaSizeName iso-c6
Media: javax.print.attribute.standard.MediaSizeName iso-designated-long
Media: javax.print.attribute.standard.MediaSizeName folio
Media: javax.print.attribute.standard.MediaSizeName na-legal
Media: javax.print.attribute.standard.MediaSizeName na-letter
Media: javax.print.attribute.standard.MediaSizeName na-letter
Media: javax.print.attribute.standard.MediaSizeName japanese-postcard
Media: javax.print.attribute.standard.MediaSizeName japanese-postcard
Media: sun.print.CustomMediaSizeName Custom
Media: sun.print.CustomMediaTray Auto Select
Media: sun.print.CustomMediaTray Main Tray
Media: sun.print.CustomMediaTray Photo Tray
Media: sun.print.CustomMediaTray CD-DVD Tray
from adoptium-support.
@gdams thanks
from adoptium-support.
@johnoliver do you still require the output from the logs? I'd be happy to retrieve it however it appears that @gdams was able to provide the requested information.
from adoptium-support.
@tresf naa its fine I got it
from adoptium-support.
You'll also be pleased to hear that it looks like Apple is going to be rejoining OpenJDK, so we may see a little more focus on that port in general.
Great news indeed. I'll ping you on Slack to find out more.
from adoptium-support.
Some feedback from our 3rd party vendor:
While we instrument the code with the testcase, we see that though lpr is a supported command for printing in Mac, JDK doesn't make use of it. Unlike linux, JDK in Mac make use of pure native objective C code along with COCOA APIs for the print operation. Our efforts were to identify the
setAttributes
call in theRasterPrinter
job class and we see that,setAttributes()
call has been overridden in both linux and MacOS. While the linux has added support for this new attribute now under the following bug JDK-6357887: selected printertray is ignored under linux, Mac OS overriddensetAttribute()
still doesn't support it. This is the prime reason for why the issue is still present in the Mac. Though the attributeHashMap
has theMediaTray
property set into it, it is not communicated to the native code and hence, the setting doesn't apply while printing.
A continuing investigation is occuring.
from adoptium-support.
The pull request is now available at openjdk: openjdk/jdk#509. Once merged, it will require a backport to land on JDK11.
from adoptium-support.
Merged via openjdk/jdk@3ee0380. Next is getting it backported to OpenJDK11. How does that process work?
from adoptium-support.
The original author typically opens up a backport issue in JBS and then emails the jdk-updates list to sanity check if the lead (Andrew Haley) will accept the patch.
from adoptium-support.
Backport process submitted, approved, should be merged to 11u soon.
from adoptium-support.
Related Issues (20)
- Eclipse is Crashing HOT 20
- Spring Tool Suite crashing HOT 7
- A fatal error has been detected by the Java Runtime Environment: HOT 3
- A fatal error has been detected by the Java Runtime Environment HOT 1
- A fatal error has been detected by the Java Runtime Environment - libwebkit2gtk-4.0.so.37+0xdb61f8 - eclipse flashback HOT 1
- A fatal error has been detected by the Java Runtime Environment: HOT 1
- JRE does not start on Windows if it is located in a directory named with Cyrillic characters HOT 4
- STS automatically closes while using Ctrl+space. HOT 1
- My Eclipse is constantly crashing HOT 1
- Fatal: Launch Error: Could not launch JNLP file. The application has not been initialized, for more information execute javaws/browser from the command line and send a bug report. HOT 4
- crash eclipse application. HOT 1
- A fatal error has been detected by the Java Runtime Environment HOT 3
- h HOT 1
- A fatal error has been detected by the Java Runtime Environment: HOT 1
- A fatal error has been detected by the Java Runtime Environment: pid=18320 HOT 1
- Spring Tool Suite crash HOT 1
- Eclipse keep crashing while modifying code HOT 3
- Uncontrolled closing of Eclipse IDE on Zorin OS HOT 2
- STS autoclose HOT 1
- eclipse crashes due to libwebkit2gtk HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adoptium-support.