title: Why I can't detect annotations from a loaded java class?
body: <p>I have a plugin within i want to access to the class list of my model package from my maven project. Until now i just did this to load the classes into the plugin :</p>
  
  <pre><code>try {
              runtimeClasspathElements = project.getRuntimeClasspathElements();
  
          } catch (DependencyResolutionRequiredException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }
          URL[] runtimeUrls = new URL[runtimeClasspathElements.size()];
          for (int i = 0; i &lt; runtimeClasspathElements.size(); i++) {
            String element = (String) runtimeClasspathElements.get(i);
            try {
              runtimeUrls[i] = new File(element).toURI().toURL();
          } catch (MalformedURLException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }
  
  newLoader = new URLClassLoader(runtimeUrls,
        Thread.currentThread().getContextClassLoader());
        try {          class=newLoader.loadClass("com.pkl.bc.personnaldata.model.Personne");
  
      if(class!=null)
          System.out.println(class.getCanonicalName());
      } catch (ClassNotFoundException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      }
  </code></pre>
  
  <p>Until here i can see the full name of my class.  </p>
  
  <pre><code>System.out.println(class.getDeclaredFields());
  System.out.println(class.isAnnotationPresent(EditColumn.class));
  for (Field f : class.getDeclaredFields()) {
  
                  EditColumn v = f.getAnnotation(EditColumn.class);
                  if (v != null) {
  
                      System.out.println(v.tableName());
                      System.out.println(v.oldName());
  
                  }
  
              }
  </code></pre>
  
  <p>but i don't get anything, here is the output :</p>
  
  <pre><code>[Ljava.lang.reflect.Field;@398f573b
  false
  </code></pre>
  
  <p>I also tried to use refelctions</p>
  
  <pre><code>Reflections reflections = new Reflections("com.pkl.bc.personnaldata.model.Personne");
  
            Set&lt;Field&gt; annotated = reflections.getFieldsAnnotatedWith(EditColumn.class);
  
            System.out.println(annotated);
  </code></pre>
  
  <p>this give me an empty list.
  here is my annotation :</p>
  
  <pre><code>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.FIELD})
  public @interface EditColumn {
  
      String oldName() default "";
  
      String newName() default "";
  
      String tableName() default "";
  }
  </code></pre>
  
  <p>the annotated field :</p>
  
  <pre><code>@EditColumn(newName = "main_adress", oldName = "adress", tableName = "Personne")
      private String main_adress;
  </code></pre>