Javac internal error compiling lambdas (original) (raw)

Jose jgetino at telefonica.net
Wed Apr 3 15:45:11 PDT 2013


Remi,

Again hijacking the thread,

This is the first time I write something in another's thread, you can easily check it if you want. And I did so because I'm worry with this issue. My own question (the first thread of this month) got not a replay, just your post asking me for the error message.

there is no need to store a lambda in a static final field

Yes, there is, at least in my case. Sometimes I use lambdas to define custom properties that would initialize static fields by reading their values from a file. I do this static initialization at the very beginning, before the constructors of these classes are called. And I need the lambdas for this.

Anyway, I'm ready to admit that this approach is heterodox and need to be improved.

But a poor design don't justifies a javac failure.

Regards



More information about the lambda-dev mailing list