Re: RFR (T): 8242846: removed an empty file test/jdk/tools/jlink/plugins/OrderResourcesPluginTest.java

2020-04-20 Thread Ao Qi



On 2020/4/20 下午9:27, Alan Bateman wrote:

On 20/04/2020 11:32, sundararajan.athijegannat...@oracle.com wrote:

Hi Alan,

I don't remember it now. Likely a mistake. The changeset

http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/a066fe7b1b42

has that file. Perhaps it may be useful to restore & check if the 
test passes.
Yes. I think it was the only test for this jlink option so let's bring 
it back or replace it.




I think the test should be brought back. I restored the test and it 
didn't pass. Here is the diff against the original test[1]: 
http://cr.openjdk.java.net/~aoqi/8242846/diff.01, and the new webrev is 
http://cr.openjdk.java.net/~aoqi/8242846/webrev.01/ . I'm not familiar 
with this field, so I am not sure I fix this rightly.



Cheers,
Ao Qi

[1] 
http://hg.openjdk.java.net/jdk9/jdk9/jdk/raw-file/decf1acca62d/test/tools/jlink/plugins/OrderResourcesPluginTest.java




-Alan.




Re: RFR (T): 8242846: removed an empty file test/jdk/tools/jlink/plugins/OrderResourcesPluginTest.java

2020-04-20 Thread Ao Qi

Hi Alan and Sundar,


Thanks for the advice. I will take a look at if the test should be 
brought back.



Cheers,

Ao Qi


On 2020/4/20 下午6:32, sundararajan.athijegannat...@oracle.com wrote:

Hi Alan,

I don't remember it now. Likely a mistake. The changeset

http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/a066fe7b1b42

has that file. Perhaps it may be useful to restore & check if the test 
passes.


Thanks,

-Sundar

On 18/04/20 3:32 pm, Alan Bateman wrote:


Sundar - do you recognize this? I assume truncating this test to 0 
bytes was a mistake but I can't tell if the test should be brought 
back or not (to ensure that`jlink --order-resources` is tested).


-Alan

On 17/04/2020 11:34, Ao Qi wrote:

Hi,

The original email is waiting for moderator approval. Subscribed to
jigsaw-dev and resent the RFR (cc'ed core-libs-dev).

Thanks,
Ao Qi

On Wed, Apr 15, 2020 at 10:11 PM Ao Qi  wrote:

Hi all,

test/jdk/tools/jlink/plugins/OrderResourcesPluginTest.java was changed
to an empty file by JDK-8162538, but not removed. I think we should
remve this file.

JBS: https://bugs.openjdk.java.net/browse/JDK-8242846
webrev: http://cr.openjdk.java.net/~aoqi/8242846/webrev.00/

Thanks,
Ao Qi






Re: RFR (T): 8243117: Cleanups in Java code of module jdk.jlink

2020-04-20 Thread Alan Bateman

On 19/04/2020 20:08, Langer, Christoph wrote:

Hi Alan,


Looks okay to me too, except @SuppressWarnings("unused") looks strange,
is that an Eclipse compiler warning name?

Yes, it comes from Eclipse, probably only used by its compiler. The private 
field EXIT_SYSERR doesn't seem to be used. Alternatively, I could comment it 
out? Or remove it?

The jimage tool went through a few iterations and I think it's just a 
left over and should be okay to remove.


-Alan


Re: RFR (T): 8242846: removed an empty file test/jdk/tools/jlink/plugins/OrderResourcesPluginTest.java

2020-04-20 Thread Alan Bateman

On 20/04/2020 11:32, sundararajan.athijegannat...@oracle.com wrote:

Hi Alan,

I don't remember it now. Likely a mistake. The changeset

http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/a066fe7b1b42

has that file. Perhaps it may be useful to restore & check if the test 
passes.
Yes. I think it was the only test for this jlink option so let's bring 
it back or replace it.


-Alan.


Re: RFR (T): 8242846: removed an empty file test/jdk/tools/jlink/plugins/OrderResourcesPluginTest.java

2020-04-20 Thread sundararajan . athijegannathan

Hi Alan,

I don't remember it now. Likely a mistake. The changeset

http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/a066fe7b1b42

has that file. Perhaps it may be useful to restore & check if the test 
passes.


Thanks,

-Sundar

On 18/04/20 3:32 pm, Alan Bateman wrote:


Sundar - do you recognize this? I assume truncating this test to 0 
bytes was a mistake but I can't tell if the test should be brought 
back or not (to ensure that`jlink --order-resources` is tested).


-Alan

On 17/04/2020 11:34, Ao Qi wrote:

Hi,

The original email is waiting for moderator approval. Subscribed to
jigsaw-dev and resent the RFR (cc'ed core-libs-dev).

Thanks,
Ao Qi

On Wed, Apr 15, 2020 at 10:11 PM Ao Qi  wrote:

Hi all,

test/jdk/tools/jlink/plugins/OrderResourcesPluginTest.java was changed
to an empty file by JDK-8162538, but not removed. I think we should
remve this file.

JBS: https://bugs.openjdk.java.net/browse/JDK-8242846
webrev: http://cr.openjdk.java.net/~aoqi/8242846/webrev.00/

Thanks,
Ao Qi