Skip to content

Commit

Permalink
add test, currently broken, for creating an annotated type for a non-…
Browse files Browse the repository at this point in the history
…static inner class with generic constructor parameters
  • Loading branch information
Clint Popetz committed Oct 19, 2009
1 parent 07f5248 commit 097b1e5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
Expand Up @@ -4,6 +4,7 @@
import java.util.Iterator;
import java.util.Set;

import javax.enterprise.inject.spi.AnnotatedType;
import javax.enterprise.inject.stereotype.Stereotype;
import javax.inject.Qualifier;

Expand Down Expand Up @@ -51,4 +52,11 @@ public void testEmpty()
assert classWithNoAnnotations.getAnnotations().size() == 0;
}

@Test
public void testNonStaticInnerClassWithGenericTypes()
{
AnnotatedType at = WeldClassImpl.of(new Kangaroo().procreate().getClass(), transformer);
WeldClassImpl.of(at, transformer);
}

}
@@ -0,0 +1,17 @@
package org.jboss.weld.test.unit.implementation.annotatedItem;


class Kangaroo
{
LittleKangarooInHerPouch<String> procreate()
{
return new LittleKangarooInHerPouch<String>("Joey");
}

class LittleKangarooInHerPouch<T>
{
LittleKangarooInHerPouch(T formalParam)
{
}
}
}

0 comments on commit 097b1e5

Please sign in to comment.