Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[FIXED JENKINS-29571] Make CpsFlowExecution.owner transient (JENKINS-…
…27704) to avoid problems after renames/moves.

Originally-Committed-As: b7014e66b8b064794efea6c78f35160c5250cc2e
  • Loading branch information
jglick committed Jul 22, 2015
1 parent 2e3ab66 commit e26d0b7
Showing 1 changed file with 11 additions and 1 deletion.
Expand Up @@ -25,6 +25,7 @@
package org.jenkinsci.plugins.workflow.flow;

import com.google.common.util.concurrent.ListenableFuture;
import hudson.Util;
import hudson.model.Executor;
import jenkins.model.CauseOfInterruption;
import org.jenkinsci.plugins.workflow.actions.ErrorAction;
Expand Down Expand Up @@ -76,7 +77,16 @@ public abstract class FlowExecution implements FlowActionStorage {
/**
* Should be called by the flow owner after it is deserialized.
*/
public abstract void onLoad();
public /*abstract*/ void onLoad(FlowExecutionOwner owner) throws IOException {
if (Util.isOverridden(FlowExecution.class, getClass(), "onLoad")) {
onLoad();
}
}

@Deprecated
public void onLoad() {
throw new AbstractMethodError("you must implement the new overload of onLoad");
}

public abstract FlowExecutionOwner getOwner();

Expand Down

0 comments on commit e26d0b7

Please sign in to comment.