Selena - Spring Validation on Compile

I noticed to my enjoyment that when I compiled my application under Selena last night that IDEA went through a Spring validation process..

Sadly - it took for AGES to run... and then it gave me an ERROR from missing bean declarations...

The missing beans were declared in other spring context files and are functionally "correct", even if on their own they're not (I got around this by simply making the error into a warning).

I wonder if it would good to split this into a two step warnings/error - bean not defined in THIS context (available in another) WARNING and "not defined in ANY context" as an ERROR?

7 comments
Comment actions Permalink

more generally, validators should be switchable
http://www.jetbrains.net/jira/browse/IDEA-11093

0
Comment actions Permalink

I also have some problems with the validation:

... ]]>

org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean implements FactoryBean and returns a SessionFactory....
On every usage of "sessionFactory" an error is shown (e.g. "No matching constructor").

Please fix this asap.

0
Comment actions Permalink

What usage do you mean? Please give an example.

"Johannes Schneider" <idea@johannes-schneider.info> wrote in message
news:24887568.1169460016358.JavaMail.itn@is.intellij.net...
>I also have some problems with the validation:
>

<bean id="sessionFactory"
>
..
</bean>

>

org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean
implements FactoryBean and returns a SessionFactory....
On every usage of "sessionFactory" an error is shown (e.g. "No matching
constructor").

>

Please fix this asap.



0
Comment actions Permalink
    

    
      
        Entry.hbm.xml
      
    
    
      
          ...
      
    

    
      
        
          org.hibernate.dialect.HSQLDialect
        
                update
      
    
  


  
    
  
]]>


Idea marks "de.avat.tools.recorder.io.HibernatePersistenceSupport" red. The statusbar says "No matching constructor found in class de.avat.tools.recorder.io.HibernatePersistenceSupport".

The HibernatePersistenceSupport has just one single constructor:

0
Comment actions Permalink

One more problem:

An import statement like this:

]]>


is marked red when the file "persistence.spr.xml" is provided within a jar file and not within the module itself...

0
Comment actions Permalink

http://www.jetbrains.net/jira/browse/IDEADEV-13543

What usage do you mean? Please give an example.

"Johannes Schneider" <idea@johannes-schneider.info> wrote in message
news:24887568.1169460016358.JavaMail.itn@is.intellij.net...

>> I also have some problems with the validation:
>>
>> > class="org.springframework.orm.hibernate3.annotation.AnnotationSessio >> nFactoryBean"> >> .. >> >> org.springframework.orm.hibernate3.annotation.AnnotationSessionFactor >> yBean >> implements FactoryBean and returns a SessionFactory.... >> On every usage of "sessionFactory" an error is shown (e.g. "No >> matching >> constructor"). >> Please fix this asap. >>]]>


0
Comment actions Permalink

Could you file a request for this?


0

Please sign in to leave a comment.