ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 904] Changed - Reading System Properties may return Objects
Date Mon, 12 Mar 2001 14:02:00 GMT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=904

*** shadow/904	Mon Mar 12 05:58:46 2001
--- shadow/904.tmp.29001	Mon Mar 12 06:02:00 2001
***************
*** 2,8 ****
  | Reading System Properties may return Objects                               |
  +----------------------------------------------------------------------------+
  |        Bug #: 904                         Product: Ant                     |
! |       Status: NEW                         Version: 1.2                     |
  |   Resolution:                            Platform: All                     |
  |     Severity: Normal                   OS/Version: All                     |
  |     Priority: High                      Component: Core                    |
--- 2,8 ----
  | Reading System Properties may return Objects                               |
  +----------------------------------------------------------------------------+
  |        Bug #: 904                         Product: Ant                     |
! |       Status: RESOLVED                    Version: 1.2                     |
  |   Resolution:                            Platform: All                     |
  |     Severity: Normal                   OS/Version: All                     |
  |     Priority: High                      Component: Core                    |
***************
*** 94,96 ****
--- 94,108 ----
  ----------------------------------
  String value = (String) systemP.get(name);
  ----------------------------------
+ 
+ 
+ ------- Additional Comments From bodewig@apache.org  2001-03-12 06:01 -------
+ Actually the javadoc for Properties says "Each key and its corresponding value
+ in the property list is a string.", and I always thought (without looking at the
+ source) that Properties would override put to make sure you cannot insert
+ something else.
+ 
+ I'll apply the patch that uses .toString instead of the cast - that way Objects
+ living in system properties might even yield some reasonable result.
+ 
+ Should be fixed in nightly build 2001-03-13.

---------------------------------------------------------------------
To unsubscribe, e-mail: ant-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: ant-dev-help@jakarta.apache.org


Mime
View raw message