Coder Social home page Coder Social logo

Comments (7)

Storyyeller avatar Storyyeller commented on June 1, 2024

Can you post the complete jar please?

from krakatau.

greenozon avatar greenozon commented on June 1, 2024

sure
https://www.sendspace.com/file/gx967g
delit after get
https://www.sendspace.com/delete/gx967g/96b2e558af10d4bffc7ccf988a00e5a8

  1. the other question is: why does the Krakatau not see the generic class like this:
//ClassLoaderError: 
//ClassNotFoundException: javax/crypto/NoSuchPaddingException 

from krakatau.

Storyyeller avatar Storyyeller commented on June 1, 2024

Ok, I'll look into it.

As for the javax/crypto/NoSuchPaddingException thing, that's because it needed to explicitly know about every jar that contains referenced classes.In the case of NoSuchPaddingException, it is in jce.jar, rather than the core rt.jar, so you need to pass the path to jce.jar using the -path option.

from krakatau.

Storyyeller avatar Storyyeller commented on June 1, 2024

This particular bug should be fixed now, but there's a much trickier bug I found in a different class in the same jar.

Anyway, I'd recommend running Krakatau with assertions disabled (pass -O to python). Assertions sometimes reveal issues that could lead to incorrect results (like the second case I found), but they're mostly useful for debugging and often harmless (like in this case). Plus, running with assertions disabled makes decompilation slightly faster.

from krakatau.

greenozon avatar greenozon commented on June 1, 2024

Thanks a lot for your time & findings!
Good point regarding jce.jar, but how about this idea: if the class is a native JRE class, so the tool will be nice enough to scan the JRE/lib for *.jar and to know about native classes?
anyway, that's up to you

I'll try with -O key and also with adding jce.jar

from krakatau.

Storyyeller avatar Storyyeller commented on June 1, 2024

I've thought about that, but the method of finding jre classes differs from platform to platform and it's obviously hard to test on just one computer.

from krakatau.

Storyyeller avatar Storyyeller commented on June 1, 2024

I fixed two more bugs and the jar now decompiles without any errors.

Thanks for reporting it. The assertion failures aren't really meaningful, but I did catch one real bug in the process.

from krakatau.

Related Issues (20)

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.