Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
P4
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 9
-
Component/s: client-libs
-
Labels:
-
Subcomponent:
-
Resolved In Build:b26
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8056799 | emb-9 | Unassigned | P4 | Resolved | Fixed | b26 |
JDK-8063747 | 8u45 | Philip Race | P4 | Resolved | Fixed | b01 |
JDK-8050369 | 8u40 | Philip Race | P4 | Resolved | Fixed | b01 |
JDK-8070198 | emb-8u47 | Philip Race | P4 | Resolved | Fixed | team |
Description
When a printer reports paper sizes CustomMediSizeName tries to match the reported size
to one of the standard paper sizes such as "A4" that are defined
in the javax.print.attribute.standard/MediaSize class and associated classes.
This is then available as CustomMediSizeName.getStandardMedia()
MediaSize,findMedia(..) is used to locate the matching standard media.
We use whatever it returns which is wrong. It will try to find
the closest paper, returning null only when the size we have
is radically different. So often we end up matching a media with
an inappropriate size. Instead we should consider it completely
custom.
If the sizes are not really close we should not report that it
matches a standard media.
This only affects CUPS printing as that is the only code path
that uses CustomMediSizeName.getStandardMedia()
to one of the standard paper sizes such as "A4" that are defined
in the javax.print.attribute.standard/MediaSize class and associated classes.
This is then available as CustomMediSizeName.getStandardMedia()
MediaSize,findMedia(..) is used to locate the matching standard media.
We use whatever it returns which is wrong. It will try to find
the closest paper, returning null only when the size we have
is radically different. So often we end up matching a media with
an inappropriate size. Instead we should consider it completely
custom.
If the sizes are not really close we should not report that it
matches a standard media.
This only affects CUPS printing as that is the only code path
that uses CustomMediSizeName.getStandardMedia()
Attachments
Issue Links
- backported by
-
JDK-8050369 CustomMediaSizeName class matching to standard media is too loose
-
- Resolved
-
-
JDK-8056799 CustomMediaSizeName class matching to standard media is too loose
-
- Resolved
-
-
JDK-8063747 CustomMediaSizeName class matching to standard media is too loose
-
- Resolved
-
-
JDK-8070198 CustomMediaSizeName class matching to standard media is too loose
-
- Resolved
-