From: Lane S. <la...@op...> - 2004-01-19 18:35:03
|
Hi Sharif, The problem lies, I believe, in the introspector for WebMacro which is, as you discovered, a fairly complex piece of code which makes possible the scripting marriage to Java Object instances. A Hashtable with two signatures: get(Object) get(int) may work in the newer release of WebMacro available via CVS. Did you check this version out and try? Also, I do not see a reason why this problem could not be solved with a source change. -Lane Sharif J. Alexandre wrote: >Hi, > >I have an object that extends a Hashtable and overloads the get() method with >a get(int). When I place this object into a Context, I get an error when any >of the entries in that object are accessed. Here's a portion of that error: > >org.webmacro.PropertyException: Some kind of error occurred processing your >request: this indicates a failure in PropertyOperator.java that should be >reported: attempt to access method public java.lang.Object >org.dbadmin.util.MyMap.get(int) on object {systemDate=Jan 17, 2004 5:31:47 >PM} with 1 parameters threw an exception: >java.lang.IllegalArgumentException: argument type mismatch > >I did some digging and found that in engine/PropertyOperatorCache.java a >MethodAccessor class is defined which only allows one get method (I'm using >1.1 final). Is there a reason for this? Shouldn't it be possible to include >any object in a Context -- even if it's a subclassed Hashtable? > >Thanks, >Sharif > > >__________________________________ >Do you Yahoo!? >Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes >http://hotjobs.sweepstakes.yahoo.com/signingbonus > > >------------------------------------------------------- >The SF.Net email is sponsored by EclipseCon 2004 >Premiere Conference on Open Tools Development and Integration >See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. >http://www.eclipsecon.org/osdn >_______________________________________________ >Webmacro-devel mailing list >Web...@li... >https://lists.sourceforge.net/lists/listinfo/webmacro-devel > > > -- Lane Sharman Just Do IT, Better. 858-755-2868 |