Why eclipse is generating argument names as arg0,arg1,arg2…. for methods?

Eclipse can’t work out the arguments because it can’t find the source or javadoc attachments. Make sure your source is attached. To check, click on the method call readXXX and press F3 which should open the method declaration. If the source is not attached, Eclipse will say “Source not found” and will allow you to … Read more

does intellij support variables in launch configurations?

There is no direct equivalent in IntelliJ. To make it easier to share configurations or other project settings between multiple developers, you can use path variables (Settings | Path Variables, see the Help for more information). To customize the options before launching the run configuration, enable the “Before launch | Show Settings” option in the … Read more

Eclipse bug? Switching on a null with only default case

This is a bug. Here’s the specified behavior for a switch statement according to the Java Language Specification, 3rd Edition: JLS 14.11 The switch Statement SwitchStatement: switch ( Expression ) SwitchBlock When the switch statement is executed, first the Expression is evaluated. If the Expression evaluates to null, a NullPointerException is thrown and the entire … Read more

disable eclipse auto completion

Well I found how to stop the tags auto-closing. For some reason it’s under the Web | HTML Files preferences (even for a PHP file). I realise PHP is embedded in HTML but it seems odd the way the Editor options cross over like this. You need to restart Eclipse for this change to work.

Eclipse giving me Invalid arguments ‘ Candidates are: void * memset(void *, int, ?) ‘ though I know the args are good

In Eclipse: right click the project click properties Expand “C/C++ general“ the item in the left hand tree view by clicking the arrow, (just clicking the item itself does not expand the suboptions) From the suboptions select “Preprocessor Include Paths, Macros etc.“ Click the “Providers“ tab Check the box next to “CDT GCC Built-in Compiler … Read more

How do I get IntelliJ to give me a warning if I have failed to provide JavaDoc description/annotation for public fields and methods?

For older versions of IntelliJ: Preferences > Inspections > JavaDoc issues > Declaration has JavaDoc problems For newer versions of IntelliJ: File > Settings… > Editor > Inspections > Java > JavaDoc issues > Declaration has JavaDoc problems Make sure to move “scope” slider to desired level of visibility for packages, classes, methods, fields and … Read more