From dbf6a5ab1559e7d4d7346df5ec8bbf76525066dd Mon Sep 17 00:00:00 2001 From: Dmitry Boulytchev Date: Tue, 14 Feb 2012 15:11:46 +0400 Subject: [PATCH] Interface-to-class tests: all green (compile server). --- .../incremental/common/class2Interface1.log | 15 + .../class2Interface1/.idea/compiler.xml | 21 + .../.idea/copyright/profiles_settings.xml | 5 + .../class2Interface1/.idea/encodings.xml | 5 + .../common/class2Interface1/.idea/misc.xml | 26 + .../common/class2Interface1/.idea/modules.xml | 9 + .../.idea/scopes/scope_settings.xml | 5 + .../class2Interface1/.idea/uiDesigner.xml | 125 +++++ .../common/class2Interface1/.idea/vcs.xml | 7 + .../class2Interface1/.idea/workspace.xml | 429 ++++++++++++++++ .../class2Interface1/Class2Interface1.iml | 12 + .../common/class2Interface1/Factory.java.new | 4 + .../common/class2Interface1/src/Client.java | 8 + .../common/class2Interface1/src/Factory.java | 4 + .../common/class2Interface1/src/Main.java | 6 + .../common/class2Interface1/src/Product.java | 5 + .../class2Interface1/src/SubClient.java | 6 + .../incremental/common/class2Interface2.log | 15 + .../class2Interface2/.idea/compiler.xml | 21 + .../.idea/copyright/profiles_settings.xml | 5 + .../class2Interface2/.idea/encodings.xml | 5 + .../common/class2Interface2/.idea/misc.xml | 26 + .../common/class2Interface2/.idea/modules.xml | 9 + .../.idea/scopes/scope_settings.xml | 5 + .../class2Interface2/.idea/uiDesigner.xml | 125 +++++ .../common/class2Interface2/.idea/vcs.xml | 7 + .../class2Interface2/.idea/workspace.xml | 441 +++++++++++++++++ .../class2Interface2/Class2Interface2.iml | 12 + .../common/class2Interface2/Factory.java.new | 4 + .../common/class2Interface2/src/Client.java | 8 + .../common/class2Interface2/src/Factory.java | 4 + .../common/class2Interface2/src/Main.java | 6 + .../common/class2Interface2/src/Product.java | 5 + .../class2Interface2/src/SubClient.java | 6 + .../incremental/common/class2Interface3.log | 15 + .../class2Interface3/.idea/compiler.xml | 21 + .../.idea/copyright/profiles_settings.xml | 5 + .../class2Interface3/.idea/encodings.xml | 5 + .../common/class2Interface3/.idea/misc.xml | 26 + .../common/class2Interface3/.idea/modules.xml | 9 + .../.idea/scopes/scope_settings.xml | 5 + .../class2Interface3/.idea/uiDesigner.xml | 125 +++++ .../common/class2Interface3/.idea/vcs.xml | 7 + .../class2Interface3/.idea/workspace.xml | 458 ++++++++++++++++++ .../class2Interface3/Class2Interface3.iml | 12 + .../common/class2Interface3/Factory.java.new | 4 + .../common/class2Interface3/src/Client.java | 10 + .../common/class2Interface3/src/Factory.java | 4 + .../common/class2Interface3/src/Main.java | 6 + .../common/class2Interface3/src/Product.java | 5 + .../class2Interface3/src/SubClient.java | 6 + .../org/jetbrains/ether/CommonTest.java | 12 + .../jetbrains/ether/IncrementalTestCase.java | 2 +- 53 files changed, 2132 insertions(+), 1 deletion(-) create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface1.log create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface1/.idea/compiler.xml create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface1/.idea/copyright/profiles_settings.xml create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface1/.idea/encodings.xml create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface1/.idea/misc.xml create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface1/.idea/modules.xml create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface1/.idea/scopes/scope_settings.xml create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface1/.idea/uiDesigner.xml create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface1/.idea/vcs.xml create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface1/.idea/workspace.xml create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface1/Class2Interface1.iml create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface1/Factory.java.new create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface1/src/Client.java create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface1/src/Factory.java create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface1/src/Main.java create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface1/src/Product.java create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface1/src/SubClient.java create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface2.log create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface2/.idea/compiler.xml create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface2/.idea/copyright/profiles_settings.xml create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface2/.idea/encodings.xml create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface2/.idea/misc.xml create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface2/.idea/modules.xml create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface2/.idea/scopes/scope_settings.xml create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface2/.idea/uiDesigner.xml create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface2/.idea/vcs.xml create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface2/.idea/workspace.xml create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface2/Class2Interface2.iml create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface2/Factory.java.new create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface2/src/Client.java create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface2/src/Factory.java create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface2/src/Main.java create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface2/src/Product.java create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface2/src/SubClient.java create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface3.log create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface3/.idea/compiler.xml create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface3/.idea/copyright/profiles_settings.xml create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface3/.idea/encodings.xml create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface3/.idea/misc.xml create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface3/.idea/modules.xml create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface3/.idea/scopes/scope_settings.xml create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface3/.idea/uiDesigner.xml create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface3/.idea/vcs.xml create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface3/.idea/workspace.xml create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface3/Class2Interface3.iml create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface3/Factory.java.new create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface3/src/Client.java create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface3/src/Factory.java create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface3/src/Main.java create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface3/src/Product.java create mode 100644 java/java-tests/testData/compileServer/incremental/common/class2Interface3/src/SubClient.java diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface1.log b/java/java-tests/testData/compileServer/incremental/common/class2Interface1.log new file mode 100644 index 000000000000..1f086cdfa21c --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface1.log @@ -0,0 +1,15 @@ +Cleaning output files: +out/production/Class2Interface1/Factory.class +End of files +Compiling files: +src/Factory.java +End of files +Cleaning output files: +out/production/Class2Interface1/Client$1.class +out/production/Class2Interface1/Client.class +out/production/Class2Interface1/SubClient.class +End of files +Compiling files: +src/Client.java +src/SubClient.java +End of files diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface1/.idea/compiler.xml b/java/java-tests/testData/compileServer/incremental/common/class2Interface1/.idea/compiler.xml new file mode 100644 index 000000000000..a1b41c52c724 --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface1/.idea/compiler.xml @@ -0,0 +1,21 @@ + + + + + + diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface1/.idea/copyright/profiles_settings.xml b/java/java-tests/testData/compileServer/incremental/common/class2Interface1/.idea/copyright/profiles_settings.xml new file mode 100644 index 000000000000..3572571ad83c --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface1/.idea/copyright/profiles_settings.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface1/.idea/encodings.xml b/java/java-tests/testData/compileServer/incremental/common/class2Interface1/.idea/encodings.xml new file mode 100644 index 000000000000..e206d70d8595 --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface1/.idea/encodings.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface1/.idea/misc.xml b/java/java-tests/testData/compileServer/incremental/common/class2Interface1/.idea/misc.xml new file mode 100644 index 000000000000..492d8ee45ce4 --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface1/.idea/misc.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + IDEA jdk + + + + + + + + + diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface1/.idea/modules.xml b/java/java-tests/testData/compileServer/incremental/common/class2Interface1/.idea/modules.xml new file mode 100644 index 000000000000..f4e0bd4714d1 --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface1/.idea/modules.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface1/.idea/scopes/scope_settings.xml b/java/java-tests/testData/compileServer/incremental/common/class2Interface1/.idea/scopes/scope_settings.xml new file mode 100644 index 000000000000..922003b8433b --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface1/.idea/scopes/scope_settings.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface1/.idea/uiDesigner.xml b/java/java-tests/testData/compileServer/incremental/common/class2Interface1/.idea/uiDesigner.xml new file mode 100644 index 000000000000..3b0002030884 --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface1/.idea/uiDesigner.xml @@ -0,0 +1,125 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface1/.idea/vcs.xml b/java/java-tests/testData/compileServer/incremental/common/class2Interface1/.idea/vcs.xml new file mode 100644 index 000000000000..def6a6a18457 --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface1/.idea/vcs.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface1/.idea/workspace.xml b/java/java-tests/testData/compileServer/incremental/common/class2Interface1/.idea/workspace.xml new file mode 100644 index 000000000000..a9c137d5adf8 --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface1/.idea/workspace.xml @@ -0,0 +1,429 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + localhost + 5050 + + + + + + 1329217197770 + 1329217197770 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface1/Class2Interface1.iml b/java/java-tests/testData/compileServer/incremental/common/class2Interface1/Class2Interface1.iml new file mode 100644 index 000000000000..d5c074327501 --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface1/Class2Interface1.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface1/Factory.java.new b/java/java-tests/testData/compileServer/incremental/common/class2Interface1/Factory.java.new new file mode 100644 index 000000000000..c024104e9f8b --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface1/Factory.java.new @@ -0,0 +1,4 @@ +abstract class Factory { + abstract Product create(); +} + diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface1/src/Client.java b/java/java-tests/testData/compileServer/incremental/common/class2Interface1/src/Client.java new file mode 100644 index 000000000000..5854d18c3f9d --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface1/src/Client.java @@ -0,0 +1,8 @@ +class Client { + protected Factory factory = + new Factory() { + public Product create () { + return new Product("created"); + } + }; +} diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface1/src/Factory.java b/java/java-tests/testData/compileServer/incremental/common/class2Interface1/src/Factory.java new file mode 100644 index 000000000000..0107e65de9da --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface1/src/Factory.java @@ -0,0 +1,4 @@ +interface Factory { + Product create(); +} + diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface1/src/Main.java b/java/java-tests/testData/compileServer/incremental/common/class2Interface1/src/Main.java new file mode 100644 index 000000000000..8c75394f7fdd --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface1/src/Main.java @@ -0,0 +1,6 @@ +public class Main { + public static void main (String[] args) { + final SubClient s = new SubClient (); + s.method (s.factory); + } +} diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface1/src/Product.java b/java/java-tests/testData/compileServer/incremental/common/class2Interface1/src/Product.java new file mode 100644 index 000000000000..0395de5f4100 --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface1/src/Product.java @@ -0,0 +1,5 @@ +class Product { + String name; + public Product (String name) {this.name = name;} + public String toString () {return name;} +} diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface1/src/SubClient.java b/java/java-tests/testData/compileServer/incremental/common/class2Interface1/src/SubClient.java new file mode 100644 index 000000000000..0922ec9c7c78 --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface1/src/SubClient.java @@ -0,0 +1,6 @@ +class SubClient extends Client { + void method (final Factory factory) { + Product product = factory.create(); + System.out.println (product); + } +} diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface2.log b/java/java-tests/testData/compileServer/incremental/common/class2Interface2.log new file mode 100644 index 000000000000..d121df5398f9 --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface2.log @@ -0,0 +1,15 @@ +Cleaning output files: +out/production/Class2Interface2/Factory.class +End of files +Compiling files: +src/Factory.java +End of files +Cleaning output files: +out/production/Class2Interface2/Client$1.class +out/production/Class2Interface2/Client.class +out/production/Class2Interface2/SubClient.class +End of files +Compiling files: +src/Client.java +src/SubClient.java +End of files diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface2/.idea/compiler.xml b/java/java-tests/testData/compileServer/incremental/common/class2Interface2/.idea/compiler.xml new file mode 100644 index 000000000000..a1b41c52c724 --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface2/.idea/compiler.xml @@ -0,0 +1,21 @@ + + + + + + diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface2/.idea/copyright/profiles_settings.xml b/java/java-tests/testData/compileServer/incremental/common/class2Interface2/.idea/copyright/profiles_settings.xml new file mode 100644 index 000000000000..3572571ad83c --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface2/.idea/copyright/profiles_settings.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface2/.idea/encodings.xml b/java/java-tests/testData/compileServer/incremental/common/class2Interface2/.idea/encodings.xml new file mode 100644 index 000000000000..e206d70d8595 --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface2/.idea/encodings.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface2/.idea/misc.xml b/java/java-tests/testData/compileServer/incremental/common/class2Interface2/.idea/misc.xml new file mode 100644 index 000000000000..492d8ee45ce4 --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface2/.idea/misc.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + IDEA jdk + + + + + + + + + diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface2/.idea/modules.xml b/java/java-tests/testData/compileServer/incremental/common/class2Interface2/.idea/modules.xml new file mode 100644 index 000000000000..793ab142bd2d --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface2/.idea/modules.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface2/.idea/scopes/scope_settings.xml b/java/java-tests/testData/compileServer/incremental/common/class2Interface2/.idea/scopes/scope_settings.xml new file mode 100644 index 000000000000..922003b8433b --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface2/.idea/scopes/scope_settings.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface2/.idea/uiDesigner.xml b/java/java-tests/testData/compileServer/incremental/common/class2Interface2/.idea/uiDesigner.xml new file mode 100644 index 000000000000..3b0002030884 --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface2/.idea/uiDesigner.xml @@ -0,0 +1,125 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface2/.idea/vcs.xml b/java/java-tests/testData/compileServer/incremental/common/class2Interface2/.idea/vcs.xml new file mode 100644 index 000000000000..def6a6a18457 --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface2/.idea/vcs.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface2/.idea/workspace.xml b/java/java-tests/testData/compileServer/incremental/common/class2Interface2/.idea/workspace.xml new file mode 100644 index 000000000000..4a6f1de3d918 --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface2/.idea/workspace.xml @@ -0,0 +1,441 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + localhost + 5050 + + + + + + 1329217258382 + 1329217258382 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface2/Class2Interface2.iml b/java/java-tests/testData/compileServer/incremental/common/class2Interface2/Class2Interface2.iml new file mode 100644 index 000000000000..d5c074327501 --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface2/Class2Interface2.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface2/Factory.java.new b/java/java-tests/testData/compileServer/incremental/common/class2Interface2/Factory.java.new new file mode 100644 index 000000000000..c024104e9f8b --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface2/Factory.java.new @@ -0,0 +1,4 @@ +abstract class Factory { + abstract Product create(); +} + diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface2/src/Client.java b/java/java-tests/testData/compileServer/incremental/common/class2Interface2/src/Client.java new file mode 100644 index 000000000000..5854d18c3f9d --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface2/src/Client.java @@ -0,0 +1,8 @@ +class Client { + protected Factory factory = + new Factory() { + public Product create () { + return new Product("created"); + } + }; +} diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface2/src/Factory.java b/java/java-tests/testData/compileServer/incremental/common/class2Interface2/src/Factory.java new file mode 100644 index 000000000000..0107e65de9da --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface2/src/Factory.java @@ -0,0 +1,4 @@ +interface Factory { + Product create(); +} + diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface2/src/Main.java b/java/java-tests/testData/compileServer/incremental/common/class2Interface2/src/Main.java new file mode 100644 index 000000000000..46a6aebe8a79 --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface2/src/Main.java @@ -0,0 +1,6 @@ +public class Main { + public static void main (String[] args) { + final SubClient s = new SubClient (); + s.method (); + } +} diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface2/src/Product.java b/java/java-tests/testData/compileServer/incremental/common/class2Interface2/src/Product.java new file mode 100644 index 000000000000..0395de5f4100 --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface2/src/Product.java @@ -0,0 +1,5 @@ +class Product { + String name; + public Product (String name) {this.name = name;} + public String toString () {return name;} +} diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface2/src/SubClient.java b/java/java-tests/testData/compileServer/incremental/common/class2Interface2/src/SubClient.java new file mode 100644 index 000000000000..d8d9b2957b67 --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface2/src/SubClient.java @@ -0,0 +1,6 @@ +class SubClient extends Client { + void method () { + Product product = factory.create(); + System.out.println (product); + } +} diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface3.log b/java/java-tests/testData/compileServer/incremental/common/class2Interface3.log new file mode 100644 index 000000000000..8dc8e722aac7 --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface3.log @@ -0,0 +1,15 @@ +Cleaning output files: +out/production/Class2Interface3/Factory.class +End of files +Compiling files: +src/Factory.java +End of files +Cleaning output files: +out/production/Class2Interface3/Client$1.class +out/production/Class2Interface3/Client.class +out/production/Class2Interface3/SubClient.class +End of files +Compiling files: +src/Client.java +src/SubClient.java +End of files diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface3/.idea/compiler.xml b/java/java-tests/testData/compileServer/incremental/common/class2Interface3/.idea/compiler.xml new file mode 100644 index 000000000000..a1b41c52c724 --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface3/.idea/compiler.xml @@ -0,0 +1,21 @@ + + + + + + diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface3/.idea/copyright/profiles_settings.xml b/java/java-tests/testData/compileServer/incremental/common/class2Interface3/.idea/copyright/profiles_settings.xml new file mode 100644 index 000000000000..3572571ad83c --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface3/.idea/copyright/profiles_settings.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface3/.idea/encodings.xml b/java/java-tests/testData/compileServer/incremental/common/class2Interface3/.idea/encodings.xml new file mode 100644 index 000000000000..e206d70d8595 --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface3/.idea/encodings.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface3/.idea/misc.xml b/java/java-tests/testData/compileServer/incremental/common/class2Interface3/.idea/misc.xml new file mode 100644 index 000000000000..492d8ee45ce4 --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface3/.idea/misc.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + IDEA jdk + + + + + + + + + diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface3/.idea/modules.xml b/java/java-tests/testData/compileServer/incremental/common/class2Interface3/.idea/modules.xml new file mode 100644 index 000000000000..44227960c698 --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface3/.idea/modules.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface3/.idea/scopes/scope_settings.xml b/java/java-tests/testData/compileServer/incremental/common/class2Interface3/.idea/scopes/scope_settings.xml new file mode 100644 index 000000000000..922003b8433b --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface3/.idea/scopes/scope_settings.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface3/.idea/uiDesigner.xml b/java/java-tests/testData/compileServer/incremental/common/class2Interface3/.idea/uiDesigner.xml new file mode 100644 index 000000000000..3b0002030884 --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface3/.idea/uiDesigner.xml @@ -0,0 +1,125 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface3/.idea/vcs.xml b/java/java-tests/testData/compileServer/incremental/common/class2Interface3/.idea/vcs.xml new file mode 100644 index 000000000000..def6a6a18457 --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface3/.idea/vcs.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface3/.idea/workspace.xml b/java/java-tests/testData/compileServer/incremental/common/class2Interface3/.idea/workspace.xml new file mode 100644 index 000000000000..440322fa6c47 --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface3/.idea/workspace.xml @@ -0,0 +1,458 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + localhost + 5050 + + + + + + 1329217320790 + 1329217320790 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface3/Class2Interface3.iml b/java/java-tests/testData/compileServer/incremental/common/class2Interface3/Class2Interface3.iml new file mode 100644 index 000000000000..d5c074327501 --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface3/Class2Interface3.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface3/Factory.java.new b/java/java-tests/testData/compileServer/incremental/common/class2Interface3/Factory.java.new new file mode 100644 index 000000000000..c024104e9f8b --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface3/Factory.java.new @@ -0,0 +1,4 @@ +abstract class Factory { + abstract Product create(); +} + diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface3/src/Client.java b/java/java-tests/testData/compileServer/incremental/common/class2Interface3/src/Client.java new file mode 100644 index 000000000000..597dd7c0b1ce --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface3/src/Client.java @@ -0,0 +1,10 @@ +class Client { + protected Factory getFactory () { + return + new Factory() { + public Product create () { + return new Product("created"); + } + }; + } +} diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface3/src/Factory.java b/java/java-tests/testData/compileServer/incremental/common/class2Interface3/src/Factory.java new file mode 100644 index 000000000000..0107e65de9da --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface3/src/Factory.java @@ -0,0 +1,4 @@ +interface Factory { + Product create(); +} + diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface3/src/Main.java b/java/java-tests/testData/compileServer/incremental/common/class2Interface3/src/Main.java new file mode 100644 index 000000000000..46a6aebe8a79 --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface3/src/Main.java @@ -0,0 +1,6 @@ +public class Main { + public static void main (String[] args) { + final SubClient s = new SubClient (); + s.method (); + } +} diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface3/src/Product.java b/java/java-tests/testData/compileServer/incremental/common/class2Interface3/src/Product.java new file mode 100644 index 000000000000..0395de5f4100 --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface3/src/Product.java @@ -0,0 +1,5 @@ +class Product { + String name; + public Product (String name) {this.name = name;} + public String toString () {return name;} +} diff --git a/java/java-tests/testData/compileServer/incremental/common/class2Interface3/src/SubClient.java b/java/java-tests/testData/compileServer/incremental/common/class2Interface3/src/SubClient.java new file mode 100644 index 000000000000..05ae87469708 --- /dev/null +++ b/java/java-tests/testData/compileServer/incremental/common/class2Interface3/src/SubClient.java @@ -0,0 +1,6 @@ +class SubClient extends Client { + void method () { + Product product = getFactory().create(); + System.out.println (product); + } +} diff --git a/jps/jps-builders/testSrc/org/jetbrains/ether/CommonTest.java b/jps/jps-builders/testSrc/org/jetbrains/ether/CommonTest.java index 801876e84232..933dedb3e922 100644 --- a/jps/jps-builders/testSrc/org/jetbrains/ether/CommonTest.java +++ b/jps/jps-builders/testSrc/org/jetbrains/ether/CommonTest.java @@ -59,4 +59,16 @@ public class CommonTest extends IncrementalTestCase { public void testDependencyUpdate() throws Exception { doTest(); } + + public void testClass2Interface1() throws Exception { + doTest(); + } + + public void testClass2Interface2() throws Exception { + doTest(); + } + + public void testClass2Interface3() throws Exception { + doTest(); + } } diff --git a/jps/jps-builders/testSrc/org/jetbrains/ether/IncrementalTestCase.java b/jps/jps-builders/testSrc/org/jetbrains/ether/IncrementalTestCase.java index 48ed13b9920e..6160a0126ced 100644 --- a/jps/jps-builders/testSrc/org/jetbrains/ether/IncrementalTestCase.java +++ b/jps/jps-builders/testSrc/org/jetbrains/ether/IncrementalTestCase.java @@ -177,7 +177,7 @@ public abstract class IncrementalTestCase extends TestCase { finally { try { closeAppender(); - delete(new File(workDir)); + //delete(new File(workDir)); } finally { Logger.setFactory(oldFactory);