Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321347 - JavaModelException deleting type
Summary: JavaModelException deleting type
Status: CLOSED WONTFIX
Alias: None
Product: PDE
Classification: Eclipse Project
Component: API Tools (show other bugs)
Version: 3.6   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PDE API Tools Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-30 10:02 EDT by Michael Rennie CLA
Modified: 2019-05-18 14:34 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Rennie CLA 2010-07-30 10:02:41 EDT
code from HEAD

After refactoring a type (rename) I removed a method from a class, and then decided to just delete the class. After doing so I got the following exception in the error log:

[Working copy] RhinoImageDescriptor.java [in org.eclipse.wst.jsdt.debug.internal.rhino.ui [in src [in org.eclipse.wst.jsdt.debug.rhino.ui]]] does not exist

with:

Java Model Exception: Java Model Status [[Working copy] RhinoImageDescriptor.java [in org.eclipse.wst.jsdt.debug.internal.rhino.ui [in src [in org.eclipse.wst.jsdt.debug.rhino.ui]]] does not exist]
at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException(JavaElement.java:492)
at org.eclipse.jdt.internal.core.Openable.getUnderlyingResource(Openable.java:343)
at org.eclipse.jdt.internal.core.CompilationUnit.getUnderlyingResource(CompilationUnit.java:930)
at org.eclipse.jdt.internal.core.CompilationUnit.getCorrespondingResource(CompilationUnit.java:693)
at org.eclipse.pde.api.tools.internal.util.Util.getResource(Util.java:2180)
at org.eclipse.pde.api.tools.internal.builder.BaseApiAnalyzer.checkUnusedProblemFilters(BaseApiAnalyzer.java:335)
at org.eclipse.pde.api.tools.internal.builder.BaseApiAnalyzer.analyzeComponent(BaseApiAnalyzer.java:269)
at org.eclipse.pde.api.tools.internal.builder.IncrementalApiBuilder.build(IncrementalApiBuilder.java:272)
at org.eclipse.pde.api.tools.internal.builder.IncrementalApiBuilder.build(IncrementalApiBuilder.java:230)
at org.eclipse.pde.api.tools.internal.builder.ApiAnalysisBuilder.build(ApiAnalysisBuilder.java:314)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:629)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:172)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:203)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:255)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:258)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:311)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:343)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:242)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

The steps that caused it:

1. rename a class
2. delete something out of it - and DO NOT save it
3. delete it
Comment 1 Eclipse Genie CLA 2019-05-18 14:34:35 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.