Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-12433

Wrong as-you-type validation for injection points with type InjectionPoint

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.0.0.Alpha1
    • 4.0.0.Alpha1
    • cdi
    • None

      1. Import projects tck-parent, tck-child and tck from https://svn.jboss.org/repos/jbosstools/trunk/cdi/tests/org.jboss.tools.cdi.core.test/projects
      2. Copy https://svn.jboss.org/repos/jbosstools/trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck to <tck>/JavaSource/org/jboss/jsr299
      3. Open class org.jboss.jsr299.tck.tests.implementation.producer.method.broken.parameterizedTypeWithTypeParameter2.TProducer
      4. There the only error marker:
      "Producer method return type cannot be a type variable [JSR-299 §3.3]"
      5. Add a space to the end of the file (don't save the file).
      6. Now there are one more problem on "InjectionPoint point":
      "No bean is eligible for injection to the injection point [JSR-299 §5.2.1]". This is a bug.

      Failed tests: testParameterizedType(org.jboss.tools.cdi.core.test.tck.validation.AYTDefenitionErrorsValidationTest): The number of markers doesn't equal to the number of AYT messages for L/tck/JavaSource/org/jboss/jsr299/tck/tests/implementation/producer/method/broken/parameterizedTypeWithTypeParameter2/TProducer.java.

            scabanovich Viacheslav Kabanovich (Inactive)
            alexeykazakov Alexey Kazakov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: