Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 579382

Summary: Java Type filter broken (Java/Appearence/Type Filters
Product: [Eclipse Project] JDT Reporter: Stefan Lindner <lindner>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: blocker    
Priority: P3 CC: jjohnstn, lindner
Version: 4.23   
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
Whiteboard:

Description Stefan Lindner CLA 2022-03-23 06:14:31 EDT
I have a completely new installation o Eclipse for Java Developers.
Start it for the first time.
The file org.eclipse.jdt.ui.prefs looks like

    content_assist_proposals_background=255,255,255
    content_assist_proposals_foreground=0,0,0
    eclipse.preferences.version=1
    org.eclipse.jdt.ui.formatterprofiles.version=22
    spelling_locale_initialized=true
    typefilter_migrated_2=true
    useAnnotationsPrefPage=true
    useQuickDiffPrefPage=true

Then I open Preferences/Java/Appearence/Type Filters
Add my custom filter or check "org.graalvm.*"
Save and close Dialog
Re-open Dialog
Nothing has changed.
Now file org.eclipse.jdt.ui.prefs still looks like

    content_assist_proposals_background=255,255,255
    content_assist_proposals_foreground=0,0,0
    eclipse.preferences.version=1
    org.eclipse.jdt.ui.formatterprofiles.version=22
    spelling_locale_initialized=true
    typefilter_migrated_2=true
    useAnnotationsPrefPage=true
    useQuickDiffPrefPage=true

Then I close Eclipse, file org.eclipse.jdt.ui.prefs now looks like

    content_assist_proposals_background=255,255,255
    content_assist_proposals_foreground=0,0,0
    eclipse.preferences.version=1
    org.eclipse.jdt.ui.formatterprofiles.version=22
    org.eclipse.jdt.ui.typefilter.disabled=java.awt.*;java.rmi.*
    org.eclipse.jdt.ui.typefilter.enabled=com.sun.*;io.micrometer.shaded.*;    jdk.*;org.graalvm.*;sun.*;java.awt.List
    spelling_locale_initialized=true
    typefilter_migrated_2=true
    useAnnotationsPrefPage=true
    useQuickDiffPrefPage=true

It seems that filter "org.graalvm.*" is enabled

Opening the dialog agein and....
"org.graalvm.*" not checked an not ignored.

Eclipse seems to ignore every change and always uses its standard settings.
Comment 1 Jeff Johnston CLA 2022-03-23 11:27:13 EDT
Problems with the filter editing were discovered post RC2 and a fix is in place for the up-coming 4.24 M1

*** This bug has been marked as a duplicate of bug 579320 ***