开发者

Intellij Idea does not display javac compiler warnings of referencing proprietary API

开发者 https://www.devze.com 2023-02-09 14:35 出处:网络
I\'m w开发者_如何学Goorking with Intellij Idea 10 and Java 6 JDK Update 7. When I run Build --> Rebuild Project command, the javac compilation (using parameter -Xlint:all) displays warnings, but fo

I'm w开发者_如何学Goorking with Intellij Idea 10 and Java 6 JDK Update 7. When I run Build --> Rebuild Project command, the javac compilation (using parameter -Xlint:all) displays warnings, but for some reason does not include warnings about the source code referencing Sun proprietary API classes.

When I run javac (yes, the same version that is referenced from Idea) manually from the command line, I can see those warnings all right. And I would like to see the same information in Idea as well. How do I achieve this?


It seems to be a bug. Could be that IDEA doesn't support some of the warning types and doesn't report them. Please submit an issue with the sample project attached.

0

精彩评论

暂无评论...
验证码 换一张
取 消