Repository navigation
Closed
Labels
area/code-generationCategorizes an issue or PR as relevant to code generationdifficulty/tbdCategorizes an issue for which the difficulty level needs to be defined.kind/bugSomething isn't workingproject/core-tools 🛠️Categorizes an issue or PR as relevant to core and tools
Description
Current behavior
Setter is added even if it doesn't exist in UWP. This is caused by the following:
uno/src/Uno.UWPSyncGenerator/Generator.cs
Lines 592 to 605 in 8229207
| if (property.GetMethod != null) | |
| { | |
| using (b.BlockInvariant($"get")) | |
| { | |
| b.AppendLineInvariant($"throw new global::System.NotSupportedException();"); | |
| } | |
| } | |
| if (property.GetMethod != null) | |
| { | |
| using (b.BlockInvariant($"set")) | |
| { | |
| b.AppendLineInvariant($"throw new global::System.NotSupportedException();"); | |
| } | |
| } |
The second condition should clearly check for SetMethod instead of GetMethod.
This causes bugs like #6885
Expected behavior
⏫
How to reproduce it (as minimally and precisely as possible)
No response
Workaround
No response
Works on UWP/WinUI
No response
Environment
No response
NuGet package version(s)
No response
Affected platforms
No response
IDE
No response
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
No response
Metadata
Metadata
Assignees
Labels
area/code-generationCategorizes an issue or PR as relevant to code generationdifficulty/tbdCategorizes an issue for which the difficulty level needs to be defined.kind/bugSomething isn't workingproject/core-tools 🛠️Categorizes an issue or PR as relevant to core and tools
Activity
Youssef1313 commentedon Sep 6, 2021
To avoids conflicts, this can wait until #6866 and #6868 are merged and (if this will target api-alignments*)
masteris merged into api-alignments branch.* Whether or not this should target api-alignments will likely depend on what setters are there incorrectly. If they are all unlikely to be used and are throwing setters, this may be able to target master.