Re: [OpenJDK 2D-Dev] [10] RFR 8078192: Path2D storage trimming

2017-08-18 Thread Laurent Bourgès
Thanks,
Laurent

Le 18 août 2017 7:29 PM, "Phil Race"  a écrit :

> CSR was approved and I have pushed the new API.
>
> -phil.
>
> On 08/17/2017 08:31 AM, Philip Race wrote:
>
> I have filed https://bugs.openjdk.java.net/browse/JDK-8186364
> and created and submitted the CSR for it :
> https://bugs.openjdk.java.net/browse/JDK-8186365
>
> -phil.
>
> On 8/17/17, 8:05 AM, Philip Race wrote:
>
> OK I'll handle the bureaucracy.
>
> -phil.
>
> On 8/17/17, 7:31 AM, Laurent Bourgès wrote:
>
> Phil,
> Thanks for the explanations.
>
> I am not at home until next week so I would prefer if you can create the
> new CSR and related bugs.
> As I said, this patch was reviewed and I want it to be pushed in jdk10
> finally.
>
> PS: I worked again on Marlin to implement an efficient path clipper that
> is working well and very promising performance.
>
> Cheers,
> Laurent
>
>
> Le 17 août 2017 00:33, "Phil Race"  a écrit :
>
>> It seems we are going to have to file a completely new bug for this.
>> It is not just a case of your permissions. The migrated "CCC" can't be
>> set to fix version 10.
>> So Joe Darcy suggested creating a backport targeted to 10 and creating a
>> CSR from that
>> but it turns out backports can't have CSRs. Joe was a bit surprised by
>> that.
>>
>> So
>> 1) create a new bug which references and largely duplicates the original
>> one
>> 2) Create a CSR for JDK 10 for that.
>> 3) Close the original bug as dup. of the new one.
>> 4) Get CSR approval and push under the new bug id.
>> We won't need to do a new code review. Just update the bugs with pointers
>> to email threads explaining the relationship.
>>
>> If you want I can handle this hassle but if you want to do it you can too.
>>
>>
>> -phil.
>>
>> On 08/11/2017 05:29 AM, Laurent Bourgès wrote:
>>
>> Ping ?
>> In holidays ?
>>
>> Le 13 juil. 2017 9:36 AM, "Laurent Bourgès" 
>> a écrit :
>>
>>> Jim or Phil,
>>> Could you handle the CSR process on that patch and then push it in jdk10
>>> ?
>>>
>>> I consider that bug finished on my side.
>>>
>>> Laurent
>>>
>>> Le 8 juil. 2017 10:02, "Laurent Bourgès"  a
>>> écrit :
>>>
 Phil,

 Here are my comments on this CSR to be fixed in openjdk 10; I already
 submitted a patch and the review process happened in may.

 Le 3 juil. 2017 7:41 PM, "Phil Race"  a écrit :

 Laurent,

 Investigation has determined that since this was ported over in the
 "CCC migration project",
 due to the way that is set up it can't be assigned to non-Oracle
 employees.


 Ok, no problem.


 It won't affect any new CSRs that are created.

 Since the likelihood of any other similar case is extremely low, the
 simplest answer is
 that either Jim or myself will need to own and edit this one on your
 behalf.

 Send Jim or myself the changes you would like to make off-line and
 we'll take care of it.


 Just change the fix version to 10 and the @since javadoc tag as below:

   /**
 * Trims the capacity of this Path2D instance to its current
  * size. An application can use this operation to minimize the
  * storage of a path.
  *
  * @since 10
  */ +public abstract void trimToSize();

 It will match the proposed patch.

 Thanks,
 Laurent



>>> 2017-04-20 23:04 GMT+02:00 Philip Race :
>>>
  You have a capital letter here and I think it must be lower case ..


 2499  * @Since 10

 -phil.


 On 4/20/17, 1:58 PM, Laurent Bourgès wrote:

 Hi Phil & Jim,

 Here is the updated webrev:
 http://cr.openjdk.java.net/~lbourges/path2D/Path2D-8078192.2/

 Changes:
 - trimToSize() return void
 - fixed test + jtreg passed

 Bye,
 Laurent

 2017-04-20 21:30 GMT+02:00 Jim Graham :

> Hi Laurent,
>
> The implementation looks good, except that the method
> chaining-style return value seems out of place here.  Similar 
> trimToSize()
> methods in Collections return void and none of the other methods in 
> this
> area use the method chaining paradigm.  In the interest of 
> maintaining a
> common design theme throughout 2D this method should just return void.
>
> ...jim
>
>
> On 4/18/17 11:49 PM, Laurent Bourgès wrote:
>
>> Hi,
>>
>> Here is a first attempt to propose a Path2D patch (based on
>> JDK10):
>> http://cr.openjdk.java.net/~lbourges/path2D/Path2D-8078192.0/
>>
>> 

Re: [OpenJDK 2D-Dev] [10] RFR 8078192: Path2D storage trimming

2017-08-18 Thread Phil Race

CSR was approved and I have pushed the new API.

-phil.

On 08/17/2017 08:31 AM, Philip Race wrote:

I have filed https://bugs.openjdk.java.net/browse/JDK-8186364
and created and submitted the CSR for it :
https://bugs.openjdk.java.net/browse/JDK-8186365

-phil.

On 8/17/17, 8:05 AM, Philip Race wrote:

OK I'll handle the bureaucracy.

-phil.

On 8/17/17, 7:31 AM, Laurent Bourgès wrote:

Phil,
Thanks for the explanations.

I am not at home until next week so I would prefer if you can create 
the new CSR and related bugs.
As I said, this patch was reviewed and I want it to be pushed in 
jdk10 finally.


PS: I worked again on Marlin to implement an efficient path clipper 
that is working well and very promising performance.


Cheers,
Laurent


Le 17 août 2017 00:33, "Phil Race" > a écrit :


It seems we are going to have to file a completely new bug for this.
It is not just a case of your permissions. The migrated "CCC"
can't be set to fix version 10.
So Joe Darcy suggested creating a backport targeted to 10 and
creating a CSR from that
but it turns out backports can't have CSRs. Joe was a bit
surprised by that.

So
1) create a new bug which references and largely duplicates the
original one
2) Create a CSR for JDK 10 for that.
3) Close the original bug as dup. of the new one.
4) Get CSR approval and push under the new bug id.
We won't need to do a new code review. Just update the bugs with
pointers
to email threads explaining the relationship.

