mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-110835: TransformableJavaFileObject Not Supported when compiling
This commit is contained in:
@@ -100,7 +100,11 @@ class JavacFileManager extends ForwardingJavaFileManager<StandardJavaFileManager
|
||||
if (a instanceof OutputFileObject || b instanceof OutputFileObject) {
|
||||
return a.equals(b);
|
||||
}
|
||||
return super.isSameFile(a, b);
|
||||
return super.isSameFile(unwrapFileObject(a), unwrapFileObject(b));
|
||||
}
|
||||
|
||||
private static FileObject unwrapFileObject(FileObject a) {
|
||||
return a instanceof TransformableJavaFileObject ? ((TransformableJavaFileObject)a).getOriginal() : a;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user