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.
Created attachment 141283 [details] Sample class for Java Compiler plugin tests. Support for Java ME specific hints and warnings should be added. This should provide a) inline interactive hints when developer is typing a code b) log warnings in the build output window with the source code navigation. This can be implemented by: 1) Leveraging the output of the Java Compiler plugin 2) Implementing the NetBeans plugin for extended warnings with fine-grained control over the level of warnings from the NetBeans settings. 3) Combination of 1 and 2 The structures that should be flagged: - boxing and unboxing - assertions - switch using string or enum - vararg methods declaration and usage - finalizers - lambda expressions - default and static methods in interfaces More information on the ME specific Java Compiler plugin: Javac plugin generates warnings for source code constructions which not supported in CLDC or have significant footprint and/or memory overhead. Example: HelloWorld.java:15: warning: int is boxed into Integer I2 = 1; ^ Usage: javac -processorpath me_plugin.jar [-AdebugMEPlugin] <other javac parameters> javac -classpath me_plugin.jar -processor cldc.plugin.Processor [-AdebugMEPlugin] <other javac parameters> Plugin silently ignores most errors. Command line option -AdebugMEPlugin allows to get additional information about internal errors, it should be used for testing. JDK 8 is required. Plugin uses new API to receive control at later compilation stage than usual annotation processors.
Created attachment 141284 [details] Sample Java Compiler output for the Example class.