This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 269820 - Javac Warnings not shown in Action Items or elsewhere
Summary: Javac Warnings not shown in Action Items or elsewhere
Status: RESOLVED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: Dev
Hardware: PC Linux
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-14 11:51 UTC by Jaroslav Tulach
Modified: 2017-03-08 15:22 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2017-02-14 11:51:15 UTC
I am working on a "mx" based project. Use following commands to get it as well:

$ git clone https://github.com/graalvm/mx.git
$ git clone https://github.com/graalvm/truffle.git
$ cd truffle
$ ../mx/mx netbeansinit
$ netbeans --open truffle/com.oracle.*

that will open our projects in NetBeans. There is a lot of @SuppressWarnings and we really use them. Enough to remove one of them and our build fails.

However, when using the NetBeans projects (with compile on save on), there is no indication (in editor gutter or in action items window) that there are going to be warnings.

On the other hand, there are warnings in the Action Items window that aren't important for us (usage of sun.misc.* classes) and we'd like to suppress them.
Comment 1 Jaroslav Tulach 2017-02-14 11:55:36 UTC
Sample warnings I'd like to see displayed:

truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/parser/TypeSystemParser.java:    @SuppressWarnings("unused")
truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/expression/Scanner.frame:@SuppressWarnings({"rawtypes"})
truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/generator/DefaultNodeGenFactory.java:        @SuppressWarnings("static-method")
truffle/com.oracle.truffle.api.vm/src/com/oracle/truffle/api/vm/PolyglotEngine.java:        @SuppressWarnings("try")
truffle/com.oracle.truffle.api.vm/src/com/oracle/truffle/api/vm/IncompleteSourceException.java:@SuppressWarnings("serial")
truffle/com.oracle.truffle.api.interop.java/src/com/oracle/truffle/api/interop/java/ArrayReadNode.java:    @SuppressWarnings("unchecked")
truffle/com.oracle.truffle.api.instrumentation.test/src/com/oracle/truffle/api/instrumentation/test/examples/DebuggerExampleTest.java:    @SuppressWarnings("hiding")
truffle/com.oracle.truffle.api.instrumentation/src/com/oracle/truffle/api/instrumentation/EventContext.java:    @SuppressWarnings("cast")
truffle/com.oracle.truffle.api.debug/src/com/oracle/truffle/api/debug/ExecutionEvent.java:@SuppressWarnings("javadoc")
truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/ControlFlowException.java:    @SuppressWarnings("sync-override")

Grep was done on revision 0e4a76c7a8504b3e4a0e2880a4eb6bd674ad99e9
Comment 2 Svata Dedic 2017-03-08 15:22:51 UTC
In fact, the javac warning based items can be displayed. mx netbeansinit uses per project hint configuration, which completely overrides the Tools | Options / editor/hints settings.

Open project settings, go to Hints node and check "Standard Javac warnings".

Filter out unwanted hints with custom action filter, or uncheck the unncessary hints in the project options.