Problem with JFlex-generated lexer

I'm using the JFlex tool bundled with IDEA #7051 and it's generating source that won't compile. Specifically, it's generating the following line in the lexer's reset method:

zzBufferArray = com.intellij.util.text.CharArrayUtil.fromSequenceWithoutCopying(buffer);

IDEA complains (as does the compiler) that the fromSequenceWithoutCopying method does not exist.

I'm executing JFlex using a java task in an ant build script with the following args: --nobak --charat --skel idea-jflex.skeleton -d /my/output/dir /my/grammar.flex

2 comments
Comment actions Permalink

That method is IDEA 7.0 specific one

Gordon Tyler wrote:

I'm using the JFlex tool bundled with IDEA #7051 and it's generating source that won't compile. Specifically, it's generating the following line in the lexer's reset method:

zzBufferArray = com.intellij.util.text.CharArrayUtil.fromSequenceWithoutCopying(buffer);

IDEA complains (as does the compiler) that the fromSequenceWithoutCopying method does not exist.

I'm executing JFlex using a java task in an ant build script with the following args: --nobak --charat --skel idea-jflex.skeleton -d /my/output/dir /my/grammar.flex



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

Yeah I just this minute realized that my IDEA project setup with an older IDEA's SDK by mistake.

0

Please sign in to leave a comment.