Skip to content

v1.3.2

Choose a tag to compare

@Codegass Codegass released this 02 Jun 06:58

[1.3.2] - 2025-06-02

πŸ› Critical Bug Fix - Inner Class Source Resolution

  • Fixed SOURCE_FILE_NOT_FOUND for Inner Classes: Major fix for source file detection of inner classes
    • Problem: Classes like org.apache.commons.cli.HelpFormatter.Builder were causing SOURCE_FILE_NOT_FOUND errors
    • Root Cause: Method was searching for org/apache/commons/cli/HelpFormatter/Builder.java instead of org/apache/commons/cli/HelpFormatter.java
    • Solution: Enhanced getSourceFilePathForClass() to detect inner classes and map them to their outer class source files
    • Impact: Dramatically reduces SOURCE_FILE_NOT_FOUND errors in projects with inner classes

πŸ”§ Technical Improvements

  • Smart Inner Class Detection: Added logic to identify inner classes by uppercase naming patterns
  • Outer Class Mapping: Automatically strips inner class portions to find the correct source file
  • Enhanced Debug Logging: Added detailed logging for source file resolution process

πŸ§ͺ Verification

  • commons-cli Project: Tested on Apache Commons CLI project - eliminated most SOURCE_FILE_NOT_FOUND errors
  • Before: Multiple SOURCE_FILE_NOT_FOUND errors for HelpFormatter.Builder methods
  • After: All inner class methods now correctly resolve to their source files

This fix significantly improves analysis accuracy for projects using inner classes, which are common in Java projects.