On 08/04/2019 15:05, Andrew Dinn wrote:
:
Hmm, yes that's an interesting point. Of course, I'll take whatever
suggestions you are willing to throw this way :-)
What would you think about not promoting the constructor to public? The
original motivation for that was to be able to create additional map
modes in jdk.internal.misc.ExtendedMapMode but we can use shared secrets
or other skullduggery to do that. The advantage is that we avoid
creating expectation in the API that developers can create their own map
modes. The rest of the solution doesn't change, it's just eliminating
the ability to create modes beyond the standard and extended modes.
-Alan