Repository navigation
Commit 6f82991
committed
wire up config-driven generic specialization
Configuration.specialize was fully defined (JSON schema, SpecializationConfigEntry,
SwiftAnalyzer.registerSpecialization) but nothing in the actual jextract run
ever read it - translator.analyze() was called with no hook, so a
"specialize": {...} block in swift-java.config silently did nothing.
Pass a hook that registers each entry via registerSpecialization before
deferred constrained extensions are processed, so config-declared
specializations of a generic type (e.g. Snowflake<Tag> -> GuildSnowflake,
ChannelSnowflake, ...) actually produce usable per-instantiation Java classes.1 parent 5d3f0c1 commit 6f82991
1 file changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
123 | 136 | | |
124 | 137 | | |
125 | 138 | | |
| |||
0 commit comments