[
https://issues.apache.org/jira/browse/NETBEANS-4652?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Junichi Yamamoto reassigned NETBEANS-4652:
------------------------------------------
Assignee: Junichi Yamamoto
> Php namespace confusion
> -----------------------
>
> Key: NETBEANS-4652
> URL: https://issues.apache.org/jira/browse/NETBEANS-4652
> Project: NetBeans
> Issue Type: Bug
> Components: php - Editor
> Affects Versions: 12.0
> Reporter: flexJoly
> Assignee: Junichi Yamamoto
> Priority: Major
> Attachments: image-2020-07-28-21-17-50-896.png,
> image-2020-07-28-21-21-31-086.png
>
>
> *Issue*
> When two namespaces 'look-alike' and have the same classname, netbeans get
> confused ;)
>
> To reproduce make two classes like this.
>
> {code:php}
> namespace rhAdmin\sales\order\record;
> use rh\data\record\ListFactory as rhBase;
> class ListFactory extends rhBase {
> }
> {code}
>
> {code:php}
> namespace sales\order\record;
> use rhAdmin\sales\order\record\ListFactory as rhBase;
> class ListFactory extends rhBase {
> }{code}
>
> In the second class try to navigate with ctrl-click to
> rhAdmin\....\ListFactory
> Netbeans will go to the current class definition. Because as you can see in
> the screenshot below, netbeans does see the parent-class, but its first guess
> is the current class. I think this is because the namespaces are almost the
> samen.
> !image-2020-07-28-21-17-50-896.png|width=477,height=296!
>
> It even happens that when typing fast and trusting the codecompletion,
> netbeans convert the use statement to: "use ListFactory as rhBase;"
> Even when the rhAdmin-namespace-path is fully typed!!
> !image-2020-07-28-21-21-31-086.png|width=478,height=347!
>
>
> Maybe this issue is related to my other report:
> https://issues.apache.org/jira/browse/NETBEANS-4647
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists