From 52c712ae73677d4c51cc3ce0b7f57572ab2e75d3 Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Thu, 28 Jul 2005 18:29:52 +0400 Subject: [PATCH] tests --- .../src/com/intellij/testFramework/IdeaTestCase.java | 2 +- .../impl/javaCompiler/CompilerParsingThread.java | 1 + .../compiler/impl/rmiCompiler/RmicCompiler.java | 17 +++++++++++++---- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/ExtendedApi/src/com/intellij/testFramework/IdeaTestCase.java b/ExtendedApi/src/com/intellij/testFramework/IdeaTestCase.java index 335711de19..dc55fdd873 100644 --- a/ExtendedApi/src/com/intellij/testFramework/IdeaTestCase.java +++ b/ExtendedApi/src/com/intellij/testFramework/IdeaTestCase.java @@ -287,7 +287,7 @@ public abstract class IdeaTestCase extends TestCase implements DataProvider { resetAllFields(); } } - }); + }, "IDEA Test Case Thread"); thread.start(); thread.join(); diff --git a/source/com/intellij/compiler/impl/javaCompiler/CompilerParsingThread.java b/source/com/intellij/compiler/impl/javaCompiler/CompilerParsingThread.java index 490372b079..4efaf2d265 100644 --- a/source/com/intellij/compiler/impl/javaCompiler/CompilerParsingThread.java +++ b/source/com/intellij/compiler/impl/javaCompiler/CompilerParsingThread.java @@ -28,6 +28,7 @@ public abstract class CompilerParsingThread extends Thread implements OutputPars public CompilerParsingThread(Process process, OutputParser outputParser, final boolean readErrorStream) { + super("CompilerParsingThread"); myProcess = process; myOutputParser = outputParser; myCompilerOutStreamReader = new BufferedReader(new InputStreamReader(readErrorStream? process.getErrorStream() : process.getInputStream()), 16384); diff --git a/source/com/intellij/compiler/impl/rmiCompiler/RmicCompiler.java b/source/com/intellij/compiler/impl/rmiCompiler/RmicCompiler.java index 930beb49cc..7f754b49f8 100644 --- a/source/com/intellij/compiler/impl/rmiCompiler/RmicCompiler.java +++ b/source/com/intellij/compiler/impl/rmiCompiler/RmicCompiler.java @@ -95,10 +95,8 @@ public class RmicCompiler implements ClassPostProcessingCompiler{ LOG.assertTrue(VfsUtil.isAncestor(outputDir, outputClassFile, true)); - final RmicProcessingItem item = new RmicProcessingItem( - module, outputClassFile, new File(outputDir.getPath()), dependencyCache.resolve(className) - ); - item.setIsRemoteObject(isRemoteObject); + final ProcessingItem item = createProcessingItem(module, outputClassFile, outputDir, + isRemoteObject, dependencyCache.resolve(className)); items.add(item); } } @@ -111,6 +109,17 @@ public class RmicCompiler implements ClassPostProcessingCompiler{ return items.toArray(new ProcessingItem[items.size()]); } + public ProcessingItem createProcessingItem(final Module module, + final VirtualFile outputClassFile, + final VirtualFile outputDir, + final boolean remoteObject, String qName) throws CacheCorruptedException { + final RmicProcessingItem item = new RmicProcessingItem( + module, outputClassFile, new File(outputDir.getPath()), qName + ); + item.setIsRemoteObject(remoteObject); + return item; + } + public ProcessingItem[] process(CompileContext context, ProcessingItem[] items) { if (!RmicSettings.getInstance(myProject).IS_EANABLED) { return ProcessingItem.EMPTY_ARRAY; -- 2.11.4.GIT