fix(driver-twincat): resolve Medium code-review finding (Driver.TwinCAT-003)
Reject Structure-typed pre-declared tags in BuildTag at config-parse time with a clear InvalidOperationException; replaces the previous silent garbage read (MapToClrType fell through to typeof(int)) and late NotSupportedException on writes. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -103,7 +103,7 @@ Discovery `ToDriverDataType` maps `Structure` to `String`, compounding the incon
|
||||
does not support UDT tags, and `BrowseSymbolsAsync` already correctly yields
|
||||
`DataType = null` for them.
|
||||
|
||||
**Resolution:** _(open)_
|
||||
**Resolution:** Resolved 2026-05-22 — `BuildTag` now parses the `DataType` field first and rejects `TwinCATDataType.Structure` with an `InvalidOperationException` that names the tag and explains the limitation; configuration-time failure replaces the previous silent garbage read or late `NotSupportedException`.
|
||||
|
||||
### Driver.TwinCAT-004
|
||||
|
||||
|
||||
Reference in New Issue
Block a user