Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Problem after update
Problem after update [message #1693595] Sun, 26 April 2015 04:52 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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.
Previous Topic:Locked a portion of the file
Next Topic:png file not showing up properly
Goto Forum:
  


Current Time: Thu Apr 24 21:58:45 EDT 2025

Powered by FUDForum. Page generated in 0.03176 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top