Intellij IDEA "Decompiled.class 文件,字节码版本:52.0 (Java 8

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/34987950/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 16:12:25  来源:igfitidea点击:

Intellij IDEA "Decompiled.class file, bytecodeversion:52.0 (Java 8

javaintellij-idea

提问by Ilya G

I'm new to java(started to use 1 year ago). I was using Intellij IDEA community edition. Today decided install full version of it and something went wrong. It always stays in kind of "Decompiled" mode and does not allow to edit file or work with that. Went back to community edition. The same in "Decompiled mode". Can you please help me how to get to normal mode to work. Any help appreciated

我是 Java 新手(1 年前开始使用)。我使用的是 Intellij IDEA 社区版。今天决定安装它的完整版本,但出了点问题。它始终处于“反编译”模式,不允许编辑文件或使用该模式。回到社区版。在“反编译模式”中也是如此。你能帮我如何进入正常模式工作吗?任何帮助表示赞赏

enter image description here

在此处输入图片说明

采纳答案by Jon Skeet

It looks like you're opening the class files within the left hand navigation window. Find the source code instead (the .javafiles) and open those instead - then everything should be normal.

看起来您是在左侧导航窗口中打开类文件。找到源代码(.java文件)并打开它们 - 然后一切都应该正常了。

(Look at home05\Solution.javafor example, instead of home05\Solution.class...)

(看home05\Solution.java例如,而不是home05\Solution.class......)

回答by Anand Sk

Please look at the "src" folder and not the "out" folder. The out folder in intellij shows the decompile version of the code.

请查看“src”文件夹而不是“out”文件夹。intellij 中的 out 文件夹显示了代码的反编译版本。