3 Replies Latest reply on Jul 21, 2010 11:26 AM by he youlin

    Latest Weld Core Extension bug?

    he youlin Novice

      In CoreExtension.java:


      AnnotatedTypeBuilder<X> builder = AnnotatedTypeBuilder.newInstance(pat.getAnnotatedType()).readAnnotationsFromUnderlyingType();


      This code will override my re-annotated type if my my extension execute precede CoreExtension


      so i change to:



      AnnotatedTypeBuilder<X> builder = AnnotatedTypeBuilder.newInstance(pat.getAnnotatedType()).mergeAnnotations(pat.getAnnotatedType(),true);


      it works