Commit cf999b2
committed
Make var-args overload of NLS.bind() generic
This avoids a compiler warning if an explicit array of a sub-type of
Object[] is passed as last argument:
NLS.bind("message: {0} {1}", new String[] { "Hello", "World" })
The byte-code generated for the NLS.bind() method and for all its
callers is not changed by this adjustment. It just avoids what looks
like a source-compatibility issues with the previous introduction of
var-args in NLS.bind(). Although the example above works the same in all
three states.
Follow-up on:
- #936
Also touch calling projects that now get slight different byte-code
generated because the var-args array generated by the compiler now can
have a more specific type than Object[], common for all passed
arguments.1 parent 71d1fa5 commit cf999b2
File tree
6 files changed
+12
-6
lines changed- bundles
- org.eclipse.equinox.common
- org.eclipse.equinox.coordinator
- org.eclipse.equinox.metatype
- org.eclipse.equinox.preferences
- org.eclipse.equinox.registry
- org.eclipse.osgi/supplement/src/org/eclipse/osgi/util
6 files changed
+12
-6
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
| 123 | + | |
123 | 124 | | |
124 | 125 | | |
125 | 126 | | |
| |||
0 commit comments