When I try to use the standar output the next instruction crash my
application:



I have the next code:

                methodsObject1=this.getClass().getDeclaredMethods();

                for(Method method:methodsObject1){
                        
System.out.println(method.isAnnotationPresent(Importance.class));
                        
if(method.isAnnotationPresent(Importance.class)&&method.getName
().startsWith("get")){

                          }
                  }

where Importance is:

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface Importance {
        double[] values();
}


On 17 jul, 20:31, fadden <[email protected]> wrote:
> On Jul 17, 10:55 am, Sergio Ciruela <[email protected]> wrote:
>
> > I am using Android 1.5 to develope an application with reflection and
> > annotations.
>
> > I have the instructuin method.isAnnotationPresent(importance.class)
> > and the application have problems because I have tryed to print in the
> > standart output the result of this instruction and the application
> > seems that crash. The exit is the next:
>
> > 07-17 17:43:26.023: INFO/System.out(751): java.lang.reflect.Method
> > 07-17 17:43:26.165: INFO/DEBUG(539): *** *** *** *** *** *** *** ***
> > *** *** *** *** *** *** *** ***
>
> That's not good.  Do you have an APK or bit of source that
> demonstrates the problem?  If so, please file a bug on b.android.com
> and include it.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to