Commit 2ace84f
committed
Restore processSolver after addModifier/removeModifier in SolverManagerFacet
The Phase 6 API migration (094525d) replaced addModifierAndSolve()
with addModifier() but omitted the follow-up processSolver() call that
recomputes the variable value. Without it, modifiers were registered but
never evaluated, causing GlobalModifyTest to hang waiting for a value
that was never computed.
Also short-circuit global-scope resolution: when the target scope is
global, call scopeFacet.getGlobalScope() directly instead of walking
the VarScoped hierarchy — global variables have no meaningful scoped
object to traverse.
In GlobalModifyTest.targetFacetCount(), guard against an empty diagnose
list (which is valid when no solver has been built yet) and remove a
stale comment about a missing API method.1 parent febc907 commit 2ace84f
2 files changed
Lines changed: 13 additions & 6 deletions
File tree
- code/src
- itest/tokencontent
- java/pcgen/cdom/facet
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
106 | 105 | | |
107 | 106 | | |
108 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
53 | 55 | | |
54 | 56 | | |
55 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
56 | 60 | | |
57 | 61 | | |
58 | 62 | | |
| |||
62 | 66 | | |
63 | 67 | | |
64 | 68 | | |
65 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
66 | 72 | | |
67 | 73 | | |
68 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
69 | 77 | | |
70 | 78 | | |
71 | 79 | | |
| |||
0 commit comments