Checkstyle Eclipse plugin not working

I am using the eclipse checkstyle plugin with the Juno Eclipse distribution. Every time the code is checked for a checkstyle error, I get the following error:

cannot initialize module TreeWalker - Unable to instantiate DoubleCheckedLocking 

Does anyone know how to solve this problem? Is it a plugin compatibility issue or something else?

+56
eclipse eclipse-plugin checkstyle
Oct 09 '12 at 8:32
source share
4 answers

The DoubleCheckedLocking check has been removed in Checkstyle 5.6 and must be manually removed from the Checkstyle configuration.

See also: http://sourceforge.net/tracker/index.php?func=detail&aid=3571442&group_id=29721&atid=397078

+56
Oct 09 '12 at 11:12
source share

Open the Checkstyle settings, create your own verification configuration, go into your own verification configuration, find the TreeWalker module, click on it, and then uncheck the DoubleCheckedLocking checkbox. So simple.

enter image description here

+26
Jan 24 '13 at 22:22
source share

just comment or remove "DoubleCheckedLocking" from the checkstyle file and it will work

+2
Nov 15 '12 at 13:39
source share
  • In your Eclipse workspace, locate the internal_config __ * file . xml
  • Delete the following line from the file

    <module name = "DoubleCheckedLocking" />

  • Refresh workspace.

This will work for any terminated module that throws an "Unable to instantiate" error message.

0
Nov 12
source share



All Articles