This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 260756 - [JShell] Selecting class from code completion doesn't import it
Summary: [JShell] Selecting class from code completion doesn't import it
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: JShell (show other bugs)
Version: 8.2
Hardware: PC Linux
: P2 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-10 07:37 UTC by Jaroslav Tulach
Modified: 2016-10-07 08:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2016-05-10 07:37:27 UTC
When coding in normal Java, I am used to type a name of a class

ByteArrayInputS|

invoke code completion and select "ByteArrayInputStream" - the class is then autocompleted but also imported automatically.

when working with JShell - the class is only autocompleted - and that is close to useless. Because such line cannot be executed.

Either import the class or autocomplete it with FQN.
Comment 1 Jaroslav Tulach 2016-06-02 13:52:45 UTC
This problem is very annoying and renders the whole JShell support almost unusable.
Comment 2 Svata Dedic 2016-06-16 11:12:55 UTC
Should be fixed in jet-mai#1cc62269bea6
Comment 3 Jaroslav Tulach 2016-06-29 07:13:10 UTC
I can confirm the import works. Thanks.
Comment 4 Svata Dedic 2016-10-07 08:47:41 UTC
Moving to an appropriate component