什么是"忽略InnerClasses属性"报警输出编译过程中?过程中、属性、QUOT、InnerClasses

2023-09-12 01:20:07 作者:听灵魂诉说

我是新来的Andr​​oid和现在用的是 Ical4j 库解析ICS(Outlook日历)文件。

I am new to Android and am using the Ical4j library for parsing ICS (Outlook calendar) files.

然而,当我建立我在Eclipse的应用程序,以下警告多次出现在控制台:

However, when I build my application in Eclipse, the following warning appears many times in the console:

[2010-07-22十五点58分31秒 - 谷歌日历上传]警告:忽略InnerClasses属性为不附带关联EnclosingMethod属性的匿名内部类。 (这个类是由一个破碎的编译器可能产生的。)

[2010-07-22 15:58:31 - Google Calendar Upload] warning: Ignoring InnerClasses attribute for an anonymous inner class that doesn't come with an associated EnclosingMethod attribute. (This class was probably produced by a broken compiler.)

这影响这是否有?我该如何解决此问题?

Which implications does this have? How can I resolve this?

推荐答案

包括jar文件时,这是很常见的。虽然警告是没有什么可担心的,如果你只是使用API​​通常情况下,你应该能够摆脱他们通过在Eclipse编译ical4j自己从源(建立一个新的罐子,或者刚落源到您的自己的源文件夹)。虽然我要强调的是,除非你真正得到的问题,这不是什么好担心的。

This is quite common when including jar files. Although the warning isn't anything to worry about if you are just using the API normally, you should be able to get rid of them by compiling ical4j yourself from source within Eclipse (either build a new jar, or just drop the source into your own source folder). Though I should stress that unless you actually get problems, this isn't something to worry about.