NReib opened a new issue, #8286:
URL: https://github.com/apache/netbeans/issues/8286
### Apache NetBeans version
Apache NetBeans 25 release candidate
### What happened
The following 2 enums should demonstrate the Problem
```
namespace test;
enum TestA{
case X;
public function get(string $param): string{
return '';
}
}
```
```
namespace test;
enum TestB{
case X;
public function get(): string{
return '';
}
}
```
...
```\test\TestA::X->get('xxx');```
Now 2 things are wrong: we cannot go to declaration of method "get" and Ctrl
+ P does not work there either (Show param list).
Apparently in VariousUtils.java extractVariableTypeFromVariableBase the
unqualified Classname is determined. If we change it to qualified Name the
behaviour will be as expected. For StaticMethodInvocation the Qualified name is
already used, so I assume there would be no harm in doing the same here.
### Language / Project Type / NetBeans Component
_No response_
### How to reproduce
x
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
Mageia
### JDK
x
### Apache NetBeans packaging
Apache NetBeans binary zip
### Anything else
_No response_
### Are you willing to submit a pull request?
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