[rules-users] 3.1 M1 "from" keyword

Mark Proctor mproctor at codehaus.org
Thu Apr 26 20:13:37 EDT 2007


actually I got that wrong. We already do change the namespace. The 
problem is MVEL. MVEL uses reflection mode normally, but will use ASM if 
its provided, so its MVEL that is having the problem.

Mark
Mark Proctor wrote:
> For M2 I'll look at changing the namespace for ASM to avoid this 
> issue. Not sure how you'll avoid the issue till then.
>
> Mark
> brad hadfield wrote:
>> Hi, I wonder if anyone could help me?
>>
>> I'm attempting to use the 'from' keyword in  the same fashion as the 
>> sample found on the Release Notes/Language Improvement wiki.  The 
>> example shows a piece of syntax that uses the 'from' keyword to 
>> obtain data via a Hibernate query. i.e:
>>  
>>   $r : Restaurant( $postCode ) from hbSession.getNamedQuery( "some 
>> query" ).setProperties( [ key1 : value2, key2 : value ] ).list()
>>
>> I'm having difficulty executing syntax using this keyword because 
>> Hibernate uses CGlib which relies on ASM 1.5.3 - the 'from' keyword 
>> seems to rely on MVEL which uses ASM 3.0.
>>  
>> ASM 3.0 is not backwards compatible with ASM 1.5.3 and I get 'no such 
>> method' errors.
>>  
>> So how does one get the 'from' keyword to work in an environment 
>> running Hibernate?
>>  
>> Thanks,
>> Brad
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>   
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070427/477f4f29/attachment.html 


More information about the rules-users mailing list