| Summary: | Preferences DefaultPreferences shouldn't trim() product preference values | ||
|---|---|---|---|
| Product: | [Eclipse Project] Equinox | Reporter: | James Blackburn <jamesblackburn+eclipse> |
| Component: | Components | Assignee: | equinox.components-inbox <equinox.components-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | daniel_megert |
| Version: | 3.7.1 | ||
| Target Milestone: | Juno M5 | ||
| Hardware: | PC | ||
| OS: | Linux-GTK | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 394359 | ||
|
Description
James Blackburn
Fixed in master. http://git.eclipse.org/c/equinox/rt.equinox.bundles.git/commit/?id=6161803d12b9467209937574538ebb2abe36e986 Thanks DJ!
Possible issue: there seems to be some logic which looks for whitespace later on:
int ix = value.indexOf(" "); //$NON-NLS-1$
Could this now go wrong?
Perhaps a safer bet would be:
String retVal = value.trim();
...
existing logic uses retVal
...
// fallback
return value;
Hmm... yep good catch. I did some tests with spaces but didn't go into the loop. Ok, I've released that change but it still doesn't quite work if we have a substitution with whitespace at the end of the default value. But considering no one has complained about it yet and I can't find the doc spec'ing what that would look like, I think we're ok for now. |