Commit f9e64c2
fix: skip static writeToParcel overloads in java2spec parser
The parser was picking up static helper methods like
ComponentName.writeToParcel(ComponentName c, Parcel out) instead of
the instance writeToParcel(Parcel out, int flags). This produced wrong
wire formats (delegate with condition instead of actual fields).
Added isStaticMethod check to skip static overloads, and prefer-longer
merge logic to avoid overwriting good specs with shorter ones.
ComponentName now correctly marshals Package and Class as string16
fields instead of writing a bogus null marker.1 parent fd06bf9 commit f9e64c2
12 files changed
Lines changed: 107 additions & 50 deletions
File tree
- android
- content
- types
- net
- types
- os
- types
- specs/android
- content
- net
- os
- tools
- cmd/java2spec
- pkg/parcelspec
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1183 | 1183 | | |
1184 | 1184 | | |
1185 | 1185 | | |
1186 | | - | |
1187 | | - | |
1188 | | - | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
1189 | 1190 | | |
1190 | 1191 | | |
1191 | 1192 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1204 | 1204 | | |
1205 | 1205 | | |
1206 | 1206 | | |
1207 | | - | |
1208 | | - | |
1209 | | - | |
1210 | | - | |
1211 | 1207 | | |
1212 | 1208 | | |
1213 | 1209 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6157 | 6157 | | |
6158 | 6158 | | |
6159 | 6159 | | |
6160 | | - | |
6161 | | - | |
6162 | | - | |
6163 | | - | |
6164 | | - | |
6165 | 6160 | | |
6166 | 6161 | | |
6167 | 6162 | | |
| |||
6280 | 6275 | | |
6281 | 6276 | | |
6282 | 6277 | | |
6283 | | - | |
6284 | | - | |
6285 | | - | |
| 6278 | + | |
| 6279 | + | |
6286 | 6280 | | |
6287 | 6281 | | |
6288 | 6282 | | |
| |||
0 commit comments