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

[Bug]when you go to the define of a class, you will get NPE error #506

Open
rockxsj opened this issue Nov 20, 2020 · 6 comments
Open

[Bug]when you go to the define of a class, you will get NPE error #506

rockxsj opened this issue Nov 20, 2020 · 6 comments
Assignees
Labels

Comments

@rockxsj
Copy link

rockxsj commented Nov 20, 2020

Environment:

  • VS Code Version: 1.51.1
  • Extension Version: v0.10.0
  • JDK Type & Version: jdk-11.0.9+11

版本: 1.51.1 (user setup)
提交: e5a624b788d92b8d34d1392e4c4d9789406efe8f
日期: 2020-11-10T23:34:32.027Z
Electron: 9.3.3
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Windows_NT x64 10.0.19042

Step to Reproduce:
just click go to the define of any jdk buildin class.
Expected Behavior:
open the class file.
Actual Behavior:

java.io.FileNotFoundException: /java.base/java.time.chrono/ChronoZonedDateTime.class (No such file or directory)
-----------------------------------------------------------------------------------------

	at java.base/java.io.FileInputStream.open0(Native Method)
	at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
	at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
	at de.fernflower.main.decompiler.ConsoleDecompiler.getBytecodeStream(Unknown Source)
	at cz.a(Unknown Source)
	at i.a(Unknown Source)
	at i.a(Unknown Source)
	at de.fernflower.main.decompiler.ConsoleDecompiler.addSpace(Unknown Source)

-----------------------------------------------------------------------------------------
	at de.fernflower.main.decompiler.ConsoleDecompiler.main(Unknown Source)

-----------------------------------------------------------------------------------------
java.lang.NullPointerException
-----------------------------------------------------------------------------------------

	at bW.a(Unknown Source)
	at bW.<init>(Unknown Source)
	at i.a(Unknown Source)
	at i.a(Unknown Source)
	at de.fernflower.main.decompiler.ConsoleDecompiler.addSpace(Unknown Source)
	at de.fernflower.main.decompiler.ConsoleDecompiler.main(Unknown Source)
-----------------------------------------------------------------------------------------

Related Issues:

@testforstephen
Copy link
Contributor

at de.fernflower.main.decompiler.ConsoleDecompiler.main(Unknown Source)

thanks for reporting the issue. I see the NPE is threw by the decompiler extension. Which Java decompiler extension do you install?

@rockxsj
Copy link
Author

rockxsj commented Nov 20, 2020

decompiler

Thanks for reply! The decompiler extension is dgileadi.java-decompiler, and version is v0.0.2

@testforstephen
Copy link
Contributor

this issue should be duplicated with dgileadi/vscode-java-decompiler#8, i would suggest to move the issue to there for further discussion.

@akaroml
Copy link
Member

akaroml commented Dec 4, 2020

@testforstephen is there a conclusion here?

@testforstephen
Copy link
Contributor

This is the issue from the decomplier extension, the language features not work in the decompiled code at the moment. Need improve the decompiler extension to make it better integrated with the Java tooling.

@testforstephen
Copy link
Contributor

@rockxsj As we know, the extension cweijan.vscode-office will cause this error, see redhat-developer/vscode-java#1741 (comment).

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

No branches or pull requests

3 participants