This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 115091 [details] sample classes When generating doc block for a method returning property containing array of objects does not recognize returned type. To reproduce: Create classes class MyCollection and ArrayDereferencing. In class ArrayDereferencing define private property myCollection. Create doc block for property and set type to MyCollection[]. Add method getMyCollection returning myCollection to the same class. Generate doc block for method getMyCollection. Actual result: Type of returned value is not set: @return type Expected result: Set type to returned property type: @return MyCollection[]
It's not supported...it should be an enhancement.
(In reply to comment #1) > It's not supported...it should be an enhancement. OK. From the user perspective in cases similar to this it's hard to distinguish if functionality is not supported or there is a problem in implemented functionality. My reasoning was that both returned arrays and objects will be recognized therefore @return MyCollection[] notation should be recognized as well. Bottom line is that I don't care if it is a enhancement or a bug as long as the problem is going to be resolved. :) Of course I understand that you do care.
Yes I understand :) I'll try to solve it, but as I remember, it's maybe not so simple as it looks like...but mayby I'm wrong :)
Trying to improve it a bit...
Created attachment 116082 [details] Starting patch. First patch...not all features available...just start ;)
Reproductible in 8.2rc / Dev 201609210002