Skip to content

Commit

Permalink
Fix David's test, showed an issue with public fields on client proxies
Browse files Browse the repository at this point in the history
git-svn-id: http://anonsvn.jboss.org/repos/weld/ri/trunk@547 1c488680-804c-0410-94cd-c6b725194a0e
  • Loading branch information
pmuir committed Dec 17, 2008
1 parent bfb7d4e commit 29a79f2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
Expand Up @@ -6,19 +6,13 @@

import javax.webbeans.DefinitionException;
import javax.webbeans.DuplicateBindingTypeException;
import javax.webbeans.Event;
import javax.webbeans.Observable;
import javax.webbeans.Observer;
import javax.webbeans.ObserverException;
import javax.webbeans.TypeLiteral;
import javax.webbeans.manager.Bean;

import org.jboss.webbeans.bean.BeanFactory;
import org.jboss.webbeans.bean.EventBean;
import org.jboss.webbeans.bean.SimpleBean;
import org.jboss.webbeans.bindings.InitializedBinding;
import org.jboss.webbeans.contexts.DependentContext;
import org.jboss.webbeans.introspector.AnnotatedField;
import org.jboss.webbeans.test.beans.BananaSpider;
import org.jboss.webbeans.test.beans.BirdCage;
import org.jboss.webbeans.test.beans.BlueFacedParrotFinch;
Expand Down Expand Up @@ -676,8 +670,8 @@ public void testObservableAnnotationOnParameterOfProducerMethod()
BirdCage birdCage = manager.getInstanceByType(BirdCage.class);
assert starFinch != null;
assert birdCage != null;
assert birdCage.someMess != null;
assert birdKeeper.newMessDetected;
assert birdCage.getSomeMess() != null;
assert birdKeeper.isNewMessDetected();
}
finally
{
Expand Down
Expand Up @@ -11,9 +11,14 @@
public class BirdCage
{
@Current
public Mess someMess;
private Mess someMess;

public BirdCage()
{
}

public Mess getSomeMess()
{
return someMess;
}
}
Expand Up @@ -14,10 +14,15 @@ public FinchKeeper()
{
}

public boolean newMessDetected = false;
private boolean newMessDetected = false;

public void observesMesses(@Observes Mess aNewMess)
{
newMessDetected = true;
}

public boolean isNewMessDetected()
{
return newMessDetected;
}
}

0 comments on commit 29a79f2

Please sign in to comment.