Example usage for java.lang IncompatibleClassChangeError IncompatibleClassChangeError

List of usage examples for java.lang IncompatibleClassChangeError IncompatibleClassChangeError

Introduction

In this page you can find the example usage for java.lang IncompatibleClassChangeError IncompatibleClassChangeError.

Prototype

public IncompatibleClassChangeError(String s) 

Source Link

Document

Constructs an IncompatibleClassChangeError with the specified detail message.

Usage

From source file:org.quartz.JobDetail.java

public Object clone() {
    JobDetail copy;/* w ww.j  ava2  s. c o  m*/
    try {
        copy = (JobDetail) super.clone();
        copy.jobListeners = SetUtils.orderedSet(new HashSet());
        copy.jobListeners.addAll(jobListeners);
        if (jobDataMap != null) {
            copy.jobDataMap = (JobDataMap) jobDataMap.clone();
        }
    } catch (CloneNotSupportedException ex) {
        throw new IncompatibleClassChangeError("Not Cloneable.");
    }

    return copy;
}