If the new class (from b22) has different methods signeture or uses classes that the 
old build (18) wasnot using then he will have classnot found exception...

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 13, 2003 6:01 PM
> To: Uzi Refaeli
> Subject: Re: [OT] Java linkage
> 
> 
> import caluses are meaningless here. They are just a 
> syntactic sugar to
> let programmers avoid having to type the full package names 
> every time they
> reffer to a class.
> The class signature also has nothing to do with this since as 
> I understand
> the question Tal wants to know whether all the 
> classes/methods used from
> within the new version of the class are available in the classpath at 
> runtime,
> he can, for instance, use some new com.company.xxx.AClass.AMethod()
> from the new version.
> (Not to mention dynamic class loading with reflection and 
> Class.forName()).
> 
> I myself am not aware of such a tool. If you don't have dynamic class 
> loading
> in the code then you might want to look at some Apache Java 
> (Jakarta) side
> projects like BCEL (http://jakarta.apache.org/bcel/index.html) for 
> something to
> base your own code analysis on. (e.g. run a Java program with 
> the relevant
> CLASSPATH, extract reffered method calls and class names from the code
> and try "Class.forName()" on them. Then make sure that the 
> found class comes
> from a relevant CLASSPATH component. In addition use 
> reflection to lookup
> the particular method/constructor within the loaded class).
> 
> --Amos
> 
> Uzi Refaeli wrote:
> 
> >Donot know about such a tool but you can check that:
> >* The new class dose not import classes that are not in the 
> application cp.
> >* The class signature is the same.
> >
> >good luck
> >
> >  
> >
> >>From: Tal Achituv [mailto:[EMAIL PROTECTED]
> >>Sent: Wednesday, August 13, 2003 5:14 PM
> >>To: 'Ron Gidron'
> >>Cc: '[EMAIL PROTECTED]'
> >>Subject: RE: [OT] Java linkage
> >>
> >>
> >>Yes, When I wrote the mail I was confused myself - as there 
> is no real
> >>"link" in java...
> >>
> >>here's the problem:
> >>
> >>I have to supply a patch for a software build 18, and am 
> >>currently working
> >>on build 22 of the same software.
> >>
> >>I wonder if I can just give them the class from the b22 and 
> >>put it instead
> >>the patch requiring class of the b18...
> >>
> >>Now I need to wait until runtime to see if this class really 
> >>fits... :-)
> >>
> >>seems like I'm not the first to hit this problem... as in the 
> >>C world you
> >>simply "link"...
> >>
> >>(I know the class from b22 compiles... I don't know if it 
> >>"links" with all
> >>the others correctly... [lets say a method signature changed])...
> >>
> >>Do you know if there is a "solution" in the industry??
> >>
> >>Tal.
> >>
> >>-----Original Message-----
> >>From: Ron Gidron [mailto:[EMAIL PROTECTED]
> >>Sent: Wednesday, August 13, 2003 6:04 PM
> >>To: 'Tal Achituv'
> >>Subject: RE: [OT] Java linkage
> >>
> >>
> >>How do you mean **links**?
> >>AFAIK Class files are independent and are executed as such 
> by the JVM,
> >>There is no traditional linkage done in Java and there is no 
> >>linker. The JVM
> >>is responsible to download all the referred classes that you 
> >>class refers to
> >>AT RUNTIME...
> >>
> >>I hope I understood the question well, please feel free to 
> >>ask again or
> >>elaborate your previous question.
> >>
> >>Regards
> >>Ron 
> >>
> >>-----Original Message-----
> >>From: [EMAIL PROTECTED] 
> >>    
> >>
> >[mailto:[EMAIL PROTECTED]
> >On Behalf Of Tal Achituv
> >Sent: Wednesday, August 13, 2003 4:00 PM
> >To: '[EMAIL PROTECTED]'
> >Subject: [OT] Java linkage
> >
> >Hi all
> >
> >Is there a tool / method to check if a compiles java object 
> (class) links
> >correctly?
> >
> >Any thoughts?
> >
> >Thanks,
> >Tal Achituv.
> >
> >=================================================================
> >To unsubscribe, send mail to [EMAIL PROTECTED] with
> >the word "unsubscribe" in the message body, e.g., run the command
> >echo unsubscribe | mail [EMAIL PROTECTED]
> >
> >=================================================================
> >To unsubscribe, send mail to [EMAIL PROTECTED] with
> >the word "unsubscribe" in the message body, e.g., run the command
> >echo unsubscribe | mail [EMAIL PROTECTED]
> >
> >
> >=================================================================
> >To unsubscribe, send mail to [EMAIL PROTECTED] with
> >the word "unsubscribe" in the message body, e.g., run the command
> >echo unsubscribe | mail [EMAIL PROTECTED]
> >
> >
> >
> >---------- Your email is protected by Mailshell ---------- 
> >To block spam or change delivery options: 
> http://www.mailshell.com/control.html?a=blshp8bbumg87yq1j9157q
v2pz6_58z35eg0
>
>FreshAddress.com http://rd.mailshell.com/ad482
>Earn up to $3 for each of your friends who signs up with Mailshell! 
>http://rd.mailshell.com/sp5
>  
>


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to