[webbeans-dev] build fails with java 6

Nicklas Karlsson nickarls at gmail.com
Fri Nov 14 05:48:45 EST 2008


I committed a change

      for (Constructor<?> constructor : clazz.getDeclaredConstructors())
      {
         AnnotatedConstructor<T> annotatedConstructor = new
AnnotatedConstructorImpl<T>((Constructor<T>) constructor, this);

should work on JDK6.

On Tue, Nov 11, 2008 at 10:41 PM, Michael Brackx
<michael.javaone+webbeans at gmail.com> wrote:
> Hi,
>
> The build fails for me with java 6. Might be known or unsupported, but
> nothing was mentioned on
> http://www.seamframework.org/WebBeans/GuidelinesForWebBeansRIDevelopment
>
> Environment:
> Maven version: 2.0.9
> Java version: 1.6.0_07
> OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
>
> error:
> [INFO] Compilation failure
> ...\webbeans-ri\src\main\java\org\jboss\webbeans\introspector\impl\SimpleAnnotatedClass.java:[234,69]
> incompatible types
> found   : java.lang.reflect.Constructor<?>
> required: java.lang.reflect.Constructor<T>
>
> Michael Brackx
> _______________________________________________
> webbeans-dev mailing list
> webbeans-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/webbeans-dev
>



-- 
---
Nik



More information about the weld-dev mailing list