Skip to content

Commit

Permalink
fixing bug with concurrent modification, resolves #79
Browse files Browse the repository at this point in the history
  • Loading branch information
davydotcom committed Oct 16, 2024
1 parent d76b5dc commit 24550a3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@ Using gradle one can include the hcl4j dependency like so:

```groovy
dependencies {
compile "com.bertramlabs.plugins:hcl4j:0.9.1"
compile "com.bertramlabs.plugins:hcl4j:0.9.4"
}
```

## What's New

* **0.9.4** Fixing concurrent modification exception on data lookup
* **0.9.3** Added missing methods for array manipulation such as flatten and try
* **0.9.1** Remove annoying Nested Map Debug Log
* **0.9.0** HCL Tuple for loop nested improvements. String escapes fixed. anytrue and alltrue methods added.
* **0.8.0** HCL For Loop Tuples now evaluated.
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ ext {


group = 'com.bertramlabs.plugins'
version = '0.9.3'
version = '0.9.4'

ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
sourceCompatibility = "1.8"
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/bertramlabs/plugins/hcl4j/HCLParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ public Map<String, Object> parse(Reader reader, Boolean ignoreParserExceptions)
intermediateHclParserExceptionHandling(() -> processSymbolPass2(result.get("data"), result), ignoreParserExceptions);

}
for (String key : result.keySet()) {
for (String key : result.keySet().toArray(new String[0])) {
intermediateHclParserExceptionHandling(() -> {
if (!Objects.equals(key, "variable") && !Objects.equals(key, "data") && !Objects.equals(key, "locals")) {
processSymbolPass2(result.get(key), result);
Expand Down

0 comments on commit 24550a3

Please sign in to comment.