logo       

Re: Bug Report (#292): Java Annotations not fully available at runtime: msg#00525

lang.scala

Subject: Re: Bug Report (#292): Java Annotations not fully available at runtime


I also saw the same issue trying to write a Junit 4 test in scala.
Method.getAnnotation(org.junit.Test.class) was returning null hence junit
didn't see any tests.


John D. Heintz-3 wrote:
>
> Hello again,
>
> Is there a better place to discuss a contributed bug report? I like the
> list
> to be the focus of discussion, but didn't really want to just comment on
> an
> uninteresting bug here. I couldn't find a comment or feedback on the page
> though...
>
> My point: The getAnnotation is still failing for me even after I tried
> changing Annotation names (to avoid potential class with Some).
>
> I'm running inside Eclipse with Scala plugin version 2.4.9.
>
> Any ideas? Is it really just broken for me?
>
> Thanks,
> John Heintz
>
> On 1/12/07, John D. Heintz <jheintz@xxxxxxxxx> wrote:
>>
>> Hello all,
>>
>> I couldn't figure out how to attach files to a bug report so I'm mailing
>> two Eclipse projects in a zip file. Hope that's not a problem (let me
>> know
>> if it is, of course)
>>
>> The bug report:
>> http://scala-webapps.epfl.ch/bugtracking/contribs/display.do?id=292
>>
>> The short story is that
>> field.getAnnotation(Some.class)
>>
>> returns null, instead of the Annotation object.
>>
>> I used the target:jvm-1.5 option, and indeed the Annotation is found if
>> field.getDeclaredAnnotations() is used instead...
>>
>> John
>>
>> --
>> John D. Heintz
>> Principal Consultant
>> New Aspects of Software
>> Austin, TX
>> (512) 633-1198
>>
>
>
>
> --
> John D. Heintz
> Principal Consultant
> New Aspects of Software
> Austin, TX
> (512) 633-1198
>
>

--
View this message in context:
http://www.nabble.com/Bug-Report-%28-292%29%3A-Java-Annotations-not-fully-available-at-runtime-tf2967366.html#a8723542
Sent from the Scala mailing list archive at Nabble.com.




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise