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

String switch statements with fall-through are unhandled #249

Closed
joankaradimov opened this issue Jun 26, 2019 · 5 comments
Closed

String switch statements with fall-through are unhandled #249

joankaradimov opened this issue Jun 26, 2019 · 5 comments

Comments

@joankaradimov
Copy link

String switch statements are correctly decompiled to Java code only if they have no fallthroughs in them. In case of a fallthrough only the byte code is displayed.

JD-GUI: 1.6.1

@emmanue1
Copy link
Collaborator

Could you send a CLASS file ?

@joankaradimov
Copy link
Author

I think I was wrong about the fallthrough. I was not able to reproduce it the way I thought I could.

I ended up stripping a piece of our production code. I hope it's not too much of a mess:
MimeTypeDetector.zip

@emmanue1
Copy link
Collaborator

emmanue1 commented Jul 1, 2019

Java 12 compilator. Ok. Maybe it uses a new control flow. I'll take a look.

@emmanue1
Copy link
Collaborator

emmanue1 commented Jul 1, 2019

Find. Just a bug again.

@emmanue1
Copy link
Collaborator

emmanue1 commented Jul 1, 2019

Fixed. See java-decompiler/jd-core@cefe750

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

2 participants