Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-1127

Weld build failing on JDK 7


    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.1.9.Final
    • 1.1.7.Final
    • None

      When I try to compile Weld on my JDK 7 installation, the build fails with the following output:

      [ERROR] Failed to execute goal
      3.1:compile (default-compile) on project weld-core: Compilation failure
      \Java\dev\Weld\impl\src\main\java\org\jboss\weld\introspector\jlr\WeldAnnotationImpl.java:[57,58] error: name clash: <A>of(Class<A>,ClassTransformer) in WeldAnnotationImpl and <T>of(Class<T>,ClassTransformer) in WeldClassImpl have the same erasure, yet neither hides the other

      The problem was also mentioned in the weld-dev mailing list, unfortunatly there was no response : http://lists.jboss.org/pipermail/weld-dev/2011-August/002956.html

      My specific use-case in which I got the error was that I was trying to get the weld-osgi branch to work which is provided by Ales Justin (JBoss Weld lead) under: https://github.com/alesj/core.git

            marko.luksa@gmail.com Marko Luksa (Inactive)
            sachsedaniel Daniel Sachse (Inactive)
            0 Vote for this issue
            4 Start watching this issue