comparison src/luan/impl/Closure.java @ 784:6a7c6879158d

revert shallowClone()
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 30 Aug 2016 12:08:49 -0600
parents 655280eab1e2
children d69d3c51c44e
comparison
equal deleted inserted replaced
783:4083f5a67c63 784:6a7c6879158d
16 public Closure(int nUpValues,LuanJava java) throws LuanException { 16 public Closure(int nUpValues,LuanJava java) throws LuanException {
17 this.upValues = new Pointer[nUpValues]; 17 this.upValues = new Pointer[nUpValues];
18 this.java = java; 18 this.java = java;
19 } 19 }
20 20
21 @Override public Closure shallowClone(LuanCloner cloner) { 21 @Override public Closure shallowClone() {
22 try { 22 try {
23 return (Closure)clone(); 23 return (Closure)clone();
24 } catch(CloneNotSupportedException e) { 24 } catch(CloneNotSupportedException e) {
25 throw new RuntimeException(e); 25 throw new RuntimeException(e);
26 } 26 }