Bug 334666 - Attempt to decompile a java class file and get an error about the editor
Summary: Attempt to decompile a java class file and get an error about the editor
Status: VERIFIED NOT_ECLIPSE
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.7 M5   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-18 11:16 EST by James Lopes CLA
Modified: 2011-01-25 04:57 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Lopes CLA 2011-01-18 11:16:28 EST
Steps: Attempt to decompile a java class file.

org.eclipse.core.runtime.CoreException: The Class File Viewer cannot handle the given input ('org.eclipse.ui.ide.FileStoreEditorInput').
	at org.eclipse.jdt.internal.ui.javaeditor.ClassFileEditor.doSetInput(ClassFileEditor.java:646)
	at org.eclipse.ui.texteditor.AbstractTextEditor$19.run(AbstractTextEditor.java:3043)
	at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
	at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
	at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:759)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
	at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:756)
	at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2600)
	at org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(AbstractTextEditor.java:3061)
	at org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:3088)
	at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:798)
	at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:647)
	at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
	at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
	at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2863)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2768)
	at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2760)
	at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2711)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2707)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2691)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2674)
	at org.eclipse.ui.internal.ReopenEditorMenu.open(ReopenEditorMenu.java:296)
	at org.eclipse.ui.internal.ReopenEditorMenu.access$2(ReopenEditorMenu.java:280)
	at org.eclipse.ui.internal.ReopenEditorMenu$3.widgetSelected(ReopenEditorMenu.java:248)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
Comment 1 James Lopes CLA 2011-01-18 11:18:09 EST
Not sure if this is related to the JDT just chose something.
Comment 2 Olivier Thomann CLA 2011-01-18 11:58:45 EST
Could you please provide:
- external bundle that you installed to disassemble the code
- the build id
- steps to reproduce
?

Thanks.
Comment 3 Olivier Thomann CLA 2011-01-18 11:59:12 EST
This is not a blocker. Setting to normal for now at least till I get more details about how this happens.
Comment 4 James Lopes CLA 2011-01-18 12:54:16 EST
I added the JAD plugin to Helios and tried to open a java class. I then got the error thats all.

You'll need to walk me through anything you'll need from me.
Comment 5 James Lopes CLA 2011-01-18 12:55:37 EST
I chose blocker because I can't use the decomplier, I'm blocked from its use.
Comment 6 Olivier Thomann CLA 2011-01-18 17:04:45 EST
(In reply to comment #4)
> I added the JAD plugin to Helios and tried to open a java class. I then got the
> error thats all.
If you are talking about:
http://jadclipse.sourceforge.net/wiki/index.php/Main_Page

It looks like it supports only Eclipse 3.3.
 
> You'll need to walk me through anything you'll need from me.
Please go to: Help>About Eclipse SDK>Installation Details>Plug-ins
Find the line that contains: org.eclipse.jdt.ui and org.eclipse.jdt.core and report back the version id.
My guess is that this plugin is using internals of the jdt code that have changed. I would report the bug against the JAD plugin.

The error only means that you are getting an input of type org.eclipse.ui.ide.FileStoreEditorInput instead of a org.eclipse.jdt.internal.ui.javaeditor.IClassFileEditorInput.

I don't think there is anything wrong with Eclipse. I'd rather say that you should report the problem against the JAD plug-in to request an update that would work with Helios.

I am closing as NOT_ECLIPSE as I don't believe that Eclipse has anything to do with this issue unless you can show me that this plug-in is supposed to work on Helios.
Comment 7 Remy Suen CLA 2011-01-18 17:18:35 EST
(In reply to comment #6)
> I am closing as NOT_ECLIPSE as I don't believe that Eclipse has anything to do
> with this issue unless you can show me that this plug-in is supposed to work on
> Helios.
Comment 8 James Lopes CLA 2011-01-18 17:43:42 EST
Thanks for the help
Comment 9 Jay Arthanareeswaran CLA 2011-01-25 04:57:55 EST
Verified for 3.7M5