[jbossts-issues] [JBoss JIRA] (JBTM-2887) No warnings if a field marked with @State is not a supported datatype

Michael Musgrove (JIRA) issues at jboss.org
Tue Apr 25 12:01:00 EDT 2017


    [ https://issues.jboss.org/browse/JBTM-2887?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13397874#comment-13397874 ] 

Michael Musgrove commented on JBTM-2887:
----------------------------------------

Supported types are Boolean, Byte, Short, Integer, Long, Float, Double, Character, String and Transactional. LockManagerProxy#packObjectType() contains the definitive list.

> No warnings if a field marked with @State is not a supported datatype
> ---------------------------------------------------------------------
>
>                 Key: JBTM-2887
>                 URL: https://issues.jboss.org/browse/JBTM-2887
>             Project: JBoss Transaction Manager
>          Issue Type: Bug
>          Components: STM
>    Affects Versions: 5.5.24.Final
>            Reporter: Michael Musgrove
>            Assignee: Mark Little
>
> If a field annotated with @State (such as a map) is not one of the supported datatypes then any attempt to obtain an STM lock will fail with LockResult.REFUSED.
> It would be useful if a warning is logged to indicate why lock acquisition is refused to prompt the developer to override the save_state and restore_state methods.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jbossts-issues mailing list