Changes between Initial Version and Version 1 of Ticket #23257, comment 3
- Timestamp:
- 2023-10-31T19:22:59+01:00 (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #23257, comment 3
initial v1 1 1 I've never seen this. Are you ''certain'' that this happens? I assume you got a stack trace. 2 2 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. 3 Realistically, 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. 4 4 5 5 As an example: