Skip to content
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

Decompiling *.class leads to losing the package name #42

Open
ildar-shaimordanov opened this issue Oct 16, 2020 · 0 comments
Open

Decompiling *.class leads to losing the package name #42

ildar-shaimordanov opened this issue Oct 16, 2020 · 0 comments

Comments

@ildar-shaimordanov
Copy link
Contributor

ildar-shaimordanov commented Oct 16, 2020

I am not so familiar with java to distinguish if the issue has to do with the tool or the JD-CORE. Please review and advice.

C:\Temp>jd-cli -v
jd-cli version 1.1.0.Final - Copyright (C) 2015 Josef Cacek

There is simple example:

package myPackage;

class MyClass {
}

JD-CLI results to (no package):

C:\Temp>jd-cli -g OFF MyClass.class
class MyClass {}

The well-known and old-fashion JAD results to (package name is in place):

C:\Temp>jad -p MyClass.class
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
// Source File Name:   MyClass.java

package myPackage;


class MyClass
{

    MyClass()
    {
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant