logo       

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

lang.scala

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

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
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise