Commit 834c116
authored
Deprecate and disable CollectorLegacy, simplify startup (#10185)
CollectorLegacy shouldn't be needed in any modern browser, though the
Error.stack property is still non-standard. This patch leaves it in, so
that it is at least possible for projects to restore it if they need it,
but won't add an extra step to startup for most GWT applications.
With only a single implementation, the static final field isn't needed
and likewise doesn't need to be eagerly initialized. This will remove
clinits for both Impl and StackTraceCreator everywhere they are used,
and by default should still compile out the collector instance into just
a set of static functions.1 parent ec23cfa commit 834c116
File tree
4 files changed
+10
-62
lines changed- user
- src/com/google/gwt/core/client/impl
- test/com/google/gwt/core/client/impl
4 files changed
+10
-62
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | 31 | | |
38 | 32 | | |
39 | 33 | | |
| |||
Lines changed: 5 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| |||
306 | 307 | | |
307 | 308 | | |
308 | 309 | | |
309 | | - | |
| 310 | + | |
310 | 311 | | |
311 | 312 | | |
312 | 313 | | |
313 | | - | |
| 314 | + | |
314 | 315 | | |
315 | 316 | | |
316 | 317 | | |
| |||
338 | 339 | | |
339 | 340 | | |
340 | 341 | | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
| 342 | + | |
| 343 | + | |
349 | 344 | | |
350 | 345 | | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | 346 | | |
362 | 347 | | |
363 | 348 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
Lines changed: 4 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
52 | | - | |
| 51 | + | |
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
| |||
62 | 61 | | |
63 | 62 | | |
64 | 63 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | 64 | | |
76 | 65 | | |
77 | 66 | | |
| |||
87 | 76 | | |
88 | 77 | | |
89 | 78 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | 79 | | |
97 | 80 | | |
98 | 81 | | |
| |||
101 | 84 | | |
102 | 85 | | |
103 | 86 | | |
104 | | - | |
105 | | - | |
| 87 | + | |
106 | 88 | | |
107 | 89 | | |
108 | 90 | | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
| 91 | + | |
118 | 92 | | |
119 | 93 | | |
120 | 94 | | |
121 | | - | |
| 95 | + | |
122 | 96 | | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | 97 | | |
0 commit comments