Re: [OpenJDK 2D-Dev] [9] RFR JDK-5049012: PrintToFile option is not disabled for flavors that do not support destination

2016-08-11 Thread Phil Race
It appears to me that this fix has caused a regression. When I bring up this dialog (on Linux) Print To File is always greyed out. I think somewhere along the line you became we concerned about whether specific value should grey it out or not that it got lost that is no longer possible to set this

Re: [OpenJDK 2D-Dev] [9] RFR JDK-5049012: PrintToFile option is not disabled for flavors that do not support destination

2016-07-08 Thread Jayathirth D V
Hi Prasanta, Changes are fine. Thanks, Jay From: Prasanta Sadhukhan Sent: Friday, July 08, 2016 4:42 PM To: Jayathirth D V Cc: 2d-dev Subject: Re: [OpenJDK 2D-Dev] [9] RFR JDK-5049012: PrintToFile option is not disabled for flavors that do not support destination Hi Jay, Thanks

Re: [OpenJDK 2D-Dev] [9] RFR JDK-5049012: PrintToFile option is not disabled for flavors that do not support destination

2016-07-08 Thread Prasanta Sadhukhan
, July 08, 2016 4:46 AM *To:* Prasanta Sadhukhan *Cc:* 2d-dev *Subject:* Re: [OpenJDK 2D-Dev] [9] RFR JDK-5049012: PrintToFile option is not disabled for flavors that do not support destination Ok .. +1 -phil. On 7/1/16, 2:23 AM, Prasanta Sadhukhan wrote: Hi Phil, On 6/30/2016 7:50 PM

Re: [OpenJDK 2D-Dev] [9] RFR JDK-5049012: PrintToFile option is not disabled for flavors that do not support destination

2016-07-08 Thread Jayathirth D V
. Thanks, Jay From: Philip Race Sent: Friday, July 08, 2016 4:46 AM To: Prasanta Sadhukhan Cc: 2d-dev Subject: Re: [OpenJDK 2D-Dev] [9] RFR JDK-5049012: PrintToFile option is not disabled for flavors that do not support destination Ok .. +1 -phil. On 7/1/16, 2:23 AM, Prasanta Sadhukhan

Re: [OpenJDK 2D-Dev] [9] RFR JDK-5049012: PrintToFile option is not disabled for flavors that do not support destination

2016-07-07 Thread Philip Race
Ok .. +1 -phil. On 7/1/16, 2:23 AM, Prasanta Sadhukhan wrote: Hi Phil, On 6/30/2016 7:50 PM, Philip Race wrote: Eh ? Before your change the code was calling isAttributeCategorySupported(), notisAttributeValueSupported() So there was not previously a possibility of that NPE, and my point was

Re: [OpenJDK 2D-Dev] [9] RFR JDK-5049012: PrintToFile option is not disabled for flavors that do not support destination

2016-07-01 Thread Prasanta Sadhukhan
Hi Phil, On 6/30/2016 7:50 PM, Philip Race wrote: Eh ? Before your change the code was calling isAttributeCategorySupported(), not isAttributeValueSupported() So there was not previously a possibility of that NPE, and my point was now you have changed that call you need that !=null check even

Re: [OpenJDK 2D-Dev] [9] RFR JDK-5049012: PrintToFile option is not disabled for flavors that do not support destination

2016-06-30 Thread Philip Race
Eh ? Before your change the code was calling isAttributeCategorySupported(), notisAttributeValueSupported() So there was not previously a possibility of that NPE, and my point was now you have changed that call you need that !=null check even more .. But I think there is still a problem. Now ds

Re: [OpenJDK 2D-Dev] [9] RFR JDK-5049012: PrintToFile option is not disabled for flavors that do not support destination

2016-06-30 Thread Prasanta Sadhukhan
On 6/30/2016 1:15 PM, Prasanta Sadhukhan wrote: Hi Phil, NPE will be thrown -- public boolean isAttributeValueSupported(Attribute attr, DocFlavor flavor, AttributeSet attributes) { if (att

Re: [OpenJDK 2D-Dev] [9] RFR JDK-5049012: PrintToFile option is not disabled for flavors that do not support destination

2016-06-30 Thread Prasanta Sadhukhan
Hi Phil, NPE will be thrown -- public boolean isAttributeValueSupported(Attribute attr, DocFlavor flavor, AttributeSet attributes) { if (attr == null) { throw new NullPointerExcep

Re: [OpenJDK 2D-Dev] [9] RFR JDK-5049012: PrintToFile option is not disabled for flavors that do not support destination

2016-06-29 Thread Philip Race
--- https://docs.oracle.com/javase/8/docs/api/javax/print/PrintService.html#isAttributeValueSupported-javax.print.attribute.Attribute-javax.print.DocFlavor-javax.print.attribute.AttributeSet- Throws: NullPointerException - (unchecked exception) if attrval is null. -- So why did you remove t

[OpenJDK 2D-Dev] [9] RFR JDK-5049012: PrintToFile option is not disabled for flavors that do not support destination

2016-06-28 Thread Prasanta Sadhukhan
Hi All, Please review a fix for an issue where it is seen that "Print-To-File" option is enabled even for flavors that do not support Destination attribute even though isAttributeValueSupported for that flavor returns false. Bug: https://bugs.openjdk.java.net/browse/JDK-5049012 webrev: http://