If you want I can handle this hassle but if you want to do it
you can too.


-phil.

On 08/11/2017 05:29 AM, Laurent Bourgès wrote:

Ping ?
In holidays ?

Le 13 juil. 2017 9:36 AM, "Laurent Bourgès"
>
a écrit :

Jim or Phil,
Could you handle the CSR process on that patch and then
push it in jdk10 ?

I consider that bug finished on my side.

Laurent

Le 8 juil. 2017 10:02, "Laurent Bourgès"
> a écrit :

Phil,

Here are my comments on this CSR to be fixed in openjdk
10; I already submitted a patch and the review process
happened in may.

Le 3 juil. 2017 7:41 PM, "Phil Race"
> a écrit :

Laurent,

Investigation has determined that since this was
ported over in the "CCC migration project",
due to the way that is set up it can't be assigned
to non-Oracle employees.


Ok, no problem.


It won't affect any new CSRs that are created.

Since the likelihood of any other similar case is
extremely low, the simplest answer is
that either Jim or myself will need to own and edit
this one on your behalf.

Send Jim or myself the changes you would like to
make off-line and we'll take care of it.


Just change the fix version to 10 and the @since
javadoc tag as below:

  /**
* Trims the capacity of this Path2D instance to its
current
 * size. An application can use this operation to
minimize the
 * storage of a path.
 *
 * @since 10
 */ +public abstract void trimToSize();

It will match the proposed patch.

Thanks,
Laurent




2017-04-20 23:04 GMT+02:00 Philip
Race >:

 You have a capital letter here
and I think it must be lower
case ..


2499  * @Since 10

-phil.


On 4/20/17, 1:58 PM, Laurent
Bourgès wrote:

Hi Phil & Jim,

Here is the updated webrev:

http://cr.openjdk.java.net/~lbourges/path2D/Path2D-8078192.2/



Changes:
- trimToSize() return void
- fixed test + jtreg passed

Bye,
Laurent

2017-04-20 21:30 GMT+02:00 Jim
Graham
   

Re: [OpenJDK 2D-Dev] [10] RFR 8078192: Path2D storage trimming

2017-08-17 Thread Philip Race

I have filed https://bugs.openjdk.java.net/browse/JDK-8186364
and created and submitted the CSR for it :
https://bugs.openjdk.java.net/browse/JDK-8186365

-phil.

On 8/17/17, 8:05 AM, Philip Race wrote:

OK I'll handle the bureaucracy.

-phil.

On 8/17/17, 7:31 AM, Laurent Bourgès wrote:

Phil,
Thanks for the explanations.

I am not at home until next week so I would prefer if you can create 
the new CSR and related bugs.
As I said, this patch was reviewed and I want it to be pushed in 
jdk10 finally.


PS: I worked again on Marlin to implement an efficient path clipper 
that is working well and very promising performance.


Cheers,
Laurent


Le 17 août 2017 00:33, "Phil Race" > a écrit :


It seems we are going to have to file a completely new bug for this.
It is not just a case of your permissions. The migrated "CCC"
can't be set to fix version 10.
So Joe Darcy suggested creating a backport targeted to 10 and
creating a CSR from that
but it turns out backports can't have CSRs. Joe was a bit
surprised by that.

So
1) create a new bug which references and largely duplicates the
original one
2) Create a CSR for JDK 10 for that.
3) Close the original bug as dup. of the new one.
4) Get CSR approval and push under the new bug id.
We won't need to do a new code review. Just update the bugs with
pointers
to email threads explaining the relationship.

If you want I can handle this hassle but if you want to do it you
can too.


-phil.

On 08/11/2017 05:29 AM, Laurent Bourgès wrote:

Ping ?
In holidays ?

Le 13 juil. 2017 9:36 AM, "Laurent Bourgès"
> a
écrit :

Jim or Phil,
Could you handle the CSR process on that patch and then push
it in jdk10 ?

I consider that bug finished on my side.

Laurent

Le 8 juil. 2017 10:02, "Laurent Bourgès"
> a écrit :

Phil,

Here are my comments on this CSR to be fixed in openjdk
10; I already submitted a patch and the review process
happened in may.

Le 3 juil. 2017 7:41 PM, "Phil Race"
>
a écrit :

Laurent,

Investigation has determined that since this was
ported over in the "CCC migration project",
due to the way that is set up it can't be assigned
to non-Oracle employees.


Ok, no problem.


It won't affect any new CSRs that are created.

Since the likelihood of any other similar case is
extremely low, the simplest answer is
that either Jim or myself will need to own and edit
this one on your behalf.

Send Jim or myself the changes you would like to
make off-line and we'll take care of it.


Just change the fix version to 10 and the @since javadoc
tag as below:

  /**
* Trims the capacity of this Path2D instance to its
current
 * size. An application can use this operation to
minimize the
 * storage of a path.
 *
 * @since 10
 */ +public abstract void trimToSize();

It will match the proposed patch.

Thanks,
Laurent




2017-04-20 23:04 GMT+02:00 Philip
Race >:

 You have a capital letter here
and I think it must be lower case ..


2499  * @Since 10

-phil.


On 4/20/17, 1:58 PM, Laurent
Bourgès wrote:

Hi Phil & Jim,

Here is the updated webrev:

http://cr.openjdk.java.net/~lbourges/path2D/Path2D-8078192.2/



Changes:
- trimToSize() return void
- fixed test + jtreg passed

Bye,
Laurent

2017-04-20 21:30 GMT+02:00 Jim
Graham >:

Hi Laurent,

  

Re: [OpenJDK 2D-Dev] [10] RFR 8078192: Path2D storage trimming

2017-08-17 Thread Philip Race

OK I'll handle the bureaucracy.

-phil.

On 8/17/17, 7:31 AM, Laurent Bourgès wrote:

Phil,
Thanks for the explanations.

I am not at home until next week so I would prefer if you can create 
the new CSR and related bugs.
As I said, this patch was reviewed and I want it to be pushed in jdk10 
finally.


PS: I worked again on Marlin to implement an efficient path clipper 
that is working well and very promising performance.


Cheers,
Laurent


Le 17 août 2017 00:33, "Phil Race" > a écrit :


