编译的时候出现类型转换错误,window环境下没有问题,但是linux编译出现以下错误,错误log如下:-compile:[javac] Compiling 948 source files to ../trunk/bin/classes[javac] ../Fragment.java:495: error: inconvertible types [javac] int msgId = (int) msg.obj; [javac] ^ [javac] required: int [javac] found: Object[javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 1 error有人知道什么原因?
linux编译
最新推荐文章于 2024-08-25 20:36:43 发布
本文记录了一个在Linux环境下编译Java程序时遇到的类型转换错误,具体表现为尝试将Object类型的变量转换为int类型导致编译失败。
3706

被折叠的 条评论
为什么被折叠?



