Re: some puzzles about Openjdk

2009-04-08 Thread Liu lianshun
- Original Message - From: "Patrick Wright" To: "Liu lianshun" ; Sent: Wednesday, April 08, 2009 10:58 PM Subject: Re: some puzzles about Openjdk On Wed, Apr 8, 2009 at 4:30 PM, Alan Bateman wrote: > Liu lianshun wrote: >> My first question is that, I want to change the java applicati

Re: some puzzles about Openjdk

2009-04-08 Thread Patrick Wright
On Wed, Apr 8, 2009 at 4:30 PM, Alan Bateman wrote: > Liu lianshun wrote: >> My first question is that, I want to change the java application's >> behavior, in the other words, manipulate the bytecodes of some class when >> running the application without changing the class file itself. Is it >> p

Re: some puzzles about Openjdk

2009-04-08 Thread Alan Bateman
Liu lianshun wrote: Hi, Dalibor Topic Thanks very much for your reply. My first question is that, I want to change the java application's behavior, in the other words, manipulate the bytecodes of some class when running the application without changing the class file itself. Is it possible? Ca

Re: some puzzles about Openjdk

2009-04-08 Thread Liu lianshun
Hi, Dalibor Topic Thanks very much for your reply. My first question is that, I want to change the java application's behavior, in the other words, manipulate the bytecodes of some class when running the application without changing the class file itself. Is it possible? Can this be done via ha

Re: some puzzles about Openjdk

2009-04-08 Thread Dalibor Topic
Liu lianshun wrote: > Firstly, I want to know that whether I can change the java programes' > behavior via changing some source files in OpenJDK, for examples, > execute the following codes will print "100". > int i=100; > System.out.println(i); > My question is that how to print "200", wit