Bug 178156
Summary: | [mis-compilation] Cannot create basic java class | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Ricky Ng-Adam <rngadam> | ||||
Component: | eclipse | Assignee: | Andrew Overholt <overholt> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | rawhide | CC: | aph, green, ifoox, mckinlay, tromey | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | i386 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2006-02-07 16:37:25 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Ricky Ng-Adam
2006-01-18 03:14:53 UTC
I can't duplicate this. Did you try with a clean workspace? You can use a different workspace with: eclipse -data <new workspace location ex. workspace2> Created attachment 123465 [details]
screenshot from clean workspace
Hmm. Can you temporarily move ~/.eclipse out of the way? mv ~/.eclipse{,.beforetest178156} eclipse -data <newworkspace> mv ~/.eclipse{.beforetest178156,} (or something like that) Also, can you give me the output of the following, please: which java java -version which javac javac -version uname -a rpm -q java-1.4.2-gcj-compat{,-devel} rpm -q gcc-java I am getting this now as well. This is what is in <workspace>/.metadata/.log: Java Model Exception: Java Model Status [Test2 [in [Working copy] Test2.java [in <default> [in src [in Test]]]] does not exist] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:468) at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed (JavaElement.java:499) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:232) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:218) at org.eclipse.jdt.internal.core.JavaElement.getChildren (JavaElement.java:173) at org.eclipse.jdt.internal.core.JavaElement.getChildrenOfType (JavaElement.java:187) at org.eclipse.jdt.internal.core.SourceType.getMethods (SourceType.java:355) at org.eclipse.jdt.ui.wizards.NewTypeWizardPage.createInheritedMethods (NewTypeWizardPage.java:2227) at org.eclipse.jdt.ui.wizards.NewClassWizardPage.createTypeMembers (NewClassWizardPage.java:249) at org.eclipse.jdt.ui.wizards.NewTypeWizardPage.createType (NewTypeWizardPage.java:1852) at org.eclipse.jdt.internal.ui.wizards.NewClassCreationWizard.finishPage (NewClassCreationWizard.java:58) at org.eclipse.jdt.internal.ui.wizards.NewElementWizard$2.run (NewElementWizard.java:117) at org.eclipse.jdt.internal.core.BatchOperation.executeOperation (BatchOperation.java:39) at org.eclipse.jdt.internal.core.JavaModelOperation.run (JavaModelStatus.java:718) at org.eclipse.core.internal.resources.Workspace.run (Workspace.java:1719) at org.eclipse.jdt.core.JavaCore.run (JavaCore.java:3761) at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run (WorkbenchRunnableAdapter.java:87) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run (ModalContext.java:113) We will try to come up with a test case that is reproduceable. Thanks for bringing this to my attention, Ricky. Removing /usr/lib/gcj/eclipse/org.eclipse.jdt.core_3.1.1.jar.so{,.db} and then doing a rebuild-gcj-db works around this issue so it appears to be one of native compilation and not a class library issue. I haven't tried any other arches, but this happens on at least i386. Updating summary. This should probably be added as an FC blocker. (In reply to comment #6) > I haven't tried any other arches, but this happens on at least i386. This happens on x86-64 as well. *** Bug 179070 has been marked as a duplicate of this bug. *** I'm debugging this. This is fixed in eclipse-3.1.2-1jpp_4fc which hit rawhide today. It was compiled against gcc-4.1.0-0.23 which contains Andrew (H)'s fix. Thanks again, Andrew (H)! |