Peppe, On 08.06.2018 11:33, Giuseppe Aruta wrote: > Hi Peppe, > > OJ build is broken : > > [ERROR] HistogramPlugIn.java:[410,60] local variable selLayer is accessed > from within inner class; needs to be declared final >
do what the error says and you will be set. note: A. you are using an anonymous inner class JTable here. to reuse local vars within it, they need to be finalized! B. a final variable cannot be reassigned, hence the finality! check the last commit, where i declare it final when it is given to createHistogram(final PlugInContext context, final RasterImageLayer selLayer) . and remember you can always finalize any var by creating a finalized second assignment eg. String text = "foobar"; final String finalizedText = text; note that that does not prevent the object to get new content if the object class permits that (String does not). it merely makes sure that the assigned object stays the same. so far so unclear? ..ede ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel