Giter VIP home page Giter VIP logo

jaop's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

n040661 kshu1989

jaop's Issues

最近在研究ASM,发现这个项目写的很好,很有创意,但是有几个问题想讨论下?

  1. test中的例子可以修改参数,其实是跟例子有关
    Computer.sum(int... numberArray)中的参数是数组类型,可以修改,如果非数组或者容器类型的参数,是不可以修改的,例如:在Computer中添加下面方法,亲测无效,我也发现原因了,相当于在嵌套方法中修改父方法的参数,传递的是一个copy,修改了没用,但是对数组和容器类型是可以生效的,我试了一种方法,就是将方法的参数也使用字节码彻底修改,可以实现修改参数功能,有机会可以探讨
    public int sub(int a1, int a2){
    return a1 - a2;
    }
  2. 不了解为什么使用的cglib的Enhance类,生成Computer的父类,直接使用字节码实现AOP的功能就可以了,为啥多此一举,没想明白?

最后,该项目想法很好,很新颖,使用event和handler的方式,使用起来很方便

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.