Hi Dan -

     Thanks very much.  Yup, a lot of the constant strings that BCEL emits
look just like the JNI method signature components.  In a previous life I
wrote a LOT of Win32 JNI and got very familiar with all that gibberish.
Now I'm a happy pure-Java programmer :-)

     Thanks,

Tom Copeland
[EMAIL PROTECTED]
703-317-5193


                                                                                       
                                                             
                    Daniel Rall                                                        
                                                             
                    <dlr@finemaltcoding        To:     [EMAIL PROTECTED]      
                                                             
                    .com>                      cc:                                     
                                                             
                    Sent by:                   Subject:     Re: ImportScrubberTask     
                                                             
                    [EMAIL PROTECTED]                                                
                                                             
                    coding.com                                                         
                                                             
                                                                                       
                                                             
                                                                                       
                                                             
                    10/22/2001 04:21 PM                                                
                                                             
                    Please respond to                                                  
                                                             
                    general                                                            
                                                             
                                                                                       
                                                             
                                                                                       
                                                             




[EMAIL PROTECTED] writes:

>      That's too bad that importscrubber messed up the Scarab source code.
> Importscrubber is still definitely a work in progress, and there are some
> things that it is definitely going to miss.  For example, since the
> compiler inlines references to static finals, and importscrubber looks in
> the class file for class references.... it's going to miss those
> references.  Which is unfortunate.  Also, if a string looks a lot like a
> class name, Importscrubber may think its a class name and try to turn it
> into an import statement.

When writing JNI code which references Java classes, one has to use
special markup on the fully qualified class names.
I.e. "Lorg/apache/turbine/Turbine;" would be the string literal
corresponding to the class org.apache.turbine.Turbine, and something
like "(Ljava/lang/String;Ljava/lang/String;)V" to denote a method
which takes two String parameters.  Looking at some bytecode using
`strings`, I notice that this seems to apply to at least part of a
method signature.  Not a lot of help here, but maybe something to
think about.  <shrug/>

                                 Dan


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


                                                                            
                                                                            
 -------------------------------------------------------------------------- 


This email may contain confidential and proprietary information which is
for the sole use of the intended recipient.  If you received this email in
error, please notify the sender and delete this email from your computer.
Any review, distribution or retransmission of or reliance on this email by
anyone other than the intended recipient is forbidden.




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to