• Andy Wilkinson's avatar
    Prevent recursive config props from causing a stack overflow · 59bc3c56
    Andy Wilkinson authored
    Previously, when the configuration properties annotation processor
    encountered a property that was the same as an outer type that had
    already been processed, it would fail with a stack overflow error.
    
    This commit introduces the use of a stack to track the types that
    have been processed. Types that have been seen before are skipped,
    thereby preventing a failure from occurring. We do not fail upon
    encountering a recursive type to allow metadata generation to
    complete. At runtime, the recursive property will not cause a problem
    if it is not bound.
    
    Fixes gh-18365
    59bc3c56
Name
Last commit
Last update
..
json-shade Loading commit data...
main Loading commit data...
test Loading commit data...