lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler (Commented) (JIRA)" <>
Subject [jira] [Commented] (LUCENE-3847) LuceneTestCase should check for modifications on System properties
Date Sun, 04 Mar 2012 23:48:59 GMT


Uwe Schindler commented on LUCENE-3847:

bq. I don't know, to be honest. I didn't want to experiment because I remember being scalded
at some point in my past when I used Map interface to manipulate system properties and in
certain circumstances things didn't work as they should. I can't remember the details now,

For copying you are already using the map interface (retrieving entrySet). For read access
this is not a problem, but the whole Java API implementing Map is broken. Implementing the
Map interface, which allows to put Object keys/values is unfortunately a no-go. But doing
"new TreeMap<String,String>((Map<String,String>) properties)" is fine (with SuppressWarnings
because of the cast) - because the putAll method of TreeMap is implemented exactly as your
> LuceneTestCase should check for modifications on System properties
> ------------------------------------------------------------------
>                 Key: LUCENE-3847
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: general/test
>            Reporter: Dawid Weiss
>            Assignee: Dawid Weiss
>            Priority: Minor
>             Fix For: 3.6, 4.0
>         Attachments: LUCENE-3847.patch
> - fail the test if changes have been detected.
> - revert the state of system properties before the suite.
> - cleanup after the suite.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message