Skip to content

IronJava 2.1.2 Release Notes

Latest

Choose a tag to compare

@logikonline logikonline released this 23 Jul 11:30

Fixed

  • Critical Bug Fix: Fixed annotation parsing in AstBuilder
    • Annotations were not being parsed at all (always returned empty collections)
    • Root cause: BuildAnnotations method was checking for AnnotationContext directly, but modifier contexts
      contain annotations as child nodes
    • Fixed by properly checking child nodes of modifier contexts for annotations

Added

  • AnnotationExpression class to properly represent annotations in element values
  • Visitor methods for AnnotationExpression in IJavaVisitor interfaces
  • Comprehensive annotation parsing tests

Technical Details

The issue was in the BuildAnnotations method which expected Java9Parser.AnnotationContext instances directly,
but when called with modifier contexts (like classModifier, interfaceModifier, etc.), it needed to check the
child nodes since modifiers can contain annotations.

Known Issues

  • Annotation arguments may still need additional work for complex cases (nested annotations, array values)
  • AnnotationExpression serialization support pending

This release fixes the critical bug reported where annotations were not being parsed at all, breaking the
ability to analyze frameworks like Spring Boot, Jakarta EE, and other annotation-based Java code.