|
Re: Bug Report (#292): Java Annotations not fully available at runtime: msg#00525lang.scala
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> |
|---|---|---|
| Previous by Date: | Scala IRC update: 00525, Tony Morris |
|---|---|
| Next by Date: | "What non-Java language are you most interested in running on the JVM?" poll: 00525, Tomi Maila |
| Previous by Thread: | Re: Bug Report (#292): Java Annotations not fully available at runtimei: 00525, John D. Heintz |
| Next by Thread: | Which Linux distros have Scala?: 00525, Lex Spoon |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |