Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8158738

jshell tool: Save does not affect jshell if started from another editor

    Details

    • Subcomponent:
    • Resolved In Build:
      b134
    • CPU:
      x86_64
    • OS:
      linux
    • Verification:
      Verified

      Description

      FULL PRODUCT VERSION :
      JDK1.9b120

      ADDITIONAL OS VERSION INFORMATION :
      4.4.0-22-generic #40-Ubuntu SMP Thu May 12 22:03:46 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux


      EXTRA RELEVANT SYSTEM CONFIGURATION :
      NetBeans Development version, build 20160602

      A DESCRIPTION OF THE PROBLEM :
      If jshell is started from within NetBeans terminal window and the editor is set to NetBeans, then saving the edited statement list is ignored by the jshell

      Unclear whether this is a NetBeans or jshell issue. I filed the same problem to NB
      https://netbeans.org/bugzilla/show_bug.cgi?id=262315

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      STEPS:
      1* download JDK 9 (actual: build 120)
      2* launch jshell
      3* /set editor netbeans-dev-201606020002/bin/netbeans (or appropriate path)
      4* enter Java statement
      5* /edit
      --> Netbeans will be started if not yet running, Java statements of jshell session will be displayed
      6* modify or add statement(s)
      7* press ctrl+S to save
      --> jshell uses the modified commands
      8* open terminal window (window, ide tools, terminal)
      9* perform steps 2* to 7* using the terminal window
      --> jshell ignores the modified data

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      jshell accepts the modified statements
      ACTUAL -
      jshell ignores the edited statements

      REPRODUCIBILITY :
      This bug can be reproduced always.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rfield Robert Field
                Reporter:
                webbuggrp Webbug Group
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: