| Author |
2 identically structured beans and 2 identically structured getter statements
|
John Piper
Greenhorn
Joined: Mar 27, 2011
Posts: 12
|
|
I have two beans that are structured exactly the same. I pull both those beans into the same java class the exact same way. Yet only one of them has a problem.
Here is the error when I try to build it:
cannot find symbol
symbol : constructor BalanceBean( java.lang.String)
location: class HWpackage.BalanceBean
Here is the working bean, UserBean2
And here is the working getter statements:
Now compare that to the non-working code.
BalanceBean:
And its getter statements:
For what ever reason "BalanceBean" on line 3 is causing all the problems.
Can someone please tell me why?
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56179
|
|
You're not looking very close. The error message is telling you exactly what is wrong.
Look at the constructor and look at how you are calling it.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Nico Van Brandt
Ranch Hand
Joined: Mar 31, 2011
Posts: 66
|
|
The error is pretty obvious
cannot find a constructor with signature BalanceBean(String)
|
Oracle Java SE6 Certified Programmer
Oracle Java EE5 Certified Web Component Developer
|
 |
 |
|
|
subject: 2 identically structured beans and 2 identically structured getter statements
|
|
|