"read" intent methods on shared java.util.Calendar/GregorianCalender can throw 
UnlockedSharedObjectException
------------------------------------------------------------------------------------------------------------

                 Key: CDV-606
                 URL: https://jira.terracotta.org/jira//browse/CDV-606
             Project: Community Development
          Issue Type: New Feature
          Components: Byte Code Transform
    Affects Versions: 2.5.1
            Reporter: Tim Eck
            Assignee: Issue Review Board


It is easy to recreate this -- Share a virgin instance of GregorianCalendar 
(one that is newly constructed, but for which no methods have been called) and 
call get(YEAR) on it. 

One thought for resolving this issue, is to have an applicator call call 
Calendar.complete() when new instances are become shared. A review of the 
internal state for like issues need to be done before this approach should be 
implemented.

This is the [unexpected] UnlockedSharedObjectException you will see:
    Caused by Thread: http-0.0.0.0-8080-1  in  VM(0)
    Shared Object Type: [I
*******************************************************************************
        at 
com.tc.object.tx.ClientTransactionManagerImpl.getTransaction(ClientTransactionManagerImpl.java:278)
        at 
com.tc.object.tx.ClientTransactionManagerImpl.fieldChanged(ClientTransactionManagerImpl.java:577)
        at com.tc.object.TCObjectImpl.objectFieldChanged(TCObjectImpl.java:320)
        at com.tc.object.TCObjectImpl.intFieldChanged(TCObjectImpl.java:360)
        at 
com.tc.object.bytecode.hook.impl.ArrayManager.intArrayChanged(ArrayManager.java:203)
        at 
com.tc.object.bytecode.ManagerUtil.intArrayChanged(ManagerUtil.java:847)
        at java.util.Calendar.setFieldsComputed(Calendar.java:1576)
        at 
java.util.GregorianCalendar.computeFields(GregorianCalendar.java:1999)
        at java.util.Calendar.complete(Calendar.java:1522)
        at java.util.Calendar.get(Calendar.java:1126)


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

        
_______________________________________________
tc-dev mailing list
[email protected]
http://lists.terracotta.org/mailman/listinfo/tc-dev

Reply via email to