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

As-you-type CDI validation doesnt work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 4.2.0.Beta2
    • 4.2.0.Beta1
    • cdi
    • None
    • Hide

      1. Create CDI Project
      2. Create Bean "Test'
      3. set content of bean to

      import javax.enterprise.inject.Produces;
      import javax.inject.Inject;
      import javax.inject.Named;
      
      
      public class Test {
      
      	@Inject Test2 create;
      	
      	@Produces
      	public Test2 create2() {
      		return new Test2("a");
      	}
      	
      	@Produces
      	@Named
      	public Test2 create() {
      		return new Test2("b");
      	}
      	
      	
      	public static class Test2{
      		
      		public Test2(String s){
      			
      		}
      		
      	}
      
      }
      

      FAIL: No validation warning is shown. You have to save the editor to see the warning

      Show
      1. Create CDI Project 2. Create Bean "Test' 3. set content of bean to import javax.enterprise.inject.Produces; import javax.inject.Inject; import javax.inject.Named; public class Test { @Inject Test2 create; @Produces public Test2 create2() { return new Test2( "a" ); } @Produces @Named public Test2 create() { return new Test2( "b" ); } public static class Test2{ public Test2( String s){ } } } FAIL: No validation warning is shown. You have to save the editor to see the warning

          vrubezhny Victor Rubezhny (Inactive)
          rawagner@redhat.com Rastislav Wagner
          Votes:
          0 Vote for this issue
          Watchers:
          1 Start watching this issue

            Created:
            Updated:
            Resolved: