Problem after update [message #1693595] |
Sun, 26 April 2015 04:52  |
Eclipse User |
|
|
|
Hello guys.After update Eclipse from 4.4.0 to 4.4.2 i have a lot of problems with my code ( almost all with (The constructor Account(int, Summ) is undefined)
My constructors all with Long , idk what to do.
Account objaccount=new Account (1234567890, new Summ (0 , "UAH") ); ------ The constructor Summ(int, String) is undefined
But my constructor in class Summ is (Long,String);
Help pls
Thx and sry for my bad english
|
|
|
Re: Problem after update [message #1693679 is a reply to message #1693595] |
Mon, 27 April 2015 09:23  |
Eclipse User |
|
|
|
Try:
new Summ(0L, "UAH")
The first constructor argument is a zero followed by an L to indicate that the zero should be interpreted as a long.
You're asking the compiler to broaden and then autobox, in that order. It can do either one, but it seems to be having trouble doing them both together.
|
|
|
Powered by
FUDForum. Page generated in 0.03176 seconds