Bug 6740 - Problems with deleting project
Summary: Problems with deleting project
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.0 M2   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-12-10 12:00 EST by Martin Aeschlimann CLA
Modified: 2011-12-09 10:05 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Aeschlimann CLA 2001-12-10 12:00:19 EST
in the JUnit tests... (1206)

load from the ZRH repository the following 2 plugins.
org.eclipse.jdt.ui.tests
org.junit

Excecute main of JavaModelUtilTest. (assumes all plugins at default location), 
or use the junit ui launcher.
The first test fails while deleting a project, all following because an 
internal JAR still exists.
It seems there is stream a InputStream on the JAR which is not closed. I've 
seen this problem also while working in Eclipse.

1) testFindType(org.eclipse.jdt.ui.tests.core.JavaModelUtilTest)
org.eclipse.core.internal.resources.ResourceException: Problems encountered 
while deleting resources.

Stack trace:
   java/lang/Throwable.<init>()V
   java/lang/Throwable.<init>(Ljava/lang/String;)V
   org/eclipse/core/runtime/CoreException.<init>
(Lorg/eclipse/core/runtime/IStatus;)V
   org/eclipse/core/internal/resources/ResourceException.<init>
(Lorg/eclipse/core/runtime/IStatus;)V
   org/eclipse/core/internal/resources/Project.delete
(ZZLorg/eclipse/core/runtime/IProgressMonitor;)V
   org/eclipse/jdt/testplugin/JavaProjectHelper.delete
(Lorg/eclipse/jdt/core/IJavaProject;)V
   org/eclipse/jdt/ui/tests/core/JavaModelUtilTest.tearDown()V
   junit/framework/TestCase.runBare()V
   junit/framework/TestResult$1.protect()V
   junit/framework/TestResult.runProtected
(Ljunit/framework/Test;Ljunit/framework/Protectable;)V
   junit/framework/TestResult.run(Ljunit/framework/TestCase;)V
   junit/framework/TestCase.run(Ljunit/framework/TestResult;)V
   junit/framework/TestSuite.runTest
(Ljunit/framework/Test;Ljunit/framework/TestResult;)V
   junit/framework/TestSuite.run(Ljunit/framework/TestResult;)V
   junit/textui/TestRunner.doRun(Ljunit/framework/Test;Z)
Ljunit/framework/TestResult;
   junit/textui/TestRunner.run(Ljunit/framework/Test;)V
   org/eclipse/jdt/testplugin/TestWorkbench.runEventLoop()V
   org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object;
   org/eclipse/core/internal/boot/InternalBootLoader.run
(Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;)
Ljava/lang/Object;
   org/eclipse/core/boot/BootLoader.run
(Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;)
Ljava/lang/Object;
   java/lang/reflect/Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)
Ljava/lang/Object;
   org/eclipse/core/launcher/Main.basicRun([Ljava/lang/String;)
Ljava/lang/Object;
   org/eclipse/core/launcher/Main.run([Ljava/lang/String;)Ljava/lang/Object;
   org/eclipse/jdt/testplugin/TestPluginLauncher.run
(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Class;[Ljava/lang/String;)V
   org/eclipse/jdt/testplugin/TestPluginLauncher.run
(Ljava/lang/String;Ljava/lang/Class;[Ljava/lang/String;)V
   org/eclipse/jdt/ui/tests/core/JavaModelUtilTest.main([Ljava/lang/String;)V

2) testFindType2(org.eclipse.jdt.ui.tests.core.JavaModelUtilTest)
org.eclipse.core.internal.resources.ResourceException: 
Resource /TestProject1/mylib.jar already exists.

Stack trace:
   java/lang/Throwable.<init>()V
   java/lang/Throwable.<init>(Ljava/lang/String;)V
   org/eclipse/core/runtime/CoreException.<init>
(Lorg/eclipse/core/runtime/IStatus;)V
   org/eclipse/core/internal/resources/ResourceException.<init>
(ILorg/eclipse/core/runtime/IPath;Ljava/lang/String;Ljava/lang/Throwable;)V
   org/eclipse/core/internal/resources/Resource.checkDoesNotExist(IZ)V
   org/eclipse/core/internal/resources/Resource.checkDoesNotExist()V
   org/eclipse/core/internal/resources/File.create
(Ljava/io/InputStream;ZLorg/eclipse/core/runtime/IProgressMonitor;)V
...
Comment 1 Philipe Mulet CLA 2001-12-10 17:38:33 EST
Is the new builder name environment properly closing the opened JAR/ZIP files ? 
Look at the batch environment for an example (added #reset API).
Comment 2 Kent Johnson CLA 2001-12-11 16:07:53 EST
Now close the zip file when the build is finished.
Comment 3 Vitor CLA 2009-09-24 12:32:06 EDT
Hello world !!!!!!!!!!
Comment 4 Torsten Stolpmann CLA 2009-10-20 11:32:03 EDT
Hello world.
Comment 5 anhnt CLA 2010-05-24 13:08:32 EDT
Hello world.
Comment 6 Iván García Sainz-Aja CLA 2011-12-09 10:05:58 EST
Hello world.