Re: super.clone() puzzlement



Mark Space wrote:
J. Davidson wrote:

public Bar (int x) {
super(new Copier<Bar> () {
public Bar copy (Bar object) {
return new Bar(object.field);
}
});

Doesn't compile. Check your cut and paste, I found at least one other syntax error in the code.

What cut and paste? I typed that directly into my news program. I wouldn't be surprised if it had a typo or two.
.



Relevant Pages

  • Re: super.clone() puzzlement
    ... public Bar copy (Bar object) { ... Doesn't compile. ... The "typo" I pointer out obviates your argument however. ...
    (comp.lang.java.programmer)
  • Re: super.clone() puzzlement
    ... J. Davidson wrote: ... public Bar copy (Bar object) { ... Doesn't compile. ...
    (comp.lang.java.programmer)