Commit e53c17a
committed
Add missing indices to message format in ModelAssembler
The fallback logging mechanism in ModelAssembler uses:
java.text.MessageFormat.format(String, Object...)
Supplied message formats bind arguments without an index,
i.e. message formats use "{}" instead of "{n}".
This causes a NFE in MessageFormat.format(),
resulting in no log output in the fallback case.
In the usual case with an available logger, the indices are added by:
com.sun.org.slf4j.internal.Logger.addIndex(String)
This change likewise adds indices to the message format,
for the fallback case.
Fixes: #38731 parent f1a031a commit e53c17a
File tree
1 file changed
+21
-1
lines changed- bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/workbench
1 file changed
+21
-1
lines changedLines changed: 21 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| |||
209 | 211 | | |
210 | 212 | | |
211 | 213 | | |
| 214 | + | |
| 215 | + | |
212 | 216 | | |
213 | 217 | | |
214 | 218 | | |
| |||
820 | 824 | | |
821 | 825 | | |
822 | 826 | | |
823 | | - | |
| 827 | + | |
824 | 828 | | |
825 | 829 | | |
826 | 830 | | |
| |||
845 | 849 | | |
846 | 850 | | |
847 | 851 | | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
848 | 868 | | |
0 commit comments