-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
using method name to find unqualified Stacktraces in Java Stack Trace #498
Conversation
a9fe1ce
to
5e2b141
Compare
...bug.tests/console tests/org/eclipse/jdt/debug/tests/console/JavaStackTraceAmbiguityTest.java
Show resolved
Hide resolved
...lipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/console/JavaStackTraceHyperlink.java
Outdated
Show resolved
Hide resolved
...lipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/console/JavaStackTraceHyperlink.java
Show resolved
Hide resolved
...lipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/console/JavaStackTraceHyperlink.java
Outdated
Show resolved
Hide resolved
...lipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/console/JavaStackTraceHyperlink.java
Outdated
Show resolved
Hide resolved
generally looks good and has a Junit test :-) i plan to actually test the PR later |
e249738
to
6ffd199
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i tested the change with
Project.writeDescription(int) line: 1402
in platform workspace and ended up in exception:
java.lang.ClassCastException: class org.eclipse.jdt.internal.core.BinaryType cannot be cast to class org.eclipse.jdt.internal.core.SourceType (org.eclipse.jdt.internal.core.BinaryType and org.eclipse.jdt.internal.core.SourceType are in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @35f7b857)
at org.eclipse.jdt.internal.debug.ui.console.JavaStackTraceHyperlink$3.runInUIThread(JavaStackTraceHyperlink.java:215)
at org.eclipse.ui.progress.UIJob.lambda$0(UIJob.java:148)
...lipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/console/JavaStackTraceHyperlink.java
Outdated
Show resolved
Hide resolved
13316ba
to
2e6f29b
Compare
0615fd3
to
629b071
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no exceptions, but feels like it still has issues to find methods with two parameters. here are some examples:
Realm.runWithDefault(Realm, Runnable) line: 339
PlatformUI.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 173
should have found org.eclipse.core.databinding.observable.Realm
DirectMethodHandleAccessor.invokeImpl(Object, Object[]) line: 155
Method.invoke(Object, Object...) line: 580
Main.invokeFramework(String[], URL[]) line: 668
And i get StringIndexOutOfBoundsException on parameterized types:
|
@jukzi thanks for the additional cases, will make changes and fix the issues. |
8442ec6
to
eaf8353
Compare
37a6ebd
to
7958ba4
Compare
Hi @jukzi ,
|
...lipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/console/JavaStackTraceHyperlink.java
Outdated
Show resolved
Hide resolved
2d09bba
to
8422b30
Compare
Please figure out why the Build fails InstanceMainMethodsTests - may be related to the Java23 merge @jarthana |
424398c
to
3ff7bce
Compare
The tests are also failing on master: |
these tests are unrelated to the current changes, will raise issue for those now |
@jukzi those 3 tests are now passing for all builds now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have tested and it works like a charm. Very good improvement. thanks.
Found two other stacktraces that do not work yet(wrong linenumber jumped to):
ScheduledThreadPoolExecutor(ThreadPoolExecutor).runWorker(ThreadPoolExecutor$Worker) line: 1130
ThreadPoolExecutor.runWorker(ThreadPoolExecutor$Worker) line: 1130
Please let me know if you want to fix those too in this PR. Otherwise we can also submit the current state as it already is an improvement as is.
hi @jukzi ,fixed those and added additional tests for that in the latest commit. |
review changes + Additional changes
927cabb
to
fd0ce3e
Compare
@jukzi all commits have squashed into one now. (includes additional case's fix) |
@SougandhS thanks! let's try it in real :-) |
Thank you @jukzi :) |
Using method name to find unqualified Stacktraces
Fix for - #115
What it does
Resolves the ambiguity in results generated when fully qualified class name is not provided in java stack trace console
How to test
Author checklist