On Fri, 12 Jun 2020 14:49:50 GMT, Johan Vos <j...@openjdk.org> wrote:
>> Oh, right. It will be a Long 0, not null. If you store it you will still >> have the problem I mentioned with dispose >> unless you add back in the `str != 0` check. And you would need a check for >> `str != 0` in the layout method so that the >> second time it doesn't treat it as a valid pointer. It might be safer to not >> store it if 0, which matches the current >> behavior? > > That makes sense indeed. For the dispose call, a valid pointer is required. I wasn't completely sure what the idea was, which is why I phrased it as a question :-) ------------- PR: https://git.openjdk.java.net/jfx/pull/249