Commit 40dcdcb
authored
[nativeaot] fix Java string escaping and logging in environment variables support code (#10771)
This PR applies review feedback from the backport PR #10768 to the main branch, addressing three improvements to the NativeAOT environment variable handling:
**Changes:**
- Fixed Java string escaping in `EnvironmentBuilder.cs` to properly escape backslashes before quotes, preventing invalid Java string literals
- Added missing `$` prefix for string interpolation in a test assertion message in `EnvironmentHelper.cs`
- Enhanced error logging in `NativeAotEnvironmentVars.java` to include exception details when environment variable setting fails1 parent 827a790 commit 40dcdcb
File tree
3 files changed
+3
-3
lines changed- src/Xamarin.Android.Build.Tasks
- Resources
- Tests/Xamarin.Android.Build.Tests/Utilities
- Utilities
3 files changed
+3
-3
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
842 | 842 | | |
843 | 843 | | |
844 | 844 | | |
845 | | - | |
| 845 | + | |
846 | 846 | | |
847 | 847 | | |
848 | 848 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
0 commit comments