Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-44

Classes declared in JShell are not avaiable in code completion

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 9.0
    • 9.0
    • java - JShell
    • None

    Description

      Classes declared inside JShell are not available in code completion in the same JShell session.

      Steps to reproduce:

      1. Start JShell
      2. Declare new class "class MyClass {}" and confirm by enter
        -> class is declared
      3. type "My" and invoke code completion
        -> the declared class is not provided by code completion

      Product Version: NetBeans IDE Dev (Build 201707181148)
      Java: 9; Java HotSpot(TM) 64-Bit Server VM 9+178
      Runtime: Java(TM) SE Runtime Environment 9+178
      System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
      User directory: C:\Users\jprox\AppData\Roaming\NetBeans\dev
      Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\dev

      Attachments

        Activity

          People

            sdedic Svatopluk Dedic
            jiriprox Jiri Prox
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: