Open efr15 opened 4 months ago
Stack trace:
at TypeCobol.Compiler.Nodes.TableDefinitionExtensions.GetTableSortingKeys(DataDefinition tableDefinition) at TypeCobol.Compiler.Diagnostics.CrossCompleteChecker.1 childrenNodes) at TypeCobol.Compiler.Nodes.Node.VisitChildrens(IASTVisitor astVisitor, Boolean continueVisit, IEnumerable
1 childrenNodes) at TypeCobol.Compiler.Nodes.Node.VisitChildrens(IASTVisitor astVisitor, Boolean continueVisit, IEnumerable1 childrenNodes) at TypeCobol.Compiler.Nodes.Node.VisitChildrens(IASTVisitor astVisitor, Boolean continueVisit, IEnumerable
1 childrenNodes) at TypeCobol.Compiler.Nodes.Node.VisitChildrens(IASTVisitor astVisitor, Boolean continueVisit, IEnumerable1 childrenNodes) at TypeCobol.Compiler.Nodes.Node.VisitChildrens(IASTVisitor astVisitor, Boolean continueVisit, IEnumerable
1 childrenNodes) at TypeCobol.Compiler.Nodes.Node.VisitChildrens(IASTVisitor astVisitor, Boolean continueVisit, IEnumerable`1 childrenNodes) at TypeCobol.Compiler.CompilationUnit.RefreshProgramClassDocumentSnapshot() at TypeCobol.LanguageServer.Workspace.RefreshSyntaxTree(FileCompiler fileCompiler, SyntaxTreeRefreshLevel refreshLevel) at TypeCobol.LanguageServer.Workspace.<>cDisplayClass102_0.
Describe the bug An
InvalidCastException
has been thrown byTableDefinitionExtensions.GetTableSortingKeys
, code was attempting to cast an instance ofDataConditionEntry
intoCommonDataDescriptionAndDataRedefines
.To Reproduce (Type)Cobol code that cause the bug : (if any)
Expected behavior No exception !
Technical Check cast instructions and protect where needed.
How to test automatically Standard tests if code to reproduce can be found.