It seems we are going to have to file a completely new bug for this.
It is not just a case of your permissions. The migrated "CCC"
can't be set to fix version 10.
So Joe Darcy suggested creating a backport targeted to 10 and
creating a CSR from that
but it turns out backports can't have CSRs. Joe was a bit
surprised by that.

So
1) create a new bug which references and largely duplicates the
original one
2) Create a CSR for JDK 10 for that.
3) Close the original bug as dup. of the new one.
4) Get CSR approval and push under the new bug id.
We won't need to do a new code review. Just update the bugs with
pointers
to email threads explaining the relationship.

If you want I can handle this hassle but if you want to do it you
can too.


-phil.

On 08/11/2017 05:29 AM, Laurent Bourgès wrote:

Ping ?
In holidays ?

Le 13 juil. 2017 9:36 AM, "Laurent Bourgès"
> a
écrit :

Jim or Phil,
Could you handle the CSR process on that patch and then push
it in jdk10 ?

I consider that bug finished on my side.

Laurent

Le 8 juil. 2017 10:02, "Laurent Bourgès"
> a écrit :

Phil,

Here are my comments on this CSR to be fixed in openjdk
10; I already submitted a patch and the review process
happened in may.

Le 3 juil. 2017 7:41 PM, "Phil Race"
>
a écrit :

Laurent,

Investigation has determined that since this was
ported over in the "CCC migration project",
due to the way that is set up it can't be assigned to
non-Oracle employees.


Ok, no problem.


It won't affect any new CSRs that are created.

Since the likelihood of any other similar case is
extremely low, the simplest answer is
that either Jim or myself will need to own and edit
this one on your behalf.

Send Jim or myself the changes you would like to make
off-line and we'll take care of it.


Just change the fix version to 10 and the @since javadoc
tag as below:

  /**
* Trims the capacity of this Path2D instance to its
current
 * size. An application can use this operation to
minimize the
 * storage of a path.
 *
 * @since 10
 */ +public abstract void trimToSize();

It will match the proposed patch.

Thanks,
Laurent




2017-04-20 23:04 GMT+02:00 Philip
Race >:

 You have a capital letter here
and I think it must be lower case ..


2499  * @Since 10

-phil.


On 4/20/17, 1:58 PM, Laurent
Bourgès wrote:

Hi Phil & Jim,

Here is the updated webrev:

http://cr.openjdk.java.net/~lbourges/path2D/Path2D-8078192.2/



Changes:
- trimToSize() return void
- fixed test + jtreg passed

Bye,
Laurent

2017-04-20 21:30 GMT+02:00 Jim
Graham >:

Hi Laurent,

The implementation looks
good, except that the method
chaining-style return value

Re: [OpenJDK 2D-Dev] [10] RFR 8078192: Path2D storage trimming

2017-08-17 Thread Laurent Bourgès
Phil,
Thanks for the explanations.

I am not at home until next week so I would prefer if you can create the
new CSR and related bugs.
As I said, this patch was reviewed and I want it to be pushed in jdk10
finally.

PS: I worked again on Marlin to implement an efficient path clipper that is
working well and very promising performance.

Cheers,
Laurent


Le 17 août 2017 00:33, "Phil Race"  a écrit :

> It seems we are going to have to file a completely new bug for this.
> It is not just a case of your permissions. The migrated "CCC" can't be set
> to fix version 10.
> So Joe Darcy suggested creating a backport targeted to 10 and creating a
> CSR from that
> but it turns out backports can't have CSRs. Joe was a bit surprised by
> that.
>
> So
> 1) create a new bug which references and largely duplicates the original
> one
> 2) Create a CSR for JDK 10 for that.
> 3) Close the original bug as dup. of the new one.
> 4) Get CSR approval and push under the new bug id.
> We won't need to do a new code review. Just update the bugs with pointers
> to email threads explaining the relationship.
>
> If you want I can handle this hassle but if you want to do it you can too.
>
>
> -phil.
>
> On 08/11/2017 05:29 AM, Laurent Bourgès wrote:
>
> Ping ?
> In holidays ?
>
> Le 13 juil. 2017 9:36 AM, "Laurent Bourgès"  a
> écrit :
>
>> Jim or Phil,
>> Could you handle the CSR process on that patch and then push it in jdk10
>> ?
>>
>> I consider that bug finished on my side.
>>
>> Laurent
>>
>> Le 8 juil. 2017 10:02, "Laurent Bourgès"  a
>> écrit :
>>
>>> Phil,
>>>
>>> Here are my comments on this CSR to be fixed in openjdk 10; I already
>>> submitted a patch and the review process happened in may.
>>>
>>> Le 3 juil. 2017 7:41 PM, "Phil Race"  a écrit :
>>>
>>> Laurent,
>>>
>>> Investigation has determined that since this was ported over in the "CCC
>>> migration project",
>>> due to the way that is set up it can't be assigned to non-Oracle
>>> employees.
>>>
>>>
>>> Ok, no problem.
>>>
>>>
>>> It won't affect any new CSRs that are created.
>>>
>>> Since the likelihood of any other similar case is extremely low, the
>>> simplest answer is
>>> that either Jim or myself will need to own and edit this one on your
>>> behalf.
>>>
>>> Send Jim or myself the changes you would like to make off-line and we'll
>>> take care of it.
>>>
>>>
>>> Just change the fix version to 10 and the @since javadoc tag as below:
>>>
>>>   /**
>>> * Trims the capacity of this Path2D instance to its current
>>>  * size. An application can use this operation to minimize the
>>>  * storage of a path.
>>>  *
>>>  * @since 10
>>>  */ +public abstract void trimToSize();
>>>
>>> It will match the proposed patch.
>>>
>>> Thanks,
>>> Laurent
>>>
>>>
>>>
>> 2017-04-20 23:04 GMT+02:00 Philip Race :
>>
>>>  You have a capital letter here and I think it must be lower case ..
>>>
>>>
>>> 2499  * @Since 10
>>>
>>> -phil.
>>>
>>>
>>> On 4/20/17, 1:58 PM, Laurent Bourgès wrote:
>>>
>>> Hi Phil & Jim,
>>>
>>> Here is the updated webrev:
>>> http://cr.openjdk.java.net/~lbourges/path2D/Path2D-8078192.2/
>>>
>>> Changes:
>>> - trimToSize() return void
>>> - fixed test + jtreg passed
>>>
>>> Bye,
>>> Laurent
>>>
>>> 2017-04-20 21:30 GMT+02:00 Jim Graham :
>>>
 Hi Laurent,

 The implementation looks good, except that the method
 chaining-style return value seems out of place here.  Similar 
 trimToSize()
 methods in Collections return void and none of the other methods in 
 this
 area use the method chaining paradigm.  In the interest of maintaining 
 a
 common design theme throughout 2D this method should just return void.

 ...jim


 On 4/18/17 11:49 PM, Laurent Bourgès wrote:

