Jay Strauss wrote:
> If I uncomment the studying of the Contract class everything works. Maybe I
> misunderstand autostudy, but I thought it was an ease of use thing, so you
> don't have to list every java class you might use
autostudy does let you use Java objects whose class hasn't been listed, but not
it will not auto-create Perl classes that might be connected to a Java class
when it comes across a class name that doesn't really exist.
[snip]
> if ($flag) {
> my $contract = com::ib::client::Contract->new();
Here's the problem. How does Inline::Java know that 'com::ib::client::Contract'
is supposed to be a wrapper for a Java class? if you STUDY
'com.ib.client.Contract' then it will create the 'com::ib::client::Contract'
class and then it obviously knows.
Now, if you had some other Java object that returned a 'com.ib.client.Contract'
object, AUTOSTUDY could kick in and create a corresponding
'com::ib::client::Contract' Perl class.
Make sense?
--
Michael Peters
Developer
Plus Three, LP