Static variable values seem to occasionally "reset"
Consider this code:
When I run this, I get:
On subsequent hits to number.cfm, I get this:
This is what I'd expect.
However on a couple of occasions when I've been distracted for some period of time (could be a coupla min, could be longer), and I reload that page, then the value has been reset to 0 again. This is different from the situation I detailed in issue .(https://bitbucket.org/lucee/lucee/issue/270). This is definitely with the "block" style syntax.
It does not seem to be based on a specific period of time (like some sort of timeout), because I've seen it in the space of a coupla minutes. However I've just left it sitting there for over half an hour, and cannot replicate. It has not been a one off though, I have seen it happen a few times whilst testing.
I dunno what else to look for by way of troubleshooting, TBH. Any ideas?
moved the static scope from an instance variable in ComponentImpl to be a static variable in the class created.
Most likely this happens when a page is cleared from page pool, for example when you call pagePoolClear
found and fixed the issue “Component from type [Foo] has no accessible static Member with name [bar]“
This did happen even the function in that case “bar“ was defined inside the component.
Problem was a multi threading issue, it turned out to be unrelated to this ticket, so we created an other ticket for it
when a Component is removed from Page Pool, for example when pagePoolClear() is executed, the static scope is refreshing .