> Hi,
>
> Here is a first attempt to propose a Path2D patch (based on JDK10):
> http://cr.openjdk.java.net/~lbourges/path2D/Path2D-8078192.0/
>
> JBS: https://bugs.openjdk.java.net/browse/JDK-8078192
>
> Please review the Path2D changes, notably the javadoc (english)
> and the modified Path2DCopyConstructor


>


Re: [OpenJDK 2D-Dev] [10] RFR 8078192: Path2D storage trimming

2017-08-16 Thread Phil Race

It seems we are going to have to file a completely new bug for this.
It is not just a case of your permissions. The migrated "CCC" can't be 
set to fix version 10.
So Joe Darcy suggested creating a backport targeted to 10 and creating a 
CSR from that

but it turns out backports can't have CSRs. Joe was a bit surprised by that.

So
1) create a new bug which references and largely duplicates the original one
2) Create a CSR for JDK 10 for that.
3) Close the original bug as dup. of the new one.
4) Get CSR approval and push under the new bug id.
We won't need to do a new code review. Just update the bugs with pointers
to email threads explaining the relationship.

If you want I can handle this hassle but if you want to do it you can too.


-phil.

On 08/11/2017 05:29 AM, Laurent Bourgès wrote:

Ping ?
In holidays ?

Le 13 juil. 2017 9:36 AM, "Laurent Bourgès" > a écrit :


Jim or Phil,
Could you handle the CSR process on that patch and then push it in
jdk10 ?

I consider that bug finished on my side.

Laurent

Le 8 juil. 2017 10:02, "Laurent Bourgès"
> a
écrit :

Phil,

Here are my comments on this CSR to be fixed in openjdk 10; I
already submitted a patch and the review process happened in may.

Le 3 juil. 2017 7:41 PM, "Phil Race" > a écrit :

Laurent,

Investigation has determined that since this was ported
over in the "CCC migration project",
due to the way that is set up it can't be assigned to
non-Oracle employees.


Ok, no problem.


It won't affect any new CSRs that are created.

Since the likelihood of any other similar case is
extremely low, the simplest answer is
that either Jim or myself will need to own and edit this
one on your behalf.

Send Jim or myself the changes you would like to make
off-line and we'll take care of it.


Just change the fix version to 10 and the @since javadoc tag
as below:

  /**
* Trims the capacity of this Path2D instance to its current
 * size. An application can use this operation to minimize
the
 * storage of a path.
 *
 * @since 10
 */ +public abstract void trimToSize();

It will match the proposed patch.

Thanks,
Laurent




2017-04-20 23:04 GMT+02:00 Philip Race
>:

 You have a capital letter here and I
think it must be lower case ..


2499  * @Since 10

-phil.


On 4/20/17, 1:58 PM, Laurent Bourgès
wrote:

Hi Phil & Jim,

Here is the updated webrev:

http://cr.openjdk.java.net/~lbourges/path2D/Path2D-8078192.2/



Changes:
- trimToSize() return void
- fixed test + jtreg passed

Bye,
Laurent

2017-04-20 21:30 GMT+02:00 Jim Graham
>:

Hi Laurent,

The implementation looks good,
except that the method
chaining-style return value seems
out of place here. Similar
trimToSize() methods in
Collections return void and none
of the other methods in this area
use the method chaining
paradigm.  In the interest of
maintaining a common design theme
throughout 2D this method should
just return void.

...jim


On 4/18/17 11:49 PM, Laurent
Bourgès wrote:

Hi,

Here is a first attempt to
propose a Path2D patch (based
on JDK10):


Re: [OpenJDK 2D-Dev] [10] RFR 8078192: Path2D storage trimming

2017-08-11 Thread Laurent Bourgès
Ping ?
In holidays ?

Le 13 juil. 2017 9:36 AM, "Laurent Bourgès"  a
écrit :

> Jim or Phil,
> Could you handle the CSR process on that patch and then push it in jdk10 ?
>
> I consider that bug finished on my side.
>
> Laurent
>
> Le 8 juil. 2017 10:02, "Laurent Bourgès"  a
> écrit :
>
>> Phil,
>>
>> Here are my comments on this CSR to be fixed in openjdk 10; I already
>> submitted a patch and the review process happened in may.
>>
>> Le 3 juil. 2017 7:41 PM, "Phil Race"  a écrit :
>>
>> Laurent,
>>
>> Investigation has determined that since this was ported over in the "CCC
>> migration project",
>> due to the way that is set up it can't be assigned to non-Oracle
>> employees.
>>
>>
>> Ok, no problem.
>>
>>
>> It won't affect any new CSRs that are created.
>>
>> Since the likelihood of any other similar case is extremely low, the
>> simplest answer is
>> that either Jim or myself will need to own and edit this one on your
>> behalf.
>>
>> Send Jim or myself the changes you would like to make off-line and we'll
>> take care of it.
>>
>>
>> Just change the fix version to 10 and the @since javadoc tag as below:
>>
>>   /**
>> * Trims the capacity of this Path2D instance to its current
>>  * size. An application can use this operation to minimize the
>>  * storage of a path.
>>  *
>>  * @since 10
>>  */ +public abstract void trimToSize();
>>
>> It will match the proposed patch.
>>
>> Thanks,
>> Laurent
>>
>>
>>
> 2017-04-20 23:04 GMT+02:00 Philip Race :
>
>>  You have a capital letter here and I think it must be lower case ..
>>
>>
>> 2499  * @Since 10
>>
>> -phil.
>>
>>
>> On 4/20/17, 1:58 PM, Laurent Bourgès wrote:
>>
>> Hi Phil & Jim,
>>
>> Here is the updated webrev:
>> http://cr.openjdk.java.net/~lbourges/path2D/Path2D-8078192.2/
>>
>> Changes:
>> - trimToSize() return void
>> - fixed test + jtreg passed
>>
>> Bye,
>> Laurent
>>
>> 2017-04-20 21:30 GMT+02:00 Jim Graham :
>>
>>> Hi Laurent,
>>>
>>> The implementation looks good, except that the method chaining-style
>>> return value seems out of place here.  Similar trimToSize() methods in
>>> Collections return void and none of the other methods in this area use 
>>> the
>>> method chaining paradigm.  In the interest of maintaining a common 
>>> design
>>> theme throughout 2D this method should just return void.
>>>
>>> ...jim
>>>
>>>
>>> On 4/18/17 11:49 PM, Laurent Bourgès wrote:
>>>
 Hi,

 Here is a first attempt to propose a Path2D patch (based on JDK10):
 http://cr.openjdk.java.net/~lbourges/path2D/Path2D-8078192.0/

 JBS: https://bugs.openjdk.java.net/browse/JDK-8078192

 Please review the Path2D changes, notably the javadoc (english) and
 the modified Path2DCopyConstructor
>>>
>>>


Re: [OpenJDK 2D-Dev] [10] RFR 8078192: Path2D storage trimming

2017-07-08 Thread Laurent Bourgès
Phil,

Here are my comments on this CSR to be fixed in openjdk 10; I already
submitted a patch and the review process happened in may.

Le 3 juil. 2017 7:41 PM, "Phil Race"  a écrit :

Laurent,

Investigation has determined that since this was ported over in the "CCC
migration project",
due to the way that is set up it can't be assigned to non-Oracle employees.


Ok, no problem.


It won't affect any new CSRs that are created.

Since the likelihood of any other similar case is extremely low, the
simplest answer is
that either Jim or myself will need to own and edit this one on your behalf.

Send Jim or myself the changes you would like to make off-line and we'll
take care of it.


Just change the fix version to 10 and the @since javadoc tag as below:

  /**
* Trims the capacity of this Path2D instance to its current
 * size. An application can use this operation to minimize the
 * storage of a path.
 *
 * @since 10
 */ +public abstract void trimToSize();

It will match the proposed patch.

Thanks,
Laurent



>>> 2017-04-20 23:04 GMT+02:00 Philip Race :
>>>
  You have a capital letter here and I think it must be lower case ..


 2499  * @Since 10

 -phil.


 On 4/20/17, 1:58 PM, Laurent Bourgès wrote:

 Hi Phil & Jim,

 Here is the updated webrev:
 http://cr.openjdk.java.net/~lbourges/path2D/Path2D-8078192.2/

 Changes:
 - trimToSize() return void
 - fixed test + jtreg passed

 Bye,
 Laurent

 2017-04-20 21:30 GMT+02:00 Jim Graham :

> Hi Laurent,
>
> The implementation looks good, except that the method chaining-style
> return value seems out of place here.  Similar trimToSize() methods in
> Collections return void and none of the other methods in this area use the
> method chaining paradigm.  In the interest of maintaining a common design
> theme throughout 2D this method should just return void.
>
> ...jim
>
>
> On 4/18/17 11:49 PM, Laurent Bourgès wrote:
>
>> Hi,
>>
>> Here is a first attempt to propose a Path2D patch (based on JDK10):
>> http://cr.openjdk.java.net/~lbourges/path2D/Path2D-8078192.0/
>>
>> JBS: https://bugs.openjdk.java.net/browse/JDK-8078192
>>
>> Please review the Path2D changes, notably the javadoc (english) and
>> the modified Path2DCopyConstructor
>
>


Re: [OpenJDK 2D-Dev] [10] RFR 8078192: Path2D storage trimming

2017-07-08 Thread Laurent Bourgès
Phil,

Here are my comments on this CSR to be fixed in openjdk 10; I already
submitted a patch and the review process happened in may.

Le 3 juil. 2017 7:41 PM, "Phil Race"  a écrit :

Laurent,

Investigation has determined that since this was ported over in the "CCC
migration project",
due to the way that is set up it can't be assigned to non-Oracle employees.


Ok, no problem.


It won't affect any new CSRs that are created.

Since the likelihood of any other similar case is extremely low, the
simplest answer is
that either Jim or myself will need to own and edit this one on your behalf.

Send Jim or myself the changes you would like to make off-line and we'll
take care of it.


Just change the fix version to 10 and the @since javadoc tag as below:

  /**
* Trims the capacity of this Path2D instance to its current
 * size. An application can use this operation to minimize the
 * storage of a path.
 *
 * @since 10
 */ +public abstract void trimToSize();

It will match the proposed patch.

Thanks,
Laurent



>>> 2017-04-20 23:04 GMT+02:00 Philip Race :
>>>
  You have a capital letter here and I think it must be lower case ..


 2499  * @Since 10

 -phil.


 On 4/20/17, 1:58 PM, Laurent Bourgès wrote:

 Hi Phil & Jim,

 Here is the updated webrev:
 http://cr.openjdk.java.net/~lbourges/path2D/Path2D-8078192.2/

 Changes:
 - trimToSize() return void
 - fixed test + jtreg passed

 Bye,
 Laurent

 2017-04-20 21:30 GMT+02:00 Jim Graham :

> Hi Laurent,
>
> The implementation looks good, except that the method chaining-style
> return value seems out of place here.  Similar trimToSize() methods in
> Collections return void and none of the other methods in this area use the
> method chaining paradigm.  In the interest of maintaining a common design
> theme throughout 2D this method should just return void.
>
> ...jim
>
>
> On 4/18/17 11:49 PM, Laurent Bourgès wrote:
>
>> Hi,
>>
>> Here is a first attempt to propose a Path2D patch (based on JDK10):
>> http://cr.openjdk.java.net/~lbourges/path2D/Path2D-8078192.0/
>>
>> JBS: https://bugs.openjdk.java.net/browse/JDK-8078192
>>
>> Please review the Path2D changes, notably the javadoc (english) and
>> the modified Path2DCopyConstructor
>
>


Re: [OpenJDK 2D-Dev] [10] RFR 8078192: Path2D storage trimming

2017-07-03 Thread Phil Race

Laurent,

Investigation has determined that since this was ported over in the "CCC 
migration project",

due to the way that is set up it can't be assigned to non-Oracle employees.

It won't affect any new CSRs that are created.

Since the likelihood of any other similar case is extremely low, the 
simplest answer is

that either Jim or myself will need to own and edit this one on your behalf.

Send Jim or myself the changes you would like to make off-line and we'll 
take care of it.


-phil.


On 06/07/2017 01:56 PM, Philip Race wrote:

Oh this one is interesting. It already has a CSR :-)



That's because we had created a CCC for it back in JDK 9 and then 
withdrew it.


All existing CSRs were ported over but as "confidential" since honestly
no one had time to look at all N thousand of them and vet them ...
we vetted and opened enough to give people a flavour.

So I think that "create a csr" doesn't appear if there already is one
since you can't see it.

I opened it so you can now see it.

https://bugs.openjdk.java.net/browse/CCC-8078192

I re-opened it but don't seem to be able to target it to 10 or assign 
it to you.


I'll need to ask.

-phil

On 6/7/17, 1:35 PM, Laurent Bourgès wrote:

Phil,

Could you initiate the CSR request in JBS ?
I do not see how to create it from the current bug: I looked at the 
More menu but I do not have any Create CSR action.


Cheers,
Laurent

Le 17 mai 2017 22:05, "Phil Race" > a écrit :


Early next week is the hope.

-phil

On 05/16/2017 02:20 PM, Laurent Bourgès wrote:

Phil,

Did you get any answer from the CSR process on this bug ?

Laurent


2017-04-21 0:17 GMT+02:00 Philip Race >:

OK. Although we still need to wait for the CSR process.

-phil.


On 4/20/17, 3:05 PM, Laurent Bourgès wrote:

Sorry (bad shortcut);

Here is the fixed webrev:
http://cr.openjdk.java.net/~lbourges/path2D/Path2D-8078192.3/


Laurent

2017-04-21 0:04 GMT+02:00 Laurent Bourgès
>:

Sorry for the typo, I added also a newline before @since:


2017-04-20 23:04 GMT+02:00 Philip Race
>:

 You have a capital letter here and I think it must
be lower case ..


2499  * @Since 10

-phil.


On 4/20/17, 1:58 PM, Laurent Bourgès wrote:

Hi Phil & Jim,

Here is the updated webrev:
http://cr.openjdk.java.net/~lbourges/path2D/Path2D-8078192.2/



Changes:
- trimToSize() return void
- fixed test + jtreg passed

Bye,
Laurent

2017-04-20 21:30 GMT+02:00 Jim Graham
>:

Hi Laurent,

The implementation looks good, except that the
method chaining-style return value seems out
of place here. Similar trimToSize() methods in
Collections return void and none of the other
methods in this area use the method chaining
paradigm.  In the interest of maintaining a
common design theme throughout 2D this method
should just return void.

...jim


On 4/18/17 11:49 PM, Laurent Bourgès wrote:

Hi,

Here is a first attempt to propose a
Path2D patch (based on JDK10):

http://cr.openjdk.java.net/~lbourges/path2D/Path2D-8078192.0/



JBS:
https://bugs.openjdk.java.net/browse/JDK-8078192


Please review the Path2D changes, notably
the javadoc (english) and the modified
Path2DCopyConstructor test which checks
all public Path2D methods on concrete
classes (Path2D.Float, Path2D.Double,
GeneralPath) after calling path.trimToSize()

Cheers,
Laurent




-- 
-- 
Laurent Bourgès





-- 
-- 
Laurent Bourgès





-- 

Re: [OpenJDK 2D-Dev] [10] RFR 8078192: Path2D storage trimming

2017-04-20 Thread Philip Race

OK. Although we still need to wait for the CSR process.

-phil.

On 4/20/17, 3:05 PM, Laurent Bourgès wrote:

Sorry (bad shortcut);

Here is the fixed webrev:
http://cr.openjdk.java.net/~lbourges/path2D/Path2D-8078192.3/ 



Laurent

2017-04-21 0:04 GMT+02:00 Laurent Bourgès >:


Sorry for the typo, I added also a newline before @since:


2017-04-20 23:04 GMT+02:00 Philip Race >:

 You have a capital letter here and I think it must be lower
case ..


2499  * @Since 10

-phil.


On 4/20/17, 1:58 PM, Laurent Bourgès wrote:

Hi Phil & Jim,

Here is the updated webrev:
http://cr.openjdk.java.net/~lbourges/path2D/Path2D-8078192.2/


Changes:
- trimToSize() return void
- fixed test + jtreg passed

Bye,
Laurent

2017-04-20 21:30 GMT+02:00 Jim Graham
>:

Hi Laurent,

The implementation looks good, except that the method
chaining-style return value seems out of place here. 
Similar trimToSize() methods in Collections return void

and none of the other methods in this area use the method
chaining paradigm.  In the interest of maintaining a
common design theme throughout 2D this method should just
return void.

...jim


On 4/18/17 11:49 PM, Laurent Bourgès wrote:

Hi,

Here is a first attempt to propose a Path2D patch
(based on JDK10):
http://cr.openjdk.java.net/~lbourges/path2D/Path2D-8078192.0/



JBS: https://bugs.openjdk.java.net/browse/JDK-8078192


Please review the Path2D changes, notably the javadoc
(english) and the modified Path2DCopyConstructor test
which checks
all public Path2D methods on concrete classes
(Path2D.Float, Path2D.Double, GeneralPath) after
calling path.trimToSize()

Cheers,
Laurent




-- 
-- 
Laurent Bourgès





-- 
-- 
Laurent Bourgès





--
--
Laurent Bourgès


Re: [OpenJDK 2D-Dev] [10] RFR 8078192: Path2D storage trimming

2017-04-20 Thread Laurent Bourgès
Sorry (bad shortcut);

Here is the fixed webrev:
http://cr.openjdk.java.net/~lbourges/path2D/Path2D-8078192.3/

Laurent

2017-04-21 0:04 GMT+02:00 Laurent Bourgès :

