소스 검색

fixed a bug so that ExprEditor#edit(NewExpr) can process a method compiled by Eclipse.


git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@205 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
tags/rel_3_17_1_ga
chiba 19 년 전
부모
커밋
51e498f02b
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2
    0
      src/main/javassist/expr/NewExpr.java

+ 2
- 0
src/main/javassist/expr/NewExpr.java 파일 보기

@@ -125,6 +125,8 @@ public class NewExpr extends Expr {
else if (op == Opcode.DUP_X1
&& iterator.byteAt(newPos + 4) == Opcode.SWAP)
return 5;
else if (op == Opcode.INVOKESPECIAL)
return 3; // for Eclipse's compiler
else
throw new CannotCompileException(
"sorry, cannot edit NEW followed by no DUP");

Loading…
취소
저장