title: Could not find matching constructor using Java
body: <p>I'm trying to call a constructor in a groovy file. I've a constructor like </p>
  
  <pre><code>public class CreditCardDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements creditcard.CreditCardDocument
  {
      // Constructor
      public CreditCardDocumentImpl(org.apache.xmlbeans.SchemaType sType)
      {  
          super(sType);
      }
  }
  </code></pre>
  
  <p>When I try to access the constructor by calling ,</p>
  
  <pre><code>// Call the constructor
  CreditCardDocument creditCardDocument = new CreditCardDocumentImpl(SchemaType);
  </code></pre>
  
  <p>It doesn't allow me</p>
  
  <pre><code>groovy.lang.GroovyRuntimeException: Could not find matching constructor for: creditcard.impl.CreditCardDocumentImpl(java.lang.Class)
  </code></pre>
  
  <p>Any ideas would be greatly appreciated. </p>