javac ast indices: do not show "IOException" in messages when index was rebuilt due to new version

This commit is contained in:
Dmitry Batkovich
2016-11-03 10:55:26 +03:00
parent db48fa701c
commit 0ee2c0f1f0
2 changed files with 5 additions and 1 deletions
@@ -96,7 +96,7 @@ public class BackwardReferenceIndexWriter {
CompilerBackwardReferenceIndex.removeIndexFiles(buildDir);
}
else if (CompilerBackwardReferenceIndex.versionDiffers(buildDir)) {
throw new BuildDataCorruptedException(new IOException("backward reference index should be updated to actual version"));
throw new BuildDataCorruptedException("backward reference index should be updated to actual version");
}
if (CompilerBackwardReferenceIndex.exist(buildDir) || isRebuild) {
@@ -28,6 +28,10 @@ public class BuildDataCorruptedException extends RuntimeException {
super(cause);
}
public BuildDataCorruptedException(String message) {
super(message);
}
@Override
public synchronized IOException getCause() {
return (IOException)super.getCause();