Commit 99613a7
authored
Changed how class types are registered (#14)
## Description
Changed how class types are registered in the ClassLevelMaps to be
coherent with how they are searched.
## Example
A Class type would be added by the method VisitCtClass(...) in
LatteClassFirstPass as "LinkedList",
but would be searched for by the method visitCtInvocation(...) in
LatteTypeChecker as "LinkedList<String>" (for example), leading to a
miss.
Was fixed by using .getTypeErasure() on visitCtInvocation(...),
simplifying to "LinkedList" in every case
## Related Issue
#6
## Type of change
- [x] Bug fix
- [ ] New feature
- [ ] Documentation update
- [ ] Code refactoring
## How Has This Been Tested?
App.java was run and the previously known bug was found.
Adding other instances of the same class but with different Types did
not affect the correctness of the output.1 parent 45a115f commit 99613a7
2 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
| 27 | + | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
| 194 | + | |
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | | - | |
| 202 | + | |
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
| |||
0 commit comments