Re: RFR: JDK-8304036: Use CommandLine class from shared module [v2]

2023-04-22 Thread Christian Stein
On Fri, 21 Apr 2023 21:42:58 GMT, Mandy Chung  wrote:

>> Christian Stein has updated the pull request with a new target base due to a 
>> merge or a rebase. The incremental webrev excludes the unrelated changes 
>> brought in by the merge/rebase. The pull request contains three additional 
>> commits since the last revision:
>> 
>>  - Merge branch 'openjdk:master' into 
>> JDK-8304036-reusable-command-line-part-2
>>  - Add missing import
>>  - JDK-8304036: Use CommandLine class from shared module
>
> src/jdk.internal.opt/share/classes/module-info.java line 33:
> 
>> 31: module jdk.internal.opt {
>> 32: exports jdk.internal.joptsimple to jdk.jlink, jdk.jshell;
>> 33: exports jdk.internal.opt to jdk.compiler, jdk.jartool, jdk.javadoc, 
>> jdk.jlink, jdk.jpackage;
> 
> Nit: line break at each module is easier to read and avoid long line like:
>
> https://github.com/openjdk/jdk/blob/master/src/java.base/share/classes/module-info.java#L149

Yes, that's much nicer. Will reflow all other export directives as well.

-

PR Review Comment: https://git.openjdk.org/jdk/pull/12997#discussion_r1174387317


Re: RFR: JDK-8304036: Use CommandLine class from shared module [v2]

2023-04-21 Thread Mandy Chung
On Fri, 21 Apr 2023 21:14:00 GMT, Christian Stein  wrote:

>> This pull request addresses the open ends left by 
>> [JDK-8236919](https://bugs.openjdk.org/browse/JDK-8236919):
>> - #11272
>> 
>> Changes:
>> - [x] Extend list of targeted exports of `jdk.internal.opt/jdk.internal.opt` 
>> to `jdk.compiler` and `jdk.javadoc`
>> - [x] Use shared `CommandLine.java` in `jdk.compiler` module
>> - [x] Use shared `CommandLine.java` in `jdk.javadoc` module
>> - [x] Remove `CommandLine.java` from `jdk.compiler` module
>
> Christian Stein has updated the pull request with a new target base due to a 
> merge or a rebase. The incremental webrev excludes the unrelated changes 
> brought in by the merge/rebase. The pull request contains three additional 
> commits since the last revision:
> 
>  - Merge branch 'openjdk:master' into JDK-8304036-reusable-command-line-part-2
>  - Add missing import
>  - JDK-8304036: Use CommandLine class from shared module

src/jdk.internal.opt/share/classes/module-info.java line 33:

> 31: module jdk.internal.opt {
> 32: exports jdk.internal.joptsimple to jdk.jlink, jdk.jshell;
> 33: exports jdk.internal.opt to jdk.compiler, jdk.jartool, jdk.javadoc, 
> jdk.jlink, jdk.jpackage;

Nit: line break at each module is easier to read and avoid long line like:
   
https://github.com/openjdk/jdk/blob/master/src/java.base/share/classes/module-info.java#L149

-

PR Review Comment: https://git.openjdk.org/jdk/pull/12997#discussion_r1174181399


Re: RFR: JDK-8304036: Use CommandLine class from shared module [v2]

2023-04-21 Thread Jonathan Gibbons
On Fri, 21 Apr 2023 21:14:00 GMT, Christian Stein  wrote:

>> This pull request addresses the open ends left by 
>> [JDK-8236919](https://bugs.openjdk.org/browse/JDK-8236919):
>> - #11272
>> 
>> Changes:
>> - [x] Extend list of targeted exports of `jdk.internal.opt/jdk.internal.opt` 
>> to `jdk.compiler` and `jdk.javadoc`
>> - [x] Use shared `CommandLine.java` in `jdk.compiler` module
>> - [x] Use shared `CommandLine.java` in `jdk.javadoc` module
>> - [x] Remove `CommandLine.java` from `jdk.compiler` module
>
> Christian Stein has updated the pull request with a new target base due to a 
> merge or a rebase. The incremental webrev excludes the unrelated changes 
> brought in by the merge/rebase. The pull request contains three additional 
> commits since the last revision:
> 
>  - Merge branch 'openjdk:master' into JDK-8304036-reusable-command-line-part-2
>  - Add missing import
>  - JDK-8304036: Use CommandLine class from shared module

Marked as reviewed by jjg (Reviewer).

-

PR Review: https://git.openjdk.org/jdk/pull/12997#pullrequestreview-1396422793


Re: RFR: JDK-8304036: Use CommandLine class from shared module [v2]

2023-04-21 Thread Christian Stein
> This pull request addresses the open ends left by 
> [JDK-8236919](https://bugs.openjdk.org/browse/JDK-8236919):
> - #11272
> 
> Changes:
> - [x] Extend list of targeted exports of `jdk.internal.opt/jdk.internal.opt` 
> to `jdk.compiler` and `jdk.javadoc`
> - [x] Use shared `CommandLine.java` in `jdk.compiler` module
> - [x] Use shared `CommandLine.java` in `jdk.javadoc` module
> - [x] Remove `CommandLine.java` from `jdk.compiler` module

Christian Stein has updated the pull request with a new target base due to a 
merge or a rebase. The incremental webrev excludes the unrelated changes 
brought in by the merge/rebase. The pull request contains three additional 
commits since the last revision:

 - Merge branch 'openjdk:master' into JDK-8304036-reusable-command-line-part-2
 - Add missing import
 - JDK-8304036: Use CommandLine class from shared module

-

Changes:
  - all: https://git.openjdk.org/jdk/pull/12997/files
  - new: https://git.openjdk.org/jdk/pull/12997/files/405091f9..7e05ad8d

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk=12997=01
 - incr: https://webrevs.openjdk.org/?repo=jdk=12997=00-01

  Stats: 375645 lines in 3690 files changed: 296166 ins; 52578 del; 26901 mod
  Patch: https://git.openjdk.org/jdk/pull/12997.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/12997/head:pull/12997

PR: https://git.openjdk.org/jdk/pull/12997