Code Monkey home page Code Monkey logo

Comments (4)

pun-ky avatar pun-ky commented on May 24, 2024

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.

paul-bjorkstrand avatar paul-bjorkstrand commented on May 24, 2024

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.

pun-ky avatar pun-ky commented on May 24, 2024

@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.

krystian-panek-wttech avatar krystian-panek-wttech commented on May 24, 2024

2.0.0 has sth like that:

image

from felix-search-webconsole-plugin.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.