> Sorry for the typo, I added also a newline before @since:
>
>
> 2017-04-20 23:04 GMT+02:00 Philip Race :
>
>>  You have a capital letter here and I think it must be lower case ..
>>
>>
>> 2499  * @Since 10
>>
>> -phil.
>>
>>
>> On 4/20/17, 1:58 PM, Laurent Bourgès wrote:
>>
>> Hi Phil & Jim,
>>
>> Here is the updated webrev:
>> http://cr.openjdk.java.net/~lbourges/path2D/Path2D-8078192.2/
>>
>> Changes:
>> - trimToSize() return void
>> - fixed test + jtreg passed
>>
>> Bye,
>> Laurent
>>
>> 2017-04-20 21:30 GMT+02:00 Jim Graham :
>>
>>> Hi Laurent,
>>>
>>> The implementation looks good, except that the method chaining-style
>>> return value seems out of place here.  Similar trimToSize() methods in
>>> Collections return void and none of the other methods in this area use the
>>> method chaining paradigm.  In the interest of maintaining a common design
>>> theme throughout 2D this method should just return void.
>>>
>>> ...jim
>>>
>>>
>>> On 4/18/17 11:49 PM, Laurent Bourgès wrote:
>>>
 Hi,

 Here is a first attempt to propose a Path2D patch (based on JDK10):
 http://cr.openjdk.java.net/~lbourges/path2D/Path2D-8078192.0/

 JBS: https://bugs.openjdk.java.net/browse/JDK-8078192

 Please review the Path2D changes, notably the javadoc (english) and the
 modified Path2DCopyConstructor test which checks
 all public Path2D methods on concrete classes (Path2D.Float,
 Path2D.Double, GeneralPath) after calling path.trimToSize()

 Cheers,
 Laurent

>>>
>>
>>
>> --
>> --
>> Laurent Bourgès
>>
>>
>
>
> --
> --
> Laurent Bourgès
>



-- 
-- 
Laurent Bourgès


Re: [OpenJDK 2D-Dev] [10] RFR 8078192: Path2D storage trimming

2017-04-20 Thread Laurent Bourgès
Sorry for the typo, I added also a newline before @since:


2017-04-20 23:04 GMT+02:00 Philip Race :

>  You have a capital letter here and I think it must be lower case ..
>
>
> 2499  * @Since 10
>
> -phil.
>
>
> On 4/20/17, 1:58 PM, Laurent Bourgès wrote:
>
> Hi Phil & Jim,
>
> Here is the updated webrev:
> http://cr.openjdk.java.net/~lbourges/path2D/Path2D-8078192.2/
>
> Changes:
> - trimToSize() return void
> - fixed test + jtreg passed
>
> Bye,
> Laurent
>
> 2017-04-20 21:30 GMT+02:00 Jim Graham :
>
>> Hi Laurent,
>>
>> The implementation looks good, except that the method chaining-style
>> return value seems out of place here.  Similar trimToSize() methods in
>> Collections return void and none of the other methods in this area use the
>> method chaining paradigm.  In the interest of maintaining a common design
>> theme throughout 2D this method should just return void.
>>
>> ...jim
>>
>>
>> On 4/18/17 11:49 PM, Laurent Bourgès wrote:
>>
>>> Hi,
>>>
>>> Here is a first attempt to propose a Path2D patch (based on JDK10):
>>> http://cr.openjdk.java.net/~lbourges/path2D/Path2D-8078192.0/
>>>
>>> JBS: https://bugs.openjdk.java.net/browse/JDK-8078192
>>>
>>> Please review the Path2D changes, notably the javadoc (english) and the
>>> modified Path2DCopyConstructor test which checks
>>> all public Path2D methods on concrete classes (Path2D.Float,
>>> Path2D.Double, GeneralPath) after calling path.trimToSize()
>>>
>>> Cheers,
>>> Laurent
>>>
>>
>
>
> --
> --
> Laurent Bourgès
>
>


-- 
-- 
Laurent Bourgès


Re: [OpenJDK 2D-Dev] [10] RFR 8078192: Path2D storage trimming

2017-04-20 Thread Philip Race

 You have a capital letter here and I think it must be lower case ..


2499  * @Since 10

-phil.

On 4/20/17, 1:58 PM, Laurent Bourgès wrote:

Hi Phil & Jim,

Here is the updated webrev:
http://cr.openjdk.java.net/~lbourges/path2D/Path2D-8078192.2/ 



Changes:
- trimToSize() return void
- fixed test + jtreg passed

Bye,
Laurent

2017-04-20 21:30 GMT+02:00 Jim Graham >:


Hi Laurent,

The implementation looks good, except that the method
chaining-style return value seems out of place here.  Similar
trimToSize() methods in Collections return void and none of the
other methods in this area use the method chaining paradigm.  In
the interest of maintaining a common design theme throughout 2D
this method should just return void.

...jim


On 4/18/17 11:49 PM, Laurent Bourgès wrote:

Hi,

Here is a first attempt to propose a Path2D patch (based on
JDK10):
http://cr.openjdk.java.net/~lbourges/path2D/Path2D-8078192.0/


JBS: https://bugs.openjdk.java.net/browse/JDK-8078192


Please review the Path2D changes, notably the javadoc
(english) and the modified Path2DCopyConstructor test which checks
all public Path2D methods on concrete classes (Path2D.Float,
Path2D.Double, GeneralPath) after calling path.trimToSize()

Cheers,
Laurent




--
--
Laurent Bourgès


Re: [OpenJDK 2D-Dev] [10] RFR 8078192: Path2D storage trimming

2017-04-20 Thread Laurent Bourgès
Hi Phil & Jim,

Here is the updated webrev:
http://cr.openjdk.java.net/~lbourges/path2D/Path2D-8078192.2/

Changes:
- trimToSize() return void
- fixed test + jtreg passed

Bye,
Laurent

2017-04-20 21:30 GMT+02:00 Jim Graham :

> Hi Laurent,
>
> The implementation looks good, except that the method chaining-style
> return value seems out of place here.  Similar trimToSize() methods in
> Collections return void and none of the other methods in this area use the
> method chaining paradigm.  In the interest of maintaining a common design
> theme throughout 2D this method should just return void.
>
> ...jim
>
>
> On 4/18/17 11:49 PM, Laurent Bourgès wrote:
>
>> Hi,
>>
>> Here is a first attempt to propose a Path2D patch (based on JDK10):
>> http://cr.openjdk.java.net/~lbourges/path2D/Path2D-8078192.0/
>>
>> JBS: https://bugs.openjdk.java.net/browse/JDK-8078192
>>
>> Please review the Path2D changes, notably the javadoc (english) and the
>> modified Path2DCopyConstructor test which checks
>> all public Path2D methods on concrete classes (Path2D.Float,
>> Path2D.Double, GeneralPath) after calling path.trimToSize()
>>
>> Cheers,
>> Laurent
>>
>


-- 
-- 
Laurent Bourgès


Re: [OpenJDK 2D-Dev] [10] RFR 8078192: Path2D storage trimming

2017-04-20 Thread Jim Graham

Hi Laurent,

The implementation looks good, except that the method chaining-style return value seems out of place here.  Similar 
trimToSize() methods in Collections return void and none of the other methods in this area use the method chaining 
paradigm.  In the interest of maintaining a common design theme throughout 2D this method should just return void.


...jim

On 4/18/17 11:49 PM, Laurent Bourgès wrote:

Hi,

Here is a first attempt to propose a Path2D patch (based on JDK10):
http://cr.openjdk.java.net/~lbourges/path2D/Path2D-8078192.0/

JBS: https://bugs.openjdk.java.net/browse/JDK-8078192

Please review the Path2D changes, notably the javadoc (english) and the 
modified Path2DCopyConstructor test which checks
all public Path2D methods on concrete classes (Path2D.Float, Path2D.Double, 
GeneralPath) after calling path.trimToSize()

Cheers,
Laurent


Re: [OpenJDK 2D-Dev] [10] RFR 8078192: Path2D storage trimming

2017-04-20 Thread Laurent Bourgès
Hi Phil,

This can't be pushed without a CSR approval for JDK10 and that process won't
> be "up and running" for about another 10 days.
>

Ok, no problem. As the CCC was approved for JDK9, I wondered if that was
needed again.


>
> But before we get to that I wonder why we need to return Path2D when we
> aren't creating a new one .. there doesn't seem to be any value to it and
> it just potentially misleading a caller into thinking it has the cost of
> doing so.
>

I agree, it only provides a fluent interface and mimics the clone()
approach, but you're right, it is not really needed.
I will remove that and fix the test that uses that method:
testAddLine(pf.trimToSize(), isEmpty);

Laurent


> If any value is worth returning it might be a boolean to indicate whether
> any trimming
> actually occurred.
>
> -phil.
>
>
> On 4/20/17, 4:41 AM, Laurent Bourgès wrote:
>
> Phil,
>
> Do you approve the patch and the javadoc too ?
>
> If yes, could you push it for me into OpenJDK10 ?
>
> Laurent
>
>
> 2017-04-20 11:55 GMT+02:00 Prahalad Kumar Narayanan <
> prahalad.kumar.naraya...@oracle.com>:
>
>> Looks good to me.
>>
>> Thanks
>> Have a good day
>>
>> Prahalad N.
>>
>> --
>>
>> From: Laurent Bourgès [mailto:bourges.laur...@gmail.com]
>> Sent: Thursday, April 20, 2017 11:51 AM
>> To: Prahalad Kumar Narayanan
>> Cc: 2d-dev@openjdk.java.net
>> Subject: Re: [OpenJDK 2D-Dev] [10] RFR 8078192: Path2D storage trimming
>>
>> Hello,
>> Here is an updated webrev:
>> http://cr.openjdk.java.net/~lbourges/path2D/Path2D-8078192.1/
>> I fixed the copyright dates and the javadoc as you proposed (I initially
>> derived the javadoc from Vector.trimToSize)
>> Thanks,
>> Laurent
>>
>> 2017-04-20 5:46 GMT+02:00 Prahalad Kumar Narayanan <
>> prahalad.kumar.naraya...@oracle.com>:
>> Hello Laurent
>>
>> The code changes look good.
>> . The new method trimToSize effectively does the same operation
>> (Arrays.copyOf) as done by the copy contructors.
>> . The test file- Path2DCopyConstructor now tests after executing the
>> methods pathObj.trimToSize and pathObj.clone
>>
>> With regard to the text in Javadoc comments
>> . I felt, the first line clearly explains the operation -
>>"Trims the capacity of this Path2D instance to its current
>> size."
>> . The immediate following line is redundant and may not be required -
>>"If the capacity .. is larger than its current size... "
>> . The third line will be required till the end of the comments -
>>"An application can use ... minimize the storage of a
>> path. ... since 10"
>> . This is my observation. You could wait for other suggestions.
>>
>> Btw, the copyright year should be changed to 2017 in both Path2D.java and
>> the test file.
>> (Some use automation scripts that modify the year at the time of
>> check-in. If so, kindly ignore the observation)
>>
>> Thanks
>> Have a good day
>>
>> Prahalad N.
>>
>>
>> --
>>
>> Message: 1
>> Date: Wed, 19 Apr 2017 08:49:33 +0200
>> From: Laurent Bourg?s <bourges.laur...@gmail.com>
>> To: "2d-dev@openjdk.java.net" <2d-dev@openjdk.java.net>, Phil Race
>> <philip.r...@oracle.com>,  Jim Graham <james.gra...@oracle.com>,
>> Iris
>> Clark <iris.cl...@oracle.com>
>> Subject: [OpenJDK 2D-Dev] [10] RFR 8078192: Path2D storage trimming
>> Message-ID:
>> 

Re: [OpenJDK 2D-Dev] [10] RFR 8078192: Path2D storage trimming

2017-04-19 Thread Prahalad Kumar Narayanan
Hello Laurent

The code changes look good.
. The new method trimToSize effectively does the same operation 
(Arrays.copyOf) as done by the copy contructors.
. The test file- Path2DCopyConstructor now tests after executing the 
methods pathObj.trimToSize and pathObj.clone

With regard to the text in Javadoc comments
. I felt, the first line clearly explains the operation - 
   "Trims the capacity of this Path2D instance to its current size."
. The immediate following line is redundant and may not be required - 
   "If the capacity .. is larger than its current size... "
. The third line will be required till the end of the comments - 
   "An application can use ... minimize the storage of a path. ... 
since 10"
. This is my observation. You could wait for other suggestions.

Btw, the copyright year should be changed to 2017 in both Path2D.java and the 
test file.
(Some use automation scripts that modify the year at the time of check-in. If 
so, kindly ignore the observation)

Thanks
Have a good day

Prahalad N.


--

Message: 1
Date: Wed, 19 Apr 2017 08:49:33 +0200
From: Laurent Bourg?s 
To: "2d-dev@openjdk.java.net" <2d-dev@openjdk.java.net>, Phil Race
,  Jim Graham , Iris
Clark 
Subject: [OpenJDK 2D-Dev] [10] RFR 8078192: Path2D storage trimming
Message-ID: