Re: [OpenJDK 2D-Dev] RFR: 8146324: Add sun.font.FontUtilities.isComplexCharCode or related method to public API

2016-04-05 Thread Semyon Sadetsky
approved. --Semyon On 4/5/2016 9:45 PM, Phil Race wrote: I have an approved CCC sitting waiting for a 2nd reviewer on the code change -phil. On 03/25/2016 11:31 AM, Sergey Bylokhov wrote: Looks fine. On 25.03.16 20:56, Phil Race wrote: After a hallway conversation I have decided to change

Re: [OpenJDK 2D-Dev] RFR: 8146324: Add sun.font.FontUtilities.isComplexCharCode or related method to public API

2016-04-05 Thread Phil Race
I have an approved CCC sitting waiting for a 2nd reviewer on the code change -phil. On 03/25/2016 11:31 AM, Sergey Bylokhov wrote: Looks fine. On 25.03.16 20:56, Phil Race wrote: After a hallway conversation I have decided to change it to NPE. Not that I think it matters greatly either way si

Re: [OpenJDK 2D-Dev] RFR: 8146324: Add sun.font.FontUtilities.isComplexCharCode or related method to public API

2016-03-25 Thread Sergey Bylokhov
Looks fine. On 25.03.16 20:56, Phil Race wrote: After a hallway conversation I have decided to change it to NPE. Not that I think it matters greatly either way since I don't think developers will be passing null to this method anyway :-) The test is changed to match .. http://cr.openjdk.java.n

Re: [OpenJDK 2D-Dev] RFR: 8146324: Add sun.font.FontUtilities.isComplexCharCode or related method to public API

2016-03-25 Thread Phil Race
After a hallway conversation I have decided to change it to NPE. Not that I think it matters greatly either way since I don't think developers will be passing null to this method anyway :-) The test is changed to match .. http://cr.openjdk.java.net/~prr/8146324.1 -phil. On 03/24/2016 03:59 PM,

Re: [OpenJDK 2D-Dev] RFR: 8146324: Add sun.font.FontUtilities.isComplexCharCode or related method to public API

2016-03-25 Thread Semyon Sadetsky
On 3/25/2016 1:43 AM, Andrej Golovnin wrote: Hi Phil, That is true .. although I think I have previously been convinced that IAE is generally the better choice for such a case, I found only deriveFont that throws IAE for null in this file. So the question is whether to be consistent or to sta

Re: [OpenJDK 2D-Dev] RFR: 8146324: Add sun.font.FontUtilities.isComplexCharCode or related method to public API

2016-03-24 Thread Sergey Bylokhov
On 25.03.16 1:22, Phil Race wrote: That is true .. although I think I have previously been convinced that IAE is generally the better choice for such a case, I found only deriveFont that throws IAE for null in this file. deriveFont were changed(NPE to IAE) in 2001, but other methods and the ne

Re: [OpenJDK 2D-Dev] RFR: 8146324: Add sun.font.FontUtilities.isComplexCharCode or related method to public API

2016-03-24 Thread Andrej Golovnin
Hi Phil, > That is true .. although I think I have previously been convinced that IAE > is generally the better choice for such a case, I found only deriveFont > that throws IAE for null in this file. > So the question is whether to be consistent or to start picking the better > option. > So if t

Re: [OpenJDK 2D-Dev] RFR: 8146324: Add sun.font.FontUtilities.isComplexCharCode or related method to public API

2016-03-24 Thread Phil Race
That is true .. although I think I have previously been convinced that IAE is generally the better choice for such a case, I found only deriveFont that throws IAE for null in this file. So the question is whether to be consistent or to start picking the better option. So if there were no existing

Re: [OpenJDK 2D-Dev] RFR: 8146324: Add sun.font.FontUtilities.isComplexCharCode or related method to public API

2016-03-24 Thread Andrej Golovnin
Hi Phil, > bug : https://bugs.openjdk.java.net/browse/JDK-8146324 > fix : http://cr.openjdk.java.net/~prr/8146324/ maybe the line 794: 794 * @return true if the specified text will need special layout. should be changed to: 794 * @return {@code true} if the specified text will need s

Re: [OpenJDK 2D-Dev] RFR: 8146324: Add sun.font.FontUtilities.isComplexCharCode or related method to public API

2016-03-24 Thread Sergey Bylokhov
Hi, Phil. Should this new method throw IAE? It seems that NPE can be thrown instead, At least other methods in Font.java including the newly added createFonts() throw NPE. On 25.03.16 0:16, Phil Race wrote: bug : https://bugs.openjdk.java.net/browse/JDK-8146324 fix : http://cr.openjdk.java.ne

[OpenJDK 2D-Dev] RFR: 8146324: Add sun.font.FontUtilities.isComplexCharCode or related method to public API

2016-03-24 Thread Phil Race
bug : https://bugs.openjdk.java.net/browse/JDK-8146324 fix : http://cr.openjdk.java.net/~prr/8146324/ Developers have used an internal API to detect when TextLayout or GlyphVector.layoutGlyphVectorwill be needed since that is a slower path. This provides a public equivalent capability. I have i