-
Notifications
You must be signed in to change notification settings - Fork 155
New SystemProperties logging global changes #25569
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
dmatej
commented
Jun 18, 2025
- Also deleted unused GFSystem class
- In several cases I have noticed that some values are set repeatedly or even to different values which can cause some fragility (ordering, race conditions, surprises, etc).
- This solution is not global, affects just classes in this project, but even that is useful.
- Java doesn't offer anything like this, it is just possible to print system properties using jcmd or inside JVM.
342ee03
to
be97644
Compare
be97644
to
c0cf28a
Compare
Signed-off-by: David Matějček <[email protected]>
Signed-off-by: David Matějček <[email protected]>
- Also deleted unused GFSystem class Signed-off-by: David Matějček <[email protected]>
63c02c8
to
ef15edb
Compare
@@ -125,10 +126,10 @@ public DerbyControl(final String derbyCommand, final String derbyHost, final Str | |||
|
|||
// Do not set derby.system.home if derbyHome is empty | |||
if (!isEmpty(derbyHome)) { | |||
System.setProperty("derby.system.home", derbyHome); | |||
setProperty("derby.system.home", derbyHome, true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With all usages updated, could we have setProperty(String, String)
, that would default the 3rd parameter to true
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to force decision if it should or should not overwrite existing value - which is quite important. Correctly no such events should ever happen, but it is not always true.