You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2017/02/13 10:30:41 UTC

[jira] [Commented] (FELIX-5541) ArrayIndexOutOfBoundsException in the parser

    [ https://issues.apache.org/jira/browse/FELIX-5541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15863438#comment-15863438 ] 

Guillaume Nodet commented on FELIX-5541:
----------------------------------------

When typing '<' or '>' at an empty prompt, the following exception is thrown:
{code}
java.lang.ArrayIndexOutOfBoundsException: 1
	at org.apache.felix.gogo.runtime.Token.charAt(Token.java:81)
	at java.util.regex.Pattern$Slice.match(Pattern.java:3969)
	at java.util.regex.Pattern$Ques.match(Pattern.java:4182)
	at java.util.regex.Pattern$Branch.match(Pattern.java:4604)
	at java.util.regex.Matcher.match(Matcher.java:1270)
	at java.util.regex.Matcher.matches(Matcher.java:604)
	at org.apache.felix.gogo.runtime.Tokenizer.next(Tokenizer.java:111)
	at org.apache.felix.gogo.runtime.Parser.next(Parser.java:284)
	at org.apache.felix.gogo.runtime.Parser.program(Parser.java:202)
	at org.apache.felix.gogo.jline.Highlighter.highlight(Highlighter.java:58)
	at org.jline.reader.impl.LineReaderImpl.getDisplayedBufferWithPrompts(LineReaderImpl.java:3398)
	at org.jline.reader.impl.LineReaderImpl.redisplay(LineReaderImpl.java:3338)
	at org.jline.reader.impl.LineReaderImpl.cleanup(LineReaderImpl.java:2263)
	at org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:623)
	at org.apache.felix.gogo.jline.Shell.runShell(Shell.java:407)
	at org.apache.felix.gogo.jline.Shell.gosh(Shell.java:329)
	at org.apache.felix.gogo.jline.Main.main(Main.java:79)
{code}

> ArrayIndexOutOfBoundsException in the parser
> --------------------------------------------
>
>                 Key: FELIX-5541
>                 URL: https://issues.apache.org/jira/browse/FELIX-5541
>             Project: Felix
>          Issue Type: Bug
>          Components: Gogo JLine
>            Reporter: Guillaume Nodet
>            Assignee: Guillaume Nodet
>             Fix For: gogo.jline-1.0.4
>
>




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)