This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 169481 - Delete copy of EditableProperties
Summary: Delete copy of EditableProperties
Status: NEW
Alias: None
Product: soa
Classification: Unclassified
Component: JBI Test Driver (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jun Qian
URL:
Keywords:
Depends on:
Blocks: 66577 114333
  Show dependency tree
 
Reported: 2009-07-29 15:58 UTC by Jesse Glick
Modified: 2009-09-24 23:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2009-07-29 15:58:31 UTC
The fix for issue #114333 involved making a copy of EditableProperties, with the only comment

"EditableProperties takes case [sic] of encoding."

I'm not sure what this is supposed to mean; both java.util.Properties and EditableProperties should have identical
behavior w.r.t. encoding, which is to say that they should read \uXXXX escapes but otherwise expect ISO-8859-1, and
should write \uXXXX escapes for non-ASCII characters (only in modified sections, in the case of EP). It is a P2 bug in
EP if it behaves differently.

The only purpose for EP is to write out a *.properties file without formatting changes from when it was read. Anyway
even if you did need to use EP, you should not copy it; use the original.

JbiActionProvider does actually use EP to write something out. This is fine (though use the new version in
org.openide.util). If you do not care about formatting in the result (i.e. the *.properties file is not intended for
direct human display or source code versioning), just use java.util.Properties.