Bug 487574 - Open from Clipboard does not handle '$' separator
Summary: Open from Clipboard does not handle '$' separator
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.4.2   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-10 05:55 EST by Al Bundy CLA
Modified: 2022-11-03 15:56 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Al Bundy CLA 2016-02-10 05:55:34 EST
If you copy a stacktrace-line with a leading "at" and try to use "Open from Clipboard" you'll get a dialog with the info "Clipboard content could not be opened, refine it and try again".

If you copy the line without the at or remove the at in the mentioned dialog the type will be opened.

example:
<pre>
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
</pre>
Comment 1 Dani Megert CLA 2016-02-10 08:44:06 EST
This works fine for me using 4.6 M5 from here:
http://download.eclipse.org/eclipse/downloads/drops4/S-4.6M5-201601282000/
Comment 2 Al Bundy CLA 2016-02-15 16:37:27 EST
Works with eclipse mars as expected.
Comment 3 Al Bundy CLA 2017-05-02 03:50:12 EDT
But there still seems to be an issue if you copy a line from a stacktrace including an inner class.

For Example: java.io.File$TempDirectory(File.java:1882)
--> I'm not sure if the syntax is correct because I have currently no real-live example.

If I open this line from clipboard I would expect to land in File-class line 1882.
The current behavior is the open from clipboard show the small dialog with the pasted value to indicate that there is something wrong.
Comment 4 Al Bundy CLA 2017-05-02 03:50:55 EDT
Btw. I'm working on latest neon-version...
Comment 5 Sarika Sinha CLA 2017-07-31 05:35:57 EDT
I am able to reproduce the problem for Inner class.

@Manoj,
org.eclipse.jdt.core.search.SearchEngine.searchAllTypeNames(char[], int, char[], int, int, IJavaSearchScope, TypeNameMatchRequestor, int, IProgressMonitor)

This API is used for getting the type name matches, How should we pass the class name with Inner class, I tried both "$" and "." but doesn't find any match.
Comment 6 Sarika Sinha CLA 2018-01-04 06:33:55 EST
@Manoj, any idea?
Comment 7 Sarika Sinha CLA 2018-04-13 03:03:43 EDT
Moving out of 4.8.
Comment 8 Al Bundy CLA 2018-11-18 08:49:57 EST
still an issue in 4.9
Comment 9 Eclipse Genie CLA 2020-11-08 01:17:26 EST
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.
Comment 10 Sarika Sinha CLA 2020-11-09 01:25:24 EST
Issue is not resolved.
Comment 11 Eclipse Genie CLA 2022-11-03 15:56:11 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.