atlassian / atlassian/sourcemap

Bug with decoding of mappings with symbols

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
25
Forks
4
PR merge metrics
No merged PRs in 30d

Description

In Consumer.java, line 207...

...
case 5:
// A mapped section of the generated file, that has an associated
// name.
sourceFileNameIndex = vals[1] + previousSrcId;
sourceFileName = sourceFileNames.get(sourceFileNameIndex);
sourceSymbolNameIndex = vals[4] + previousNameId;
sourceSymbolName = sourceSymbolNames.get(sourceFileNameIndex);

```
entry = new MappingImpl(
generatedLine,
vals[0] + previousCol,
vals[2] + previousSrcLine,
```

...

sourceSymbolName is being calculated incorrectly. The line should read

sourceSymbolName = sourceSymbolNames.get(sourceSymbolNameIndex );

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.