Bug 573911 - Code kill the editor functions
Summary: Code kill the editor functions
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.19   Edit
Hardware: PC Windows 10
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-02 02:57 EDT by Istvan Kalacska CLA
Modified: 2023-05-26 06:17 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Istvan Kalacska CLA 2021-06-02 02:57:30 EDT
Hi,

The listFile of Files has a filter option. This ooption (File::isFile) kills the Eclipse editor functions.

Code example:
var listOfFiles = new ArrayList<File>(Arrays.asList(directoryPath.toFile().listFiles(File::isFile)));



-- Configuration Details --
Product: Eclipse IDE 4.19.0.20210311-1200 (org.eclipse.epp.package.jee.product)Installed Features:
 org.eclipse.jdt 3.18.700.v20210303-1800
Versioning Plugin:
 org.eclipse.platform 4.19.0.v20210303-1800
Comment 1 Jeff Johnston CLA 2021-06-02 13:09:01 EDT
Running the code (adding a Path directoryPath= Path.of("blah") statement ahead of the code) also fails on Linux.  The hover help stops working.  Changing File::isFile to (f)->f.isFile() works around the issue.

This may be related to:

Bug 567218

https://bugs.eclipse.org/bugs/show_bug.cgi?id=567218

whereby method references are causing issues with completion and if true, this bug should be moved to JDT Core.
Comment 2 Eclipse Genie CLA 2023-05-26 06:17:56 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.