I could have sworn that I have hot code swapped code that was compiled
with javac using Eclipse in the past (perhaps only with 1.4). I realize
that no 2 compilers will produce identical byte code, I was more
referring to a difference significant enough to cause hot code replace
to fail. I did test 3.1Final, and it behaves the same.

-Jason

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:jboss-
> [EMAIL PROTECTED] On Behalf Of Max Rydahl
Andersen
> Sent: Thursday, June 30, 2005 3:44 PM
> To: jboss-development@lists.sourceforge.net; jboss-
> [EMAIL PROTECTED]; Thomas Diesler
> Cc: Marshall Culpepper
> Subject: Re: [JBoss-dev] Remote debuging with eclipse
> 
> 
> eclipse bytecode has always been different.
> 
> javac and eclipse compiler has different forces.
> 
> Not a bug, just a feature.
> 
> -max
> 
> > Ok, I did some research on this, and I have an answer for you. The
> > reason why hotcode replace is not working, is because the eclipse
> > compiler and the javac compiler are generating different byte code.
This
> > effectively causes all code changes to be a schema change.
> >
> > I was able to fix this by changing the my build configuration to use
the
> > eclipse compiler. These are the steps I took to fix this:
> >
> > 1. Copy org.eclipse.jdt.core_3.1.0.jar from your eclipse/plugins
> > directory to your ant/lib. If you are using the build.sh or
build.bat
> > then this will be in jboss-head/tools/lib.
> > 2. Extract the jdtCompilerAdapter.jar file from
> > org.eclipse.jdt.core_3.1.0.jar and put it in your ant/lib (or
> > jboss-head/tools/lib)
> > 3. Edit your build/local.properties file and set
> > build.compiler=org.eclipse.jdt.core.JDTCompilerAdapter
> > 4. do a build clean; build to recompile the main jboss build with
the
> > eclipse compiler.
> >
> > I am not sure whether the byte code difference is intentional, it
could
> > be that this is all a bug, but I am guess that it is not. I have not
> > tried the final release of 3.1 (released the 25th). I will report
back
> > when I find that out.
> >
> >
> > Marshall,
> >
> > You are an eclipse guru, where you aware of this?
> >
> > Thanks,
> >
> > -Jason
> >
> >> -----Original Message-----
> >> From: [EMAIL PROTECTED] [mailto:jboss-
> >> [EMAIL PROTECTED] On Behalf Of Thomas
Diesler
> >> Sent: Thursday, June 30, 2005 6:37 AM
> >> To: jboss-development@lists.sourceforge.net; jboss-
> >> [EMAIL PROTECTED]
> >> Subject: RE: [JBoss-dev] Remote debuging with eclipse
> >>
> >> My point is, that even with minor modifications that do not involve
a
> >> scheme change I get this error.
> >>
> >> For me, hot code replace does not work at all. Is anybody using
this
> >> with eclipse connected to a remote jboss instance?
> >>
> >> cheers
> >> -thomas
> >>
> >> -----Original Message-----
> >> From: [EMAIL PROTECTED]
> >> [mailto:[EMAIL PROTECTED] On Behalf Of
> > Max
> >> Rydahl Andersen
> >> Sent: 30 June 2005 11:31
> >> To: jboss-development@lists.sourceforge.net;
> >> [EMAIL PROTECTED]
> >> Subject: Re: [JBoss-dev] Remote debuging with eclipse
> >>
> >>
> >>
> >> I dont know of any hotswapping JVM that allows schema changes.
> >>
> >> The only hotswapping that is possible in eclipse or any other
> >> hotswapping
> >> IDE is AFAIK method body changes.
> >>
> >> Changes of method or class signature (schema) is not allowed.
> >>
> >> Are you *only* changing method bodies ?
> >>
> >> -max
> >>
> >> > When I remotely connect to jboss using
> >> >
> >> > # Sample JPDA settings for remote socket debuging
> >> > JAVA_OPTS="$JAVA_OPTS -Xdebug
> >> > -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"
> >> >
> >> > I never seem to be able to hot swap code in the server after
minor
> >> > modification. Eclipse 3.1RC4 always tells me
> >> >
> >> > Hot code replace failed - scheme change not implemented.
> >> >
> >> > This is a major productivity impact for me. Has anyone found how
to
> >> hot
> >> > swap with eclipse?
> >> >
> >> >
> >> > _________________
> >> > Thomas Diesler
> >> > Web Service Lead
> >> > JBoss Inc.
> >> >
> >>
> >>
> >>
> >>
> >> -------------------------------------------------------
> >> SF.Net email is sponsored by: Discover Easy Linux Migration
Strategies
> >> from IBM. Find simple to follow Roadmaps, straightforward articles,
> >> informative Webcasts and more! Get everything you need to get up to
> >> speed, fast.
http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> >> _______________________________________________
> >> JBoss-Development mailing list
> >> JBoss-Development@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/jboss-development
> >>
> >>
> >> -------------------------------------------------------
> >> SF.Net email is sponsored by: Discover Easy Linux Migration
Strategies
> >> from IBM. Find simple to follow Roadmaps, straightforward articles,
> >> informative Webcasts and more! Get everything you need to get up to
> >> speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=ick
> >> _______________________________________________
> >> JBoss-Development mailing list
> >> JBoss-Development@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/jboss-development
> >
> >
> > -------------------------------------------------------
> > SF.Net email is sponsored by: Discover Easy Linux Migration
Strategies
> > from IBM. Find simple to follow Roadmaps, straightforward articles,
> > informative Webcasts and more! Get everything you need to get up to
> > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
> > _______________________________________________
> > JBoss-Development mailing list
> > JBoss-Development@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/jboss-development
> 
> 
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> _______________________________________________
> JBoss-Development mailing list
> JBoss-Development@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jboss-development


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to