Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 99448

Summary: [navigation] IllegalArgumentException when copying empty javadoc text
Product: [Eclipse Project] JDT Reporter: Grant Gayed <grant_gayed>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: ---   
Hardware: All   
OS: Solaris-Motif   
Whiteboard: stalebug

Description Grant Gayed CLA 2005-06-10 15:27:08 EDT
3.1RC2 noon build
- observed on hpux and solaris
- probably happens on platforms where a Browser widget is not available

- open the javadoc view and any class that has javadoc
- click somewhere in the opened class' javadoc  so that the javadoc view is
populated
- select some text in the javadoc view
- left-click in the editor
- right-click in the javadoc view and select Copy, and you'll get the following
exception:

java.lang.IllegalArgumentException: Argument not valid
	at org.eclipse.swt.SWT.error(SWT.java:2924)
	at org.eclipse.swt.SWT.error(SWT.java:2863)
	at org.eclipse.swt.SWT.error(SWT.java:2834)
	at org.eclipse.swt.dnd.DND.error(DND.java:262)
	at org.eclipse.swt.dnd.DND.error(DND.java:208)
	at org.eclipse.swt.dnd.Clipboard.setContents(Clipboard.java:534)
	at org.eclipse.swt.dnd.Clipboard.setContents(Clipboard.java:465)
	at
org.eclipse.jdt.internal.ui.infoviews.CopyToClipboardAction.copyToClipboard(CopyToClipboardAction.java:68)
	at
org.eclipse.jdt.internal.ui.infoviews.CopyToClipboardAction.run(CopyToClipboardAction.java:60)
	at
org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:226)
	at
org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:198)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:996)
	at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
	at
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
	at
org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:747)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3042)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2731)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1716)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1680)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:365)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
	at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
	at org.eclipse.core.launcher.Main.run(Main.java:973)
	at org.eclipse.core.launcher.Main.main(Main.java:948)
Comment 1 Eclipse Genie CLA 2020-05-07 13:37:54 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. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. 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.