Community
Participate
Working Groups
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
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.
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.