Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-8709

Autoclone clone() method not included in Java stub

Agile BoardAttach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      @AutoClone
      class Foo {
          String name
      }
      

      Creates this stub, which is missing the clone() method.

      import java.lang.*;
      import java.io.*;
      import java.net.*;
      import java.util.*;
      import groovy.lang.*;
      import groovy.util.*;
      
      @groovy.transform.AutoClone() public class Foo
        extends java.lang.Object  implements
          groovy.lang.GroovyObject {
      ;
      @groovy.transform.Generated() public  groovy.lang.MetaClass getMetaClass() { return (groovy.lang.MetaClass)null;}
      @groovy.transform.Generated() public  void setMetaClass(groovy.lang.MetaClass mc) { }
      @groovy.transform.Generated() public  java.lang.Object invokeMethod(java.lang.String method, java.lang.Object arguments) { return null;}
      @groovy.transform.Generated() public  java.lang.Object getProperty(java.lang.String property) { return null;}
      @groovy.transform.Generated() public  void setProperty(java.lang.String property, java.lang.Object value) { }
      public  java.lang.String getName() { return (java.lang.String)null;}
      public  void setName(java.lang.String value) { }
      }
      

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            keegan Keegan Witt

            Dates

              Created:
              Updated:

              Slack

                Issue deployment