Commit 44ac70d
authored
fix: prevent multi-round annotation processing bug (#7)
Fixes issue #6 where List<Integer> fields were incorrectly generating
ListMapper dependencies due to multi-round annotation processing.
Problem:
- Annotation processor was running in multiple rounds
- First round: Correct inline NUMBER_LIST mapping
- Second round: Incorrect ListMapper dependency
- Type information behaves differently in subsequent rounds
Solution:
- Track processed types to avoid reprocessing
- Skip processing in subsequent rounds (processingOver, empty rootElements)
- Only process in the first round for consistent type information
- Add DEBUG_MARKER for build verification
Testing:
- Verified no ListMapper references in generated code
- Confirmed inline NUMBER_LIST mapping for List<Integer>
- Single timestamp showing processor runs only once
Closes #61 parent 586525f commit 44ac70d
File tree
2 files changed
+28
-1
lines changed- src/main/java/com/github/wassertim/dynamodb/toolkit
- generation
- processor
2 files changed
+28
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
64 | 67 | | |
65 | 68 | | |
66 | 69 | | |
| |||
79 | 82 | | |
80 | 83 | | |
81 | 84 | | |
| 85 | + | |
82 | 86 | | |
83 | 87 | | |
84 | 88 | | |
85 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
86 | 107 | | |
87 | 108 | | |
88 | 109 | | |
89 | 110 | | |
90 | 111 | | |
91 | 112 | | |
92 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
93 | 119 | | |
94 | 120 | | |
95 | 121 | | |
| |||
0 commit comments