mirror of
https://github.com/apple/pkl.git
synced 2026-01-13 23:23:37 +01:00
[PR #826] [MERGED] Fix possible stack overflow in Listing/Mapping type checking #762
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/826
Author: @stackoverflow
Created: 11/21/2024
Status: ✅ Merged
Merged: 11/22/2024
Merged by: @stackoverflow
Base:
main← Head:fix-stack-overflow-in-typenode📝 Commits (1)
cd1a35bFix possible stack overflow in Listing/Mapping type checking📊 Changes
1 file changed (+42 additions, -38 deletions)
View changed files
📝
pkl-core/src/main/java/org/pkl/core/ast/type/TypeNode.java(+42 -38)📄 Description
This fixes a problem where the delegate chain of type casts for
Listing/Mappingget unreasonably big, even though the type nodes are the same, which may lead to a stack overflow or performance degradation.Closes #827
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.