You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2020/11/09 21:39:45 UTC
[Bug 64911] New: [javac] Task regression between 1.10.6 and 1.10.8
https://bz.apache.org/bugzilla/show_bug.cgi?id=64911
Bug ID: 64911
Summary: [javac] Task regression between 1.10.6 and 1.10.8
Product: Ant
Version: 1.10.8
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Core tasks
Assignee: notifications@ant.apache.org
Reporter: tj.rothwell@gmail.com
Target Milestone: ---
## Problem
Triggered regression:
https://github.com/apache/ant/commit/15fcc941e01cb127bd2b137d88ed702dea6afa46#diff-91c4932c8be4bf0200b9885eac1d0f1052b4561e2c8f99fffcf874272dc56769R75
If an argument contains '#', it must be quoted in the JVM arg file as well.
Before, the classpath did not get included in arg file, so quoting was not
necessary.
Now, the classpath goes to the arg file, so it must be quoted.
## Proposed solution:
https://github.com/apache/ant/blob/master/src/main/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java#L552
1. `if (quoteFiles && args[i].contains(" ")) {`
2. `if (quoteFiles && Pattern.compile("[ #]").matcher(args[i]).find()) {`
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 64911] [javac] Task regression between 1.10.6 and 1.10.8
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64911
TJ Rothwell <ro...@amazon.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |DUPLICATE
Status|NEW |RESOLVED
--- Comment #2 from TJ Rothwell <ro...@amazon.com> ---
*** This bug has been marked as a duplicate of bug 64912 ***
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 64911] [javac] Task regression between 1.10.6 and 1.10.8
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64911
--- Comment #1 from TJ Rothwell <tj...@gmail.com> ---
This error occurs with Java 8.
--
You are receiving this mail because:
You are the assignee for the bug.