title: Calling Java method from JSNI
body: <p>I have a class, for instance :</p>
  
  <pre><code>public class Person {
  
      private String name;
  
      public Person(String name) {
          this.name = name;
      }
  
      public void sayName() {
          System.out.println(name);
      }
  }
  </code></pre>
  
  <p>Does it would be work if i call method like this (or where my ingorance or mistake):</p>
  
  <pre><code>public native void someMethod (Person person) /*-{
      person.sayName();
  }-*/;
  </code></pre>