Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 340126 - [open type] Open Type interprets package pattern "." as ".*"
Summary: [open type] Open Type interprets package pattern "." as ".*"
Status: CLOSED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-16 05:18 EDT by Dani Megert CLA
Modified: 2020-05-13 07:11 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.