-
Notifications
You must be signed in to change notification settings - Fork 61
Fixed ConcurrentModificationException on a map and tweeked some options. #443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
c0b88ba
1d16781
4d538e2
cfa2f13
1ccef57
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -29,6 +29,7 @@ | |||||||||||||||
| import java.nio.file.Paths; | ||||||||||||||||
| import java.util.ArrayList; | ||||||||||||||||
| import java.util.Arrays; | ||||||||||||||||
| import java.util.HashMap; | ||||||||||||||||
| import java.util.HashSet; | ||||||||||||||||
| import java.util.Iterator; | ||||||||||||||||
| import java.util.List; | ||||||||||||||||
|
|
@@ -140,6 +141,7 @@ private Map<String, String> getCompilerArguments(CompilerConfiguration config) { | |||||||||||||||
| } | ||||||||||||||||
|
|
||||||||||||||||
| compilerArguments = config.getCustomCompilerArgumentsAsMap(); | ||||||||||||||||
| Map<String, String> ca2 = new HashMap<String, String>(); | ||||||||||||||||
|
|
||||||||||||||||
| Iterator<String> i = compilerArguments.keySet().iterator(); | ||||||||||||||||
|
|
||||||||||||||||
|
|
@@ -151,12 +153,15 @@ private Map<String, String> getCompilerArguments(CompilerConfiguration config) { | |||||||||||||||
| i.remove(); | ||||||||||||||||
| String k = arr[0]; | ||||||||||||||||
| v = arr[1]; | ||||||||||||||||
| compilerArguments.put(k, v); | ||||||||||||||||
| // compilerArguments.put(k, v); | ||||||||||||||||
| ca2.put(k, v); | ||||||||||||||||
| if (config.isDebug()) { | ||||||||||||||||
| System.out.println("transforming argument from " + orig + " to " + k + " = [" + v + "]"); | ||||||||||||||||
| System.out.println( | ||||||||||||||||
| "internal splitting of argument '" + orig + "' to key '" + k + "', value '" + v + "'"); | ||||||||||||||||
| } | ||||||||||||||||
| } | ||||||||||||||||
| } | ||||||||||||||||
| compilerArguments.putAll(ca2); | ||||||||||||||||
|
|
||||||||||||||||
| config.setCustomCompilerArgumentsAsMap(compilerArguments); | ||||||||||||||||
|
|
||||||||||||||||
|
|
@@ -389,11 +394,12 @@ private String[] buildCompilerArguments(CompilerConfiguration config, String[] s | |||||||||||||||
| throws CompilerException { | ||||||||||||||||
| List<String> args = new ArrayList<>(); | ||||||||||||||||
|
|
||||||||||||||||
| if (config.isDebug()) { | ||||||||||||||||
| args.add("/debug+"); | ||||||||||||||||
| } else { | ||||||||||||||||
| args.add("/debug-"); | ||||||||||||||||
| } | ||||||||||||||||
| // plugin parameter is no the same as the compiler option! so replaced | ||||||||||||||||
|
||||||||||||||||
| // plugin parameter is no the same as the compiler option! so replaced | |
| // plugin parameter is not the same as the compiler option! so replaced |
Copilot
AI
Oct 5, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] Consider removing commented-out code rather than leaving it in the codebase. If this code might be needed for reference, document why it was removed in a comment.
| // plugin parameter is no the same as the compiler option! so replaced | |
| // if (config.isDebug()) { | |
| // args.add("/debug+"); | |
| // } else { | |
| // args.add("/debug-"); | |
| // } | |
| // plugin parameter is not the same as the compiler option, so debug handling was removed. |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do too but did not find a way to create a second pull request while the first one was still opened...
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] Consider removing commented-out code rather than leaving it in the codebase.