Details
-
Type: Bug
-
Status: Resolved
-
Priority: Critical
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.1
-
Component/s: webcontainer
-
Labels:None
-
Environment:Windows JDK 1.5
-
Number of attachments :
Description
The offending code in 3 test cases:
xmlWebApplication(path:'/bar', warfile:'"testWar.getAbsolutePath()"')" +
Under windows, testWar.getAbsolutePath() retrieves backslashes by which Groovy complains loudly with the exception:
testCanComposeWebContainerAndWarFile(org.nanocontainer.webcontainer.groovy.WebContainerBuilderTestCase) Time elapsed: 1.015 sec <<< ERROR!
org.nanocontainer.script.groovy.GroovyCompilationException: Compilation Failed 'startup failed, nanocontainer.groovy: 9: unexpected char: '\' @ line 9, column 51.
1 error
'
at org.nanocontainer.script.groovy.GroovyContainerBuilder.createGroovyClass(GroovyContainerBuilder.java:102)
at org.nanocontainer.script.groovy.GroovyContainerBuilder.<init>(GroovyContainerBuilder.java:50)
at org.nanocontainer.webcontainer.groovy.WebContainerBuilderTestCase.buildContainer(WebContainerBuilderTestCase.java:255)
at org.nanocontainer.webcontainer.groovy.WebContainerBuilderTestCase.assertPageIsHostedWithContents(WebContainerBuilderTestCase.java:239)
at org.nanocontainer.webcontainer.groovy.WebContainerBuilderTestCase.testCanComposeWebContainerAndWarFile(WebContainerBuilderTestCase.java:140)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:135)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:122)
at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
Activity
Field | Original Value | New Value |
---|---|---|
Priority | Major [ 3 ] | Critical [ 2 ] |
Assignee | Paul Hammant [ paul ] |
Fix Version/s | 1.1 [ 12307 ] | |
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
I would consider this one critical to me for a release.
-Mike (R)