Re: [mdr-users] method annotation with attribute that refers to another annotation type

Martin Matula <[email protected]> Thu, 21 Jul 2005 09:57:01 +0200
Newsgroups gmane.comp.java.netbeans.modules.mdr.user
Message-ID <[email protected]>
We had the following issue: 
http://www.netbeans.org/issues/show_bug.cgi?id=59747
But since it was marked as a q-build stopper (because of the NPE), we 
provided a quick-fix by returning an empty list for attribute values of 
annotations from class file and closed it yesterday.
So, now I have created a separate issue to track the correct 
implementation of annotations from class files: 
http://www.netbeans.org/issues/show_bug.cgi?id=61215
Regards,
Martin

Jeri Lockhart wrote:

> Hi Martin,
> Is there an IZ number that I can track for this?
> Thanks,
> --Jeri
>
> Martin Matula wrote:
>
>> Jeri Lockhart wrote:
>>
>>> class file (source is not available)
>>
>>
>>
>> OK, that explains it. In 4.1 we are not able to return attribute 
>> values from the class files. We are working on fixing this for NB 4.2.
>> Martin
>>
>>>
>>> --Jeri
>>>
>>> Martin Matula wrote:
>>>
>>>> Hi Jeri,
>>>>
>>>> Jeri Lockhart wrote:
>>>>
>>>>> I need to reverse engineer a method annotation that has an 
>>>>> attribute whose value is another annotation type, like this:
>>>>> @Function(result=@FunctionResult(displayName="String Concatenator" 
>>>>> ) )
>>>>>
>>>>> But I'm getting null back from annotation.getAttributeValues().
>>>>> How can I get the value of the "displayName" in the above example?
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Is the source code for the above available? Or are you trying to 
>>>> reverse engineer a class file?
>>>> Martin
>>>>
>>