Changes between Initial Version and Version 1 of Ticket #23257, comment 3


Ignore:
Timestamp:
2023-10-31T19:22:59+01:00 (2 years ago)
Author:
taylor.smock

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #23257, comment 3

    initial v1  
    11I've never seen this. Are you ''certain'' that this happens? I assume you got a stack trace.
    22
    3 Realistically, it should not be a problem, given the JVM ''will'' initialize `static` variables when the class is loaded, ''not'' when a new object of that class is being initialized. If it is (somehow) a problem, we can just move the declaration of `CLEAR_LOADED` to the top of the file. But I think the JVM would not be behaving according to the specification.
     3Realistically, it should not be a problem, given that the JVM ''will'' initialize `static` variables when the class is loaded, ''not'' when a new object of that class is being initialized. If it is (somehow) a problem, we can just move the declaration of `CLEAR_LOADED` to the top of the file. But I think the JVM would not be behaving according to the specification.
    44
    55As an example: