Author: dallen6
Date: 2009-04-08 10:11:07 -0400 (Wed, 08 Apr 2009)
New Revision: 2350
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/request/standalone/NearMiss.java
Log:
Do not store a bean from a different request context; using ID instead
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/request/standalone/NearMiss.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/request/standalone/NearMiss.java 2009-04-08
14:09:59 UTC (rev 2349)
+++
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/request/standalone/NearMiss.java 2009-04-08
14:11:07 UTC (rev 2350)
@@ -2,23 +2,18 @@
class NearMiss
{
- private SimpleRequestBean bean;
- private boolean sameBean = false;
+ private Double previousBeanId;
+ private boolean sameBean = false;
- public SimpleRequestBean getBean()
- {
- return bean;
- }
-
public void setBean(SimpleRequestBean bean)
{
- if (this.bean == null)
+ if (this.previousBeanId == null)
{
- this.bean = bean;
+ this.previousBeanId = bean.getId();
}
else
{
- sameBean = this.bean.getId() == bean.getId();
+ sameBean = this.previousBeanId == bean.getId();
}
}
Show replies by date