mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
javac ast indices: do not show "IOException" in messages when index was rebuilt due to new version
This commit is contained in:
+1
-1
@@ -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) {
|
||||
|
||||
+4
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user