[
https://issues.apache.org/jira/browse/DRILL-213?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jacques Nadeau updated DRILL-213:
---------------------------------
Target Version/s: M1
> Test cases fail on Windows
> --------------------------
>
> Key: DRILL-213
> URL: https://issues.apache.org/jira/browse/DRILL-213
> Project: Apache Drill
> Issue Type: Bug
> Reporter: Aditya Kishore
> Assignee: Aditya Kishore
>
> Using File.separator or File.separatorChar to replace "." with file separator
> char breaks the transformation code.
> {code}
> testJDKCompilation(org.apache.drill.exec.compile.TestClassTransformation)
> Time elapsed: 0.725 sec <<< ERROR!
> java.lang.StringIndexOutOfBoundsException: String index out of range: 1
> at java.lang.String.charAt(String.java:658)
> at java.util.regex.Matcher.appendReplacement(Matcher.java:762)
> at java.util.regex.Matcher.replaceAll(Matcher.java:906)
> at java.lang.String.replaceAll(String.java:2162)
> at
> org.apache.drill.exec.compile.ClassTransformer.getImplementationClass(ClassTransformer.java:117)
> at
> org.apache.drill.exec.compile.ClassTransformer.getImplementationClassByBody(ClassTransformer.java:98)
> at
> org.apache.drill.exec.compile.TestClassTransformation.testBasicClassCompilation(TestClassTransformation.java:45)
> at
> org.apache.drill.exec.compile.TestClassTransformation.testJDKCompilation(TestClassTransformation.java:35)
> {code}
> OR
> {code}
> sortOneKeyAscending(org.apache.drill.exec.physical.impl.sort.TestSimpleSort)
> Time elapsed: 0.227 sec <<< ERROR!
> java.lang.StringIndexOutOfBoundsException: String index out of range: 1
> at java.lang.String.charAt(String.java:658)
> at java.util.regex.Matcher.appendReplacement(Matcher.java:762)
> at java.util.regex.Matcher.replaceAll(Matcher.java:906)
> at java.lang.String.replaceAll(String.java:2162)
> at
> org.apache.drill.exec.compile.ClassTransformer.getImplementationClass(ClassTransformer.java:117)
> at
> org.apache.drill.exec.ops.FragmentContext.getImplementationClass(FragmentContext.java:105)
> at
> org.apache.drill.exec.physical.impl.sort.SortBatch.createNewSorter(SortBatch.java:172)
> at
> org.apache.drill.exec.physical.impl.sort.SortBatch.next(SortBatch.java:124)
> at
> org.apache.drill.exec.record.AbstractSingleRecordBatch.next(AbstractSingleRecordBatch.java:25)
> at
> org.apache.drill.exec.physical.impl.SimpleRootExec.next(SimpleRootExec.java:48)
> at
> org.apache.drill.exec.physical.impl.sort.TestSimpleSort.sortOneKeyAscending(TestSimpleSort.java:58)
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira