skypacer210 / aviator

Automatically exported from code.google.com/p/aviator
0 stars 0 forks source link

做了一个简单的测试,出错了 #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
下载后导入lib下的所有jar和aviator-1.0.0-RC.jar
Src Code:
      Map<String, Object> env = new HashMap<String, Object>();
      env.put("email", "killme2008@gmail.com");
      final TestObject testObject = new TestObject();
      //env.put("obj", testObject);
      String username = (String) AviatorEvaluator.execute("email=~/([\\w0-8]+@\\w+[\\.\\w+]+)/ ? $1:'unknow'", env);

Exception:
Exception in thread "main" java.lang.NoSuchMethodError: 
org.objectweb.asm.ClassWriter.<init>(I)V
    at com.googlecode.aviator.code.asm.ASMCodeGenerator.<init>(ASMCodeGenerator.java:86)
    at com.googlecode.aviator.AviatorEvaluator.compile(AviatorEvaluator.java:176)

Original issue reported on code.google.com by anyfl...@gmail.com on 2 Jul 2010 at 10:46

GoogleCodeExporter commented 8 years ago
我测试了是可以到,是不是你到classpath里还有其他到asm版本��
�

Original comment by killme2...@gmail.com on 3 Jul 2010 at 12:18

GoogleCodeExporter commented 8 years ago

Original comment by killme2...@gmail.com on 7 Jul 2010 at 5:27