[jruby-joni] 08/223: Fix bytecode printer to support some missing singlebyte bytecodes.
Hideki Yamane
henrich at moszumanska.debian.org
Mon Nov 16 11:21:39 UTC 2015
This is an automated email from the git hooks/post-receive script.
henrich pushed a commit to branch debian/sid
in repository jruby-joni.
commit 0bbfef8c88843324ec0cd2960e2f413c4a0eb542
Author: Marcin Mielżyński <lopx at gazeta.pl>
Date: Mon Jan 7 22:51:50 2008 +0000
Fix bytecode printer to support some missing singlebyte bytecodes.
git-svn-id: http://svn.codehaus.org/jruby/joni/trunk@5528 961051c9-f516-0410-bf72-c9f7e237a7b7
---
src/org/joni/ByteCodePrinter.java | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/org/joni/ByteCodePrinter.java b/src/org/joni/ByteCodePrinter.java
index 9f18fb9..227c462 100644
--- a/src/org/joni/ByteCodePrinter.java
+++ b/src/org/joni/ByteCodePrinter.java
@@ -24,6 +24,7 @@ import org.joni.constants.Arguments;
import org.joni.constants.OPCode;
import org.joni.constants.OPSize;
import org.joni.encoding.Encoding;
+import org.joni.exception.InternalException;
class ByteCodePrinter {
@@ -107,7 +108,9 @@ class ByteCodePrinter {
case OPCode.EXACT1:
case OPCode.ANYCHAR_STAR_PEEK_NEXT:
case OPCode.ANYCHAR_ML_STAR_PEEK_NEXT:
- pString(sb, 1, bp++);
+ case OPCode.ANYCHAR_STAR_PEEK_NEXT_SB:
+ case OPCode.ANYCHAR_ML_STAR_PEEK_NEXT_SB:
+ pString(sb, 1, bp++);
break;
case OPCode.EXACT2:
@@ -321,8 +324,7 @@ class ByteCodePrinter {
break;
default:
- warnings.warn("undefined code: " + --bp);
-
+ throw new InternalException("undefined code: " + code[--bp]);
}
}
sb.append("]");
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jruby-joni.git
More information about the pkg-java-commits
mailing list