From 96dcadf1784e064bc47439d89c984cf71778fe22 Mon Sep 17 00:00:00 2001 From: Pavel Kirpichenkov Date: Tue, 5 Nov 2019 12:03:53 +0300 Subject: [PATCH] Add frontend checks for missing dependency supertypes Call checker and declaration checker are used in order to preserve backward compatibility. Attempt to use classifier usage checker was not good enouth, since not all errors found with it would actually be reported before. For example types and constructor calls don't cause supertypes to resolve, so missing supertypes would not lead to errors in case they are the only use of class name. Updated tests failing due to missing Java dependencies in superclasses. Original commit: 8c52bb4212f38024050185da10bc62f362104d4a --- .../multiModule/common/exportedDependency/dependencies.txt | 3 ++- .../incremental/multiModule/common/simple/dependencies.txt | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/jps/jps-plugin/testData/incremental/multiModule/common/exportedDependency/dependencies.txt b/jps/jps-plugin/testData/incremental/multiModule/common/exportedDependency/dependencies.txt index c202ba91e3f..7a6efaafbb9 100644 --- a/jps/jps-plugin/testData/incremental/multiModule/common/exportedDependency/dependencies.txt +++ b/jps/jps-plugin/testData/incremental/multiModule/common/exportedDependency/dependencies.txt @@ -1,4 +1,5 @@ module1-> module2->module1[exported] module3->module2 -module4->module3 \ No newline at end of file +module4->module3 +module4->module2 \ No newline at end of file diff --git a/jps/jps-plugin/testData/incremental/multiModule/common/simple/dependencies.txt b/jps/jps-plugin/testData/incremental/multiModule/common/simple/dependencies.txt index 07917d6cffb..23443cb3657 100644 --- a/jps/jps-plugin/testData/incremental/multiModule/common/simple/dependencies.txt +++ b/jps/jps-plugin/testData/incremental/multiModule/common/simple/dependencies.txt @@ -1,3 +1,4 @@ module1-> module2->module1 -module3->module2 \ No newline at end of file +module3->module2 +module3->module1 \ No newline at end of file