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

Bug 340126

Summary: [open type] Open Type interprets package pattern "." as ".*"
Product: [Eclipse Project] JDT Reporter: Dani Megert <daniel_megert>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: stalebug

Description Dani Megert CLA 2011-03-16 05:18:56 EDT
Package matching worked fine in 3.0 then not worked at all in 3.1 and now (3.7 M6) does too much: "." in the package pattern is interpreted as ".*", where * matches any package segment(s).

Test Case 1:
1. open type
2. type "java.lang.A"
==> matches types like java.lang.reflect.A*

Test Case 2:
1. open type
2. type "j.r.A"
==> it matches types like java.lang.reflection.A*

I would expect that a package pattern without explicit '*' only expands one package segment i.e. j.l.A would only match packages with two segments, the first starting with 'j' and the second with 'l'.
Comment 1 Eclipse Genie CLA 2020-05-13 07:11:15 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. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. 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.