You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "jk@penguinsfan.com (JIRA)" <ji...@apache.org> on 2006/11/19 22:41:02 UTC

[jira] Commented: (AMQ-821) Openwire code (from HEAD) doesn't compile on .Net 1.1 - uses sizeof(int)

    [ https://issues.apache.org/activemq/browse/AMQ-821?page=comments#action_37493 ] 
            
jk@penguinsfan.com commented on AMQ-821:
----------------------------------------

Do not fix this using the unsafe keyword.  If necessary, hard code the value.  The size of all primitives except IntPtr is defined in the specification and constant for all time and platforms, just like in Java.

> Openwire code (from HEAD) doesn't compile on .Net 1.1 - uses sizeof(int)
> ------------------------------------------------------------------------
>
>                 Key: AMQ-821
>                 URL: https://issues.apache.org/activemq/browse/AMQ-821
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JMS client
>         Environment: Net 1.1
>            Reporter: Dan Haywood
>            Priority: Minor
>             Fix For: 4.2.0
>
>         Attachments: ActiveMQTextMessage.cs.diff, nant.build.diff
>
>
> sizeof(int) is unsafe code on Net-1.1.
> I've attached patches to put the code in unsafe { ... } block, plus fix to nant.build.  Same code also (still) compiles on 2.0.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira