Mh,

I am using Java(TM) SE Runtime Environment (build 1.8.0_65-b17)

and to change the argument to final does not break anything, but resolves the compile error.

Maybe it has something to do with the JVM?

kind regards

Tobias

Am 26.10.15 um 08:26 schrieb Martin Grigorov:
The build passes fine here.
Also BuildBot is OK: https://ci.apache.org/builders/wicket-master

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Mon, Oct 26, 2015 at 6:55 AM, Tobias Soloschenko <
[email protected]> wrote:

Hi,

I got a compile error when I am checking out the wicket-core project
(master branch):

/wicket-core/src/main/java/org/apache/wicket/application/ReloadingClassLoader.java
Cannot refer to the non-final local variable clz defined in an enclosing
scope
line 343
It is solved if I change the class method argument to be final (private
void watchForModifications(final Class<?> clz))

kind regards

Tobias


Reply via email to