Clone overriding error

Issue #165 resolved
Loïc Girault created an issue

The following piece of code does not compile :

package p;

interface LogEntry {
    public LogEntry clone();

abstract class BaseEntry implements LogEntry {
    public LogEntry clone(){
            return (LogEntry)super.clone();
        } catch (CloneNotSupportedException e) {
            throw new Error();

class INLogEntry extends BaseEntry implements LogEntry {}

Comments (2)

  1. Log in to comment