frkinta opened a new issue, #5330:
URL: https://github.com/apache/netbeans/issues/5330

   ### Apache NetBeans version
   
   Apache NetBeans 16
   
   ### What happened
   
   In the example bolow, when editing`myClass`, if you try to fix import by 
hitting "Ctrl+Shift+I", the editor will not propose to add the missing class : 
`use Test\Services\ApiService;`. 
   This happen even when imported class are in different namespaces
   
   ### How to reproduce
   
   ```PHP
   <?php
   
   namespace Test\Services;
   
   class ExtendedApiService{};
   ```
   ```PHP
   <?php
   
   namespace Test\Services;
   
   class ApiService{};
   ```
   
   ```PHP
   <?php
   
   namespace Test;
   
   use Test\Services\ExtendedApiService;
   
   class myClass
   {
   
       public function __construct(
           private ExtendedApiService $ExtendedApiService,
           private ApiService $ApiService,            
       )
       {
       }
   
   }
   
   
   ```
   
   
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   ubuntu 22.04
   
   ### JDK
   
   OpenJDK Runtime Environment (build 17.0.5+8-Ubuntu-2ubuntu122.04) OpenJDK 
64-Bit Server VM (build 17.0.5+8-Ubuntu-2ubuntu122.04, mixed mode, sharing)
   
   ### Apache NetBeans packaging
   
   Apache NetBeans provided installer
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   No
   
   ### Code of Conduct
   
   Yes


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
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

Reply via email to