Sorin Miklós Zsejki | 29 May 05:33

Tests fail

Does this happen to others too? (revision 1744)

    [junit] Running com.sun.fortress.syntax_abstractions.SyntaxAbstractionJUTest
    [junit] Component: SyntaxTestUse imports grammars...
    [junit] java.lang.StringIndexOutOfBoundsException: String index
out of range: 1
    [junit] 	at java.lang.String.charAt(String.java:687)
    [junit] 	at java.util.regex.Matcher.appendReplacement(Matcher.java:703)
    [junit] 	at java.util.regex.Matcher.replaceAll(Matcher.java:813)
    [junit] 	at java.lang.String.replaceAll(String.java:2190)
    [junit] 	at
com.sun.fortress.syntax_abstractions.rats.RatsUtil.getModulePath(RatsUtil.java:180)
    [junit] 	at
com.sun.fortress.syntax_abstractions.rats.RatsUtil.writeRatsModule(RatsUtil.java:107)
    [junit] 	at
com.sun.fortress.syntax_abstractions.rats.FortressRatsGrammar.clone(FortressRatsGrammar.java:89)
    [junit] 	at
com.sun.fortress.syntax_abstractions.rats.RatsParserGenerator.generateParser(RatsParserGenerator.java:93)
    [junit] 	at
com.sun.fortress.syntax_abstractions.FileBasedMacroCompiler.compile(FileBasedMacroCompiler.java:75)
    [junit] 	at
com.sun.fortress.syntax_abstractions.parser.FortressParser.parse(FortressParser.java:75)
    [junit] 	at
com.sun.fortress.shell.PathBasedSyntaxTransformingRepository.getCompilationUnit(PathBasedSyntaxTransformingRepository.java:52)
    [junit] 	at
com.sun.fortress.shell.PathBasedRepository.getComponent(PathBasedRepository.java:127)
    [junit] 	at
com.sun.fortress.compiler.RepositoryUpdater.addComponent(RepositoryUpdater.java:135)
    [junit] 	at
com.sun.fortress.shell.BatchCachingRepository.addRootComponent(BatchCachingRepository.java:115)
(Continue reading)

David Chase | 29 May 15:54

Re: Tests fail

If you are running Cygwin on Windows, this is bug #111.

It's related to path/filename processing, and we don't regularly test  
on Cygwin boxes.  It's on my list to do something about this, but if  
you want to take a crack at figuring out how we got here (backtracking  
from the empty string that caused this, since you can create the bug)  
it might not be hard.

David

On 2008-05-28, at 11:36 PM, Sorin Miklós Zsejki wrote:

> Does this happen to others too? (revision 1744)
>
>    [junit] Running  
> com.sun.fortress.syntax_abstractions.SyntaxAbstractionJUTest
>    [junit] Component: SyntaxTestUse imports grammars...
>    [junit] java.lang.StringIndexOutOfBoundsException: String index
> out of range: 1
>    [junit] 	at java.lang.String.charAt(String.java:687)
>    [junit] 	at  
> java.util.regex.Matcher.appendReplacement(Matcher.java:703)
>    [junit] 	at java.util.regex.Matcher.replaceAll(Matcher.java:813)
>    [junit] 	at java.lang.String.replaceAll(String.java:2190)
>    [junit] 	at
> com 
> .sun 
> .fortress 
> .syntax_abstractions.rats.RatsUtil.getModulePath(RatsUtil.java:180)
>    [junit] 	at
(Continue reading)

Sorin Miklós Zsejki | 29 May 17:02

Re: Tests fail

Thanks. I ran it on Windows, which I don't usually do, either. If it's
a known issue, it doesn't bother me right now.

On Thu, May 29, 2008 at 4:54 PM, David Chase <dr2chase@...> wrote:
> If you are running Cygwin on Windows, this is bug #111.
>
> It's related to path/filename processing, and we don't regularly test on
> Cygwin boxes.  It's on my list to do something about this, but if you want
> to take a crack at figuring out how we got here (backtracking from the empty
> string that caused this, since you can create the bug) it might not be hard.
>
> David
>
> On 2008-05-28, at 11:36 PM, Sorin Miklós Zsejki wrote:
>
>> Does this happen to others too? (revision 1744)
>>
>>   [junit] Running
>> com.sun.fortress.syntax_abstractions.SyntaxAbstractionJUTest
>>   [junit] Component: SyntaxTestUse imports grammars...
>>   [junit] java.lang.StringIndexOutOfBoundsException: String index
>> out of range: 1
>>   [junit]      at java.lang.String.charAt(String.java:687)
>>   [junit]      at
>> java.util.regex.Matcher.appendReplacement(Matcher.java:703)
>>   [junit]      at java.util.regex.Matcher.replaceAll(Matcher.java:813)
>>   [junit]      at java.lang.String.replaceAll(String.java:2190)
>>   [junit]      at
>>
>> com.sun.fortress.syntax_abstractions.rats.RatsUtil.getModulePath(RatsUtil.java:180)
(Continue reading)


Gmane