From robert.field at oracle.com Fri Dec 1 00:49:17 2017 From: robert.field at oracle.com (Robert Field) Date: Thu, 30 Nov 2017 16:49:17 -0800 Subject: (copy editors) RFR 8179858: jshell tool: sync nomenclature from reference to online /help Message-ID: <5A20A70D.10408@oracle.com> This proceeded from a bug to sync /help with the nomenclature in the jshell Tool Reference. In the process, fresh eyes also addressed other glaring issues in /help. Please review, comments welcome from all. Bug: https://bugs.openjdk.java.net/browse/JDK-8179858 Webrev: http://cr.openjdk.java.net/~rfield/8179858v0.webrev/ Thanks, Robert From jan.lahoda at oracle.com Mon Dec 4 17:35:44 2017 From: jan.lahoda at oracle.com (Jan Lahoda) Date: Mon, 4 Dec 2017 18:35:44 +0100 Subject: RFR 8191455/8191456: StartOptionTest/ToolProviderTest.testExitCode() and ExternalEditorTest.testStatementMush() failed In-Reply-To: <5A18D236.1040302@oracle.com> References: <5A18D236.1040302@oracle.com> Message-ID: <5A258770.1040903@oracle.com> Seems OK to me. Jan On 25.11.2017 03:15, Robert Field wrote: > Please review. > > Bugs: > > 8191455: jdk/jshell/StartOptionTest.java and > jdk/jshell/ToolProviderTest.java failed after changeset e0f08a > https://bugs.openjdk.java.net/browse/JDK-8191455 > These saw failures on Windows due to line-end mismatches. Fixed by > normalizing line-ends. > > 8191456: jdk/jshell/ExternalEditorTest.java testStatementMush(): > failure > https://bugs.openjdk.java.net/browse/JDK-8191456 > The expected output is not seen, not reproducible locally, Disabled > the specific test and filed issue to enable. > > This includes undoing: > > 8191631: Problem list jdk/jshell/StartOptionTest.java, > jdk/jshell/ToolProviderTest.java and jdk/jshell/ExternalEditorTest.java > temporarily > https://bugs.openjdk.java.net/browse/JDK-8191631 > > Webrev: > > http://cr.openjdk.java.net/~rfield/8191455v0.webrev/ > > Thanks, > Robert > From daniel.smith at oracle.com Mon Dec 4 20:11:00 2017 From: daniel.smith at oracle.com (Dan Smith) Date: Mon, 4 Dec 2017 13:11:00 -0700 Subject: (copy editors) RFR 8179858: jshell tool: sync nomenclature from reference to online /help In-Reply-To: <5A20A70D.10408@oracle.com> References: <5A20A70D.10408@oracle.com> Message-ID: Didn't find any serious problems, but here's a list of minor tweaks. ?Dan ----- --class-path, --module-path: I don't understand the purpose of the '*' at the end, but I assume it's intentional. "load-file": I'd tend to avoid hyphens in compound nouns and stick to "load file", but apparently conventions vary: https://en.oxforddictionaries.com/punctuation/hyphen "command-line": Same "For Linux and macOS": are there other supported Unix OSes? For comparison, here's the Javadoc for System.lineSeparator: "On UNIX systems, it returns "\n"; on Microsoft Windows systems it returns "\r\n". "A path is the directories and archives to search" --> "A path **lists** the directories and archives to search" "module-private package": I don't know my Jigsaw terminology very well, but this may not be a standard term. javac -X says "Specify a package to be considered as exported from its defining module" "Show the snippets, prefaced with the snippet ID": either "each snippet" or "their snippet IDs" /save: inconsistent use of periods (this comment may apply more broadly?should do a quick pass to check) /types: An enum is a kind of class, so it's not necessary to list it separately (and it makes me think "what about annotation types?"). Just "classes and interfaces" is fine. I'd also replace "types" with "type declarations" throughout, because "type" is such an overloaded term. "since jshell was entered, or a /reset, or /reload command was executed" --> "since jshell was entered, or a /reset or /reload command was executed" "Errors will display" --> "Errors will be displayed" "the snippets will be replayed -- the replay is not shown, however, errors will display" --> "the snippits will be replayed. The replay is not shown, **but any** errors will *be displayed*." ID ranges: these are listed everywhere as a distinct variant, but help.id suggests that they can appear within a list, interleaved with non-ranges. Which is it? (If the latter, maybe don't mention ranges at all for /vars, etc., and explain elsewhere that an "ID" may be a range of simple IDs. Or, if that's too obscure, try "specified snippet ID or range of snippet IDs" in /vars, etc. Or just give the list variant in /var, etc., more details about ranges.) "when the jshell is started" "when jshell is restarted" "since this jshell was launched" "debugging of the jshell" "information about jshell": Need to decide is "jshell" refers to the command, or if it's another word for "shell" "These options configure the evaluation context, they can be specified" --> "These options configure the evaluation context. They can be specified" "A list of directories, each directory is a directory of modules." --> "A list of directories, **where** each directory **contains** modules" "quoted strings printed as input prompts; Both" -- make that a period From robert.field at oracle.com Tue Dec 5 01:06:28 2017 From: robert.field at oracle.com (Robert Field) Date: Mon, 04 Dec 2017 17:06:28 -0800 Subject: (copy editors) RFR 8179858: jshell tool: sync nomenclature from reference to online /help In-Reply-To: References: <5A20A70D.10408@oracle.com> Message-ID: <5A25F114.6010309@oracle.com> Very helpful. See questions inline. On 12/04/17 12:11, Dan Smith wrote: > Didn't find any serious problems, but here's a list of minor tweaks. > > ?Dan > > ----- > > --class-path, --module-path: I don't understand the purpose of the '*' at the end, but I assume it's intentional. It was a reference to the path note below it. Clearly didn't work. Will remove. > > "load-file": I'd tend to avoid hyphens in compound nouns and stick to "load file", but apparently conventions vary: > https://en.oxforddictionaries.com/punctuation/hyphen I choose hyphen so that in in the syntax "Usage: jshell