activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jk@penguinsfan.com (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AMQ-821) Openwire code (from HEAD) doesn't compile on .Net 1.1 - uses sizeof(int)
Date Sun, 19 Nov 2006 21:41:02 GMT
    [ 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

        

Mime
View raw message