- 2.11.x で発生する
private
なフィールドがラムダ式内で直接参照されている場合、コンパイル後のフィールド名が$$
区切りの FQCN みたいな名前になる- Getter などを経由して参照すれば発生しなくなる
- 2.12.x ならラムダ式内から直接参照していても発生しない
Hoge.scala
Breaking Changes MutableCollection.removeIf() now returns boolean. Sorted sets, bags, and maps implement ReversibleIterable. Added OrderedMap interface to represent a linked hash map. Overrode BiMap.partition() to return PartitionUnsortedSet. UnifiedMap and UnifiedSet now throw if constructed with a load factor greater than 1. toStringOfItemToCount() in ImmutableEmptyBag now consistent with other Bags. Returns "{}" instead of "" New Functionality Primitive Collections
List.binarySearch() Fixes #20
package sample; | |
import java.util.ArrayList; | |
import java.util.List; | |
public class Main { | |
/** | |
* 配列の場合、型引数が指定されていても、別のクラスのオブジェクトをセットできる余地がある。 | |
* |
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. | |
// Jad home page: http://www.kpdus.com/jad.html | |
// Decompiler options: packimports(3) | |
// Source File Name: script.groovy | |
import groovy.lang.GroovyObject; | |
import groovy.lang.MetaClass; | |
import java.lang.ref.SoftReference; | |
import org.codehaus.groovy.reflection.ClassInfo; | |
import org.codehaus.groovy.runtime.GStringImpl; |
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. | |
// Jad home page: http://www.kpdus.com/jad.html | |
// Decompiler options: packimports(3) | |
// Source File Name: script.groovy | |
import groovy.lang.*; | |
import java.io.File; | |
import java.lang.ref.SoftReference; | |
import org.codehaus.groovy.reflection.ClassInfo; | |
import org.codehaus.groovy.runtime.*; |
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. | |
// Jad home page: http://www.kpdus.com/jad.html | |
// Decompiler options: packimports(3) | |
// Source File Name: script.groovy | |
import groovy.lang.*; | |
import java.io.File; | |
import java.lang.ref.SoftReference; | |
import org.codehaus.groovy.reflection.ClassInfo; | |
import org.codehaus.groovy.runtime.*; |