Clone interface

14 views
Skip to first unread message

Gareth Murfin

unread,
Sep 25, 2018, 1:09:07 PM9/25/18
to CodenameOne Discussions
Does codenameone support the clone interface? im having trouble compiling , it says: 
 cannot find symbol return super.clone();

I inherit it using 


public class Branch implements Cloneable{


and my method is :

  @Override
    public Object clone() throws CloneNotSupportedException {
        return super.clone();
    }


I call it using: 

(Branch)currentBranch.clone()


Gareth Murfin

unread,
Sep 25, 2018, 1:33:15 PM9/25/18
to CodenameOne Discussions
ah i see its not possible in cn1, i will write it manually.
Reply all
Reply to author
Forward
0 new messages