diff options
Diffstat (limited to 'compatibility')
-rw-r--r-- | compatibility/BuildInterface.java | 4 | ||||
-rw-r--r-- | compatibility/Dependency.java | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/compatibility/BuildInterface.java b/compatibility/BuildInterface.java index d6d11db..c374d5d 100644 --- a/compatibility/BuildInterface.java +++ b/compatibility/BuildInterface.java @@ -12,7 +12,9 @@ public interface BuildInterface extends Dependency{ }; // deprecated methods, which clients are still allowed to implement, but not required - public abstract BuildInterface finalBuild(); // needed to propagage through build builds. Maybe we can get rid of this. + public default BuildInterface finalBuild(){ + throw new IncompatibleCbtVersionException("You need to define method classLoader."); + }; // needed to propagage through build builds. Maybe we can get rid of this. public abstract BuildInterface copy(Context context); public abstract String scalaVersion(); public abstract String[] crossScalaVersionsArray(); diff --git a/compatibility/Dependency.java b/compatibility/Dependency.java index e23faa6..d1d05b9 100644 --- a/compatibility/Dependency.java +++ b/compatibility/Dependency.java @@ -9,6 +9,9 @@ public interface Dependency{ public default long lastModified(){ throw new IncompatibleCbtVersionException("You need to define method lastModified."); }; + public default ClassLoader classLoader(){ + throw new IncompatibleCbtVersionException("You need to define method classLoader."); + }; // methods that exist for longer which every CBT version in use should have by now, no default values needed public abstract String show(); |