Project
IntelliJ IDEA
Priority
Major
Type
Bug
Fix versions
No Fix versions
State
Fixed
Assignee
Dmitry Avdeev
Subsystem
J2EE.Spring
Affected versions
No Affected versions
Fixed in build
108.65  
  • Created by   gui
    2 years ago (10 Jun 2009 17:58)
  • Updated by   root
    2 years ago (17 Jan 2010 21:16)
  • Jira: IDEADEV-37727
    (history, comments)
 
IDEA-49347 Spring file red: 'No matching constructor found'
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
a.zip   (18 KB)
I have attached a small project that shows the problem.

The project consist of two interfaces ServiceA and ServiceB.

Two classes implement ServiceA, only one of them is declared in spring. ServiceB takes a ServiceA as constructor dependency.

If the configured implementation of ServiceA extends HibernateDaoSupport and a transactioninterceptor is defined using AOP, the red line appears on ServiceB.

If the transaction interceptor is removed from the spring file, the red line disappears.
If ServiceAImpl2 is configured as implementation of A, the red line disappears from ServiceB
If ServiceAImpl is changed not to extend HibernateDaoSupport , the red line disappears.

I have also attached a small unit test that startup a spring test, to show that spring itself does not throw 'no matching constructor found'. It's just intellij flagging it..

Environment: Win Xp, Intellij 8.1.2

Issue was resolved
Comments (0)
 
History
 
Linked Issues (?)
 
Issue has no comments