[JBoss-dev] [ jboss-Bugs-585678 ] set value ignored on CMP bean self call

2002-09-02 Thread noreply

Bugs item #585678, was opened at 2002-07-23 20:22
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=376685aid=585678group_id=22866

Category: JBossCMP
Group: v3.0 Rabbit Hole
Status: Closed
Resolution: Out of Date
Priority: 5
Submitted By: Jon Swinth (jswinth)
Assigned to: Dain Sundstrom (dsundstrom)
Summary: set value ignored on CMP bean self call

Initial Comment:
Given two beans, one CMP and one stateless session
bean, self calls to setDateField are sometimes ignored
when session bean has previously called setDateField in
same transaction.

CMP bean methods:

public abstract java.util.Date getDateField() ;
public abstract void setDateField(java.util.Date);

public void updateDateField() {
  Calendar cal = Calendar.getInstance() ;
  cal.setTime(getDateField());
  cal.add(Calendar.DAY_OF_MONTH,1);
  setDateField(cal.getTime());
}


Session bean method:

public void updateCMPBean() {
  CMPBeanLocal cmpBean = ... ;
  cmpBean.setDateField(new java.util.Date());
  cmpBean.updateDateField();
}

If the transaction ends after calling updateCMPBean
then the dateField will be equal to today instead of
tomorrow.  If getDateField() is called after
updateCMPBean and before the transaction ends then the
dateField will be correct.

--

Comment By: Dain Sundstrom (dsundstrom)
Date: 2002-09-02 14:32

Message:
Logged In: YES 
user_id=251431

I can reproduce this and I assume it was fixed with the
rewrite of the date handling code.  If this bug is still in
3.0.2 please reopen it and post a testcase.

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=376685aid=585678group_id=22866


---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390
___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] [ jboss-Bugs-585678 ] set value ignored on CMP bean self call

2002-07-23 Thread noreply

Bugs item #585678, was opened at 2002-07-23 18:22
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=376685aid=585678group_id=22866

Category: JBossCMP
Group: v3.0 Rabbit Hole
Status: Open
Resolution: None
Priority: 5
Submitted By: Jon Swinth (jswinth)
Assigned to: Nobody/Anonymous (nobody)
Summary: set value ignored on CMP bean self call

Initial Comment:
Given two beans, one CMP and one stateless session
bean, self calls to setDateField are sometimes ignored
when session bean has previously called setDateField in
same transaction.

CMP bean methods:

public abstract java.util.Date getDateField() ;
public abstract void setDateField(java.util.Date);

public void updateDateField() {
  Calendar cal = Calendar.getInstance() ;
  cal.setTime(getDateField());
  cal.add(Calendar.DAY_OF_MONTH,1);
  setDateField(cal.getTime());
}


Session bean method:

public void updateCMPBean() {
  CMPBeanLocal cmpBean = ... ;
  cmpBean.setDateField(new java.util.Date());
  cmpBean.updateDateField();
}

If the transaction ends after calling updateCMPBean
then the dateField will be equal to today instead of
tomorrow.  If getDateField() is called after
updateCMPBean and before the transaction ends then the
dateField will be correct.

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=376685aid=585678group_id=22866


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development