Yes, I saw a message about that, for a single underscore... which is why I changed to a double underscore.
Do we think that that's a bad idea too? I kind of like the concept of a "default" name somehow. On 16 October 2015 at 18:46, Martin Grigorov <[email protected]> wrote: > Hi Dan, > > On Fri, Oct 16, 2015 at 7:29 PM, <[email protected]> wrote: > > > +For the case where there is only a single member being contributed, the > > special name "__" (that is, two underscores) > > +can be used instead. In this case, the contributee member's name will > be > > inferred from the mixin's class name. If the > > +class name itself contains an underscore, then the last part of the > class > > name will be used. > > > > AFAIK usage of underscore as a prefix in names (and especially two > consecutive underscores) is is kind of deprecated in Java 8 and most > probably won't compile in Java 9. > I think I've seen IDEA 14+ to log compilation warnings when such a > detected. > > I remember seeing a answer by Brian Goetz somewhere but I cannot find it > now. > Here is an answer in SO: http://stackoverflow.com/a/23525446/497381 > > > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov >
