The src code is not kept. You would have to get this from the
PackageBuilder and the JavaDialect, which is in the DialectRegistry.
You'll need to do this via reflection. When you get a reference to the
mape it'll be bytes again, just do new String(byte[] bytes).
Mark
Markus Helbig wrote:
I decompiled the class files, but there's sth curious in the
Constant
Pool there is an invalid TagValue it is 97, it occurs in the
*ReturnValueInvoker Classes any idea what's 97 (or it should be mapped
to)?
valid types are (as far as i know):
CONSTANT_Class 7
CONSTANT_Fieldref 9
CONSTANT_Methodref 10
CONSTANT_InterfaceMethodref 11
CONSTANT_String 8
CONSTANT_Integer 3
CONSTANT_Float 4
CONSTANT_Long 5
CONSTANT_Double 6
CONSTANT_NameAndType 12
CONSTANT_Utf8 1
Cheers
Markus
2007/11/29, Markus Helbig <mhelbig81(a)googlemail.com>:
> now i tried Mark's suggestion but this is also just bytecode i get ...
> ok with byte code it would be possible to decompile ...
>
> Cheers
>
> Markus
>
> 2007/11/28, Darko IVANCAN <ivancan(a)gmx.de>:
>
>> Hi,
>>
>> Obviously Mark's suggestion is better.
>>
>> Anyway: Seen, that the BRMS gives you a package (as .pkg) and the
>> RuleAgents can load those files and Packages are Serializable, I think
>> you want to investigate also in this possibility, by looking how current
>> DRools code is doing this job.
>>
>> Darko
>>
>> On 28/11/2007 16:00, Markus Helbig wrote:
>>
>>> that's right, but can you read bytecode? Or is there a way to
>>> serialize into pure Java Code,
>>>
>>> i think i'll try the way Mark provided ...
>>>
>>> Cheers
>>>
>>> Markus
>>>
>>> 2007/11/28, Darko IVANCAN <ivancan(a)gmx.de>:
>>>
>>>
>>>> Hi,
>>>>
>>>> The package can be serialized. See manual: deployment options.
>>>> The package can also be downloaded from the BRMS.
>>>>
>>>> Hope this helps,
>>>> Darko Ivancan
>>>>
>>>> On 28/11/2007 13:58, Markus Helbig wrote:
>>>>
>>>>
>>>>> Hi,
>>>>>
>>>>> is there any possibility to get the compiled java code of the rules
>>>>> ... could be helpful for several reasons ...
>>>>>
>>>>> Cheers
>>>>>
>>>>> Markus
>>>>> _______________________________________________
>>>>> rules-users mailing list
>>>>> rules-users(a)lists.jboss.org
>>>>>
https://lists.jboss.org/mailman/listinfo/rules-users
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>> _______________________________________________
>>>> rules-users mailing list
>>>> rules-users(a)lists.jboss.org
>>>>
https://lists.jboss.org/mailman/listinfo/rules-users
>>>>
>>>>
>>>>
>>> _______________________________________________
>>> rules-users mailing list
>>> rules-users(a)lists.jboss.org
>>>
https://lists.jboss.org/mailman/listinfo/rules-users
>>>
>>>
>>>
>>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users(a)lists.jboss.org
>>
https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users