Skip to content

SI-7775 Exclude nulls when iterating sys props#4372

Merged
lrytz merged 1 commit intoscala:2.12.xfrom
som-snytt:issue/7775-tweak
Mar 23, 2015
Merged

SI-7775 Exclude nulls when iterating sys props#4372
lrytz merged 1 commit intoscala:2.12.xfrom
som-snytt:issue/7775-tweak

Conversation

@som-snytt
Copy link
Contributor

The previous fix to deal with concurrent modification of system
properties doesn't handle null results introduced when a property
is removed.

This commit filters nulls for safety, and also adds a names
method to sys.SystemProperties.

The test is upgraded.

Motivated by the same bug at sbt
sbt/sbt#1893 (comment)
and this impending change that would make the test stop testing
#4285 (comment)

It's too late to help sbt.

@scala-jenkins scala-jenkins added this to the 2.12.0-M1 milestone Mar 3, 2015
The previous fix to deal with concurrent modification of system
properties doesn't handle null results introduced when a property
is removed.

This commit filters nulls for safety, and also adds a `names`
method to `sys.SystemProperties`.

The test is upgraded.
@som-snytt
Copy link
Contributor Author

@lrytz
Copy link
Member

lrytz commented Mar 23, 2015

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants