Ticket #2857
fansh> [concurrent::ActorPool#maxThreads: 100].toImmutable [concurrent::ActorPool.maxThreads:100] fansh> Field.makeSetFunc([concurrent::ActorPool#maxThreads: 100].toImmutable).toImmutable sys::NotImmutableErr: Func fan.sys.Func.toImmutable (Func.java:34) fan.sys.FanObj.toImmutable (FanObj.java:122)```
It seems to me that any Func made with Field.makeSetFunc should be immutable, especially if the input map is immutable.
Func
Field.makeSetFunc
As a workaround, I have to wrap the resulting Func in an Unsafe...because I know for a fact it's an immutable function.
Unsafe
Ticket promoted to #2857 and assigned to brian
Agree - I will take a look
Login or Signup to reply.
Jeremy C Wed 15 Sep 2021
It seems to me that any
Func
made withField.makeSetFunc
should be immutable, especially if the input map is immutable.As a workaround, I have to wrap the resulting
Func
in anUnsafe
...because I know for a fact it's an immutable function.brian Mon 11 Oct 2021
Ticket promoted to #2857 and assigned to brian
Agree - I will take a look