You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Junichi Yamamoto (Jira)" <ji...@apache.org> on 2020/07/28 22:23:00 UTC
[jira] [Updated] (NETBEANS-4652) Php namespace confusion
[ https://issues.apache.org/jira/browse/NETBEANS-4652?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Junichi Yamamoto updated NETBEANS-4652:
---------------------------------------
Component/s: (was: cnd - Code Completion)
> 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
> 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: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists