You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Daniel Ellis (JIRA)" <ji...@apache.org> on 2009/07/08 14:52:07 UTC

[jira] Commented: (AMQNET-175) Trunk fails to build for compact-framework, due to [Serializable] attributes on exception classes.

    [ https://issues.apache.org/activemq/browse/AMQNET-175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=52732#action_52732 ] 

Daniel Ellis commented on AMQNET-175:
-------------------------------------

On a side note, when I came across this problem, my first attempt was to just compile for net-2.0 and so skipping the compact framework.  I tried compiling with the following command:-

  nant -t:net-2.0

However, it continued to build all target frameworks.  Should I raise this as a separate issue?

> Trunk fails to build for compact-framework, due to [Serializable] attributes on exception classes.
> --------------------------------------------------------------------------------------------------
>
>                 Key: AMQNET-175
>                 URL: https://issues.apache.org/activemq/browse/AMQNET-175
>             Project: ActiveMQ .Net
>          Issue Type: Bug
>         Environment: Building trunk using nant on Windows XP
>            Reporter: Daniel Ellis
>            Assignee: Jim Gomes
>         Attachments: RemoveSerializableAttributes.patch
>
>
> The trunk fails to build due to the [Serializable] attributes that are on many of the exception classes.  Removing the attributes, which I have done in the attached patch, resolves the issue and compilation then succeeds.
> I am not sure about the consequences of removing the serializable attributes, but did look through the revision history and cannot see any consistency of when certain exceptions have this attribute.
> Another option would be to wrap compile time directives around the attributes so they are not included in the compact framework build.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.