Re: is BCEL the tool for me?

2015-06-24 Thread Benedikt Ritter
Hello Li Li 2015-06-24 11:21 GMT+02:00 Li Li fancye...@gmail.com: Hi all, I have a jar file and without the source code, I want to replace a package and all classes of this package with my own. e.g. There is a package com.abc.tool com.abc.tool.A.class

Re: Commons Apache Fileupload from Classic web app and Struts 2 Integration

2015-06-24 Thread Benedikt Ritter
Hello Kiran, 2015-06-24 1:22 GMT+02:00 Kiran Badi ki...@poonam.org: Hi All, I was using Apache FileUpload 1.2 for my classic web app based on jsp/servlets and now I have integrated Struts 2.3.20 with this application. For some reason after adding S2 with my classic app, its breaking file

is BCEL the tool for me?

2015-06-24 Thread Li Li
Hi all, I have a jar file and without the source code, I want to replace a package and all classes of this package with my own. e.g. There is a package com.abc.tool com.abc.tool.A.class com.abc.tool.B.class The com.abc.tool.A.class and com.abc.tool.B.class are used

Re: [math] noob; performance metrics?

2015-06-24 Thread luc
Le 2015-06-23 22:44, Luc Maisonobe a écrit : Hi Andrew, Le 23/06/2015 19:08, Andrew E. Davidson a écrit : sorry if this has been asked many times before. (maybe this can be added to the FAQ?) has anyone done any bench marking? Yes. The idea of having a math package that is implemented

Re: is BCEL the tool for me?

2015-06-24 Thread Li Li
I am not familiar with byte code hacking, could you please recommend some tools for me? On Wed, Jun 24, 2015 at 6:12 PM, Dave Newton davelnew...@gmail.com wrote: There are various shading tools that could help rather than manually mucking about with byte code. On Jun 24, 2015 5:45 AM, Li Li

Re: is BCEL the tool for me?

2015-06-24 Thread Torsten Curdt
I have to use another package name other than the original one because the original package is loaded and not controlled by my code. I don't think you should mess around with the byte code in this situation. What if other code also uses the shared library and it depends on it's current

Re: is BCEL the tool for me?

2015-06-24 Thread Dave Newton
... Byte Code Engineering Library, ASM, others. On Jun 24, 2015 6:19 AM, Li Li fancye...@gmail.com wrote: I am not familiar with byte code hacking, could you please recommend some tools for me? On Wed, Jun 24, 2015 at 6:12 PM, Dave Newton davelnew...@gmail.com wrote: There are various

Re: is BCEL the tool for me?

2015-06-24 Thread Li Li
I have to use another package name other than the original one because the original package is loaded and not controlled by my code. On Wed, Jun 24, 2015 at 5:37 PM, Benedikt Ritter brit...@apache.org wrote: Hello Li Li 2015-06-24 11:21 GMT+02:00 Li Li fancye...@gmail.com: Hi all, I

Re: is BCEL the tool for me?

2015-06-24 Thread Torsten Curdt
I would rather use ASM for this. Have a look at the maven shade plugin. It has an implementation of pretty much what you have in mind. cheers, Torsten On Wed, Jun 24, 2015 at 11:44 AM, Li Li fancye...@gmail.com wrote: I have to use another package name other than the original one because the

Re: is BCEL the tool for me?

2015-06-24 Thread Dave Newton
There are various shading tools that could help rather than manually mucking about with byte code. On Jun 24, 2015 5:45 AM, Li Li fancye...@gmail.com wrote: I have to use another package name other than the original one because the original package is loaded and not controlled by my code. On

Re: is BCEL the tool for me?

2015-06-24 Thread Li Li
thank you, I will try ASM On Wed, Jun 24, 2015 at 6:12 PM, Torsten Curdt tcu...@vafer.org wrote: I would rather use ASM for this. Have a look at the maven shade plugin. It has an implementation of pretty much what you have in mind. cheers, Torsten On Wed, Jun 24, 2015 at 11:44 AM, Li Li

Re: is BCEL the tool for me?

2015-06-24 Thread Benedikt Ritter
Hello Li Li, 2015-06-24 11:44 GMT+02:00 Li Li fancye...@gmail.com: I have to use another package name other than the original one because the original package is loaded and not controlled by my code. I don't think you should mess around with the byte code in this situation. What if other

Re: [math] noob; performance metrics?

2015-06-24 Thread Benedikt Ritter
Hello Luc, 2015-06-23 22:50 GMT+02:00 Luc Maisonobe l...@spaceroots.org: Hi Mike, Le 23/06/2015 21:17, mike shugar a écrit : To amplify and extend the question - would also like to know the same info where bigdecimal is involved. I really don't know. We don't reall use BigDecimal in

Re: Commons Apache Fileupload from Classic web app and Struts 2 Integration

2015-06-24 Thread Kiran Badi
Hi Benedikt, I am on 1.3.1 and struts dependencies wrt to file upload is https://struts.apache.org/docs/file-upload.html#FileUpload-Dependencies I recently upgraded to 1.3.1 and my issue was with struts 2 playing mischief(I think fileupload interceptor was issue) and now it's fixed and working