Comments (4)
It is not trivial. Usually the line numbers from exception stack trace are not matching the line numbers in decompiled class so that I am intentionally not showing it. However decompiler could be improved / in detail be replaced by that one used by IntelliJ which better decompiles classes in case of matching origin class source line numbers. Still PR is appreciated 😉 in other words, covered by #13
from felix-search-webconsole-plugin.
While still not trivial, it isn't as complex as requiring a different decompilation library. You could use the output from a decompilation to match the outputted source to the original source (as listed in the line number table in the compiled class.
You would start by not using Decompilter.decompile
. Instead, copy most of the code there (thank you Apache License) into your OsgiExplorer.decompileClass
. Then, use the output of Language.decompileType
(called here, which returns a TypeDecompilationResults
. That result type contains a list of LineNumberPosition
, which can be used to match line numbers in the outputted source, with the original line numbers from the decompiled class.
Again, I am not trying to trivialize it, just giving some information for anyone who has the time to dig in, develop it, and test it.
from felix-search-webconsole-plugin.
@paul-bjorkstrand thanks for nice analysis, as you stated
anyone who has the time to dig in, develop it, and test it.
looking for such awesome person :)
from felix-search-webconsole-plugin.
2.0.0 has sth like that:
from felix-search-webconsole-plugin.
Related Issues (18)
- Download sources in zip file (enhancement request) HOT 2
- Readme improvement
- Error starting HOT 2
- Gathering selected elements
- Replace decompiler with Fernflower HOT 4
- Download selected bundles HOT 1
- Move a "Search" button to a separate tab in a Felix console
- Add Depfinder-like functionality HOT 3
- The procyon 0.5.32 decompiler is not compatible with JAVA 9 and above
- Take OSGi objectClass into account when sorting the output HOT 1
- Dedicated button for downloading all bundles
- Extend pipeline to push jars into branch to simplify maven usage. HOT 1
- Plugin stopped working on latest AEM SDK version HOT 7
- run_prettify.js is not available HOT 2
- Pure Felix cases HOT 1
- Adding 'Search' button instead of typeahead HOT 1
- 'See other classes' while previewing class source HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from felix-search-webconsole-plugin.