Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
Disable version check in AbstractModelLoader.loadCompiledModule()
Browse files Browse the repository at this point in the history
Because with overrides the loaded version might not be the same as the
version imported in the module descriptor.

Part of #5734
  • Loading branch information
tombentley committed Nov 11, 2015
1 parent 898e9d2 commit 12574fc
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1968,10 +1968,6 @@ private boolean loadCompiledModule(Module module, ClassMirror moduleClass, Strin
logWarning("Module class "+moduleClassName+" contains no version, ignoring it");
return false;
}
if(!version.equals(module.getVersion())){
logWarning("Module class "+moduleClassName+" declares an invalid version: "+version+". It should be: "+module.getVersion());
return false;
}
int major = getAnnotationIntegerValue(moduleClass, CEYLON_CEYLON_ANNOTATION, "major", 0);
int minor = getAnnotationIntegerValue(moduleClass, CEYLON_CEYLON_ANNOTATION, "minor", 0);
module.setMajor(major);
Expand Down

0 comments on commit 12574fc

Please sign in to comment.