diff --git a/src/java.scripting/share/classes/javax/script/CompiledScript.java b/src/java.scripting/share/classes/javax/script/CompiledScript.java index 5dc8738aaf1..9186fd548d6 100644 --- a/src/java.scripting/share/classes/javax/script/CompiledScript.java +++ b/src/java.scripting/share/classes/javax/script/CompiledScript.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -42,6 +42,10 @@ import java.util.Map; * @since 1.6 */ public abstract class CompiledScript { + /** + * Constructor for subclasses to call. + */ + public CompiledScript() {} /** * Executes the program stored in this CompiledScript object.