Skip to content

Conversation

sinha108
Copy link
Collaborator

Motivation and Context

This PR contains the following updates:

  • It fixes the illegal state exception (duplicate key) failure that can occur with generic method declarations (Illegal state exception (duplicate key) while analyzing redis lettuce project #136). The fix creates method signatures after performing type erasure, which results in unique method signatures.
  • It addresses failures during type resolution by widening the exception handlers at various failure points; this fixes StackOverflow Error during Symbol resolution in JavaParser #137 and other instance of such failures.
  • It adds a new argument expression field to CallSite, which is a list of strings that stores the expression for each argument at a call site.
  • It updates symbol table construction to exclude some patterns of source roots (e.g., src/test/resources, src/it/resources) that can contain Java code as test inputs.

How Has This Been Tested?

Breaking Changes

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the Codellm-Devkit Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

sinha108 added 5 commits June 15, 2025 20:37
…te signatures

issue that can occur for generic methods)

Signed-off-by: Saurabh Sinha <sinha108@gmail.com>
… test/resources);

added symbol table test for duplicate signatures with generics and varargs

Signed-off-by: Saurabh Sinha <sinha108@gmail.com>
Signed-off-by: Saurabh Sinha <sinha108@gmail.com>
…ions

Signed-off-by: Saurabh Sinha <sinha108@gmail.com>
Signed-off-by: Saurabh Sinha <sinha108@gmail.com>
@sinha108 sinha108 requested a review from rahlk July 22, 2025 15:38
sinha108 and others added 2 commits July 22, 2025 11:39
@rahlk rahlk merged commit 402e6c0 into main Jul 22, 2025
@rahlk rahlk deleted the issue136-duplicate-key-error branch July 22, 2025 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

StackOverflow Error during Symbol resolution in JavaParser
2 participants