Commit eabfcba
committed
Fix null map key parsing in GenericLiteralVisitor
The visitor treated all keyword map keys as their text representation,
so a null key in [null:"value"] was parsed as the String "null" instead
of Java null. This broke round-tripping maps with null keys through
GremlinLang serialization and ANTLR parsing.1 parent a4e433e commit eabfcba
2 files changed
Lines changed: 6 additions & 1 deletion
File tree
- gremlin-core/src
- main/java/org/apache/tinkerpop/gremlin/language/grammar
- test/java/org/apache/tinkerpop/gremlin/language/grammar
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
353 | | - | |
| 353 | + | |
| 354 | + | |
354 | 355 | | |
355 | 356 | | |
356 | 357 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
632 | 632 | | |
633 | 633 | | |
634 | 634 | | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
635 | 639 | | |
636 | 640 | | |
637 | 641 | | |
| |||
0 commit comments