Redian新闻
>
how to weave an existing jar ?
avatar
how to weave an existing jar ?# Java - 爪哇娇娃
c*e
1
我不会用telent,也不会什么cterm
avatar
c*n
2
I have a jar that contains a Blah class
and in Blah() ctor it somehow calls System.gc()
now let's say I use the jar that contains Blah(), and call new Blah().
I would get the gc(), so I am trying to detect this call ----- I'm not sure
where it called the "new Blah()" and System.gc() . I'm trying to do
through aspectj, by doing a pointcut on System.gc
but the problem is, now if I include the Blah() implementation in my code,
it's able to detect it, but if I just include the Blah() jar, it can't weave
and detect it.
I tried adding the -javaagent:aspectjweaver.jar , but it doesn't work
Thanks
avatar
f*r
3
没关系,早知道你结婚了。

【在 c*****e 的大作中提到】
: 我不会用telent,也不会什么cterm
avatar
T*g
4
any detail for ur pointcut, advice, and eng?

sure
weave

【在 c******n 的大作中提到】
: I have a jar that contains a Blah class
: and in Blah() ctor it somehow calls System.gc()
: now let's say I use the jar that contains Blah(), and call new Blah().
: I would get the gc(), so I am trying to detect this call ----- I'm not sure
: where it called the "new Blah()" and System.gc() . I'm trying to do
: through aspectj, by doing a pointcut on System.gc
: but the problem is, now if I include the Blah() implementation in my code,
: it's able to detect it, but if I just include the Blah() jar, it can't weave
: and detect it.
: I tried adding the -javaagent:aspectjweaver.jar , but it doesn't work

avatar
c*e
5
哈哈哈哈,你太好玩了,不会用那个为什么就要结婚?

【在 f**********r 的大作中提到】
: 没关系,早知道你结婚了。
avatar
f*r
6
看你的片片有感

【在 c*****e 的大作中提到】
: 哈哈哈哈,你太好玩了,不会用那个为什么就要结婚?
avatar
c*e
7
diang

【在 f**********r 的大作中提到】
: 看你的片片有感
avatar
s*t
8
同感。。。
照片上的年纪配上如此好和正常的心态,肯定是太太级别的。。。
否则心态肯定不是如此的。。。

【在 f**********r 的大作中提到】
: 看你的片片有感
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。