test for paragraph 5 both the run and release methods in the work implementation may contain synchronization synchronization but they must not be declared as synchronized methods . concode_field_sep WorkConnectionFactory wcf concode_field_sep void testCanDeclaredSynchronizedBlocksInUnsynchronizedWork concode_elem_sep ResourceAdapterArchive createResourceAdapter concode_elem_sep void testCannotDeclaredSynchronizedRunMethodWork concode_elem_sep byte[] getGlobalTransactionId concode_elem_sep int getFormatId concode_elem_sep byte[] getBranchQualifier concode_elem_sep void testThrowWorkCompletedException concode_elem_sep ResourceAdaptersDescriptor createActivation
void function ( ) { SynchronizedReleaseWork loc0 = new SynchronizedReleaseWork ( ) ; WorkConnection loc1 = wcf . getConnection ( ) ; try { loc1 . doWork ( loc0 ) ; fail ( "srini_string" ) ; } finally { loc1 . close ( ) ; } }