Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Difference of behaviour in Eclipse 3.5 and 3.6(Difference of behaviour in Eclipse 3.5 and 3.6)
Difference of behaviour in Eclipse 3.5 and 3.6 [message #553938] Thu, 19 August 2010 13:35 Go to next message
Srikanth Chakravarthy is currently offline Srikanth ChakravarthyFriend
Messages: 2
Registered: August 2010
Junior Member
Hi,
I recently started using Helios and imported my existing projects into a workspace created with Helios.

The same set of files in Galileo, do not show any error but in Helios, I have an error on a particular line of code throughout.

The files are built after cleaning and they execute as expected. The marker view also does not show any compilation error.

But this line of code is marked red and gives an error such as
"The method listWith(T...) from the type CollectionUtility refers to the missing type T"

This is referring to the method which has the signature like this.....

static public <T> List<T> listWith(T... args) {
......
......
}

The codeformatter and other code style preferences are the same in Galileo and Helios.

Please let me know if this is due to some preference/setting in Helios.

Thanks in advance.

Regards,
Srikanth
Re: Difference of behaviour in Eclipse 3.5 and 3.6 [message #554102 is a reply to message #553938] Fri, 20 August 2010 06:54 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Srikanth Chakravarthy wrote:
> Hi,
> I recently started using Helios and imported my existing projects into
> a workspace created with Helios.
>
> The same set of files in Galileo, do not show any error but in Helios,
> I have an error on a particular line of code throughout.
>
> The files are built after cleaning and they execute as expected. The
> marker view also does not show any compilation error.
>
> But this line of code is marked red and gives an error such as "The
> method listWith(T...) from the type CollectionUtility refers to the
> missing type T"
>
> This is referring to the method which has the signature like this.....
>
> static public <T> List<T> listWith(T... args) {
> ......
> ......
> }
>
> The codeformatter and other code style preferences are the same in
> Galileo and Helios.
>
> Please let me know if this is due to some preference/setting in Helios.
The reason is that one of your projects is compiling with 1.4 but a
dependent project or library is compiled using 1.5. While this is not
really a problem, it surfaces
https://bugs.eclipse.org/bugs/show_bug.cgi?id=305259

Dani
>
> Thanks in advance.
>
> Regards,
> Srikanth
>
Re: Difference of behaviour in Eclipse 3.5 and 3.6 [message #554183 is a reply to message #554102] Fri, 20 August 2010 13:03 Go to previous message
Srikanth Chakravarthy is currently offline Srikanth ChakravarthyFriend
Messages: 2
Registered: August 2010
Junior Member
Hi Dani,

Thanks! That was indeed the problem. But the actual issue was that in Galileo, when I corrected the concerned project and rebuilt (with cleaning) the errors were gone.

In Helios, the same did not happen. After I read the link sent from you I thought of setting the compiler setting to each of the projects to 1.6 and then cleaned and rebuilt. Only then did the error vanish from the java file.

Thanks again.

Srikanth
Previous Topic:web.xml error (content must match...)
Next Topic:How to locate inner classes within JDT?
Goto Forum:
  


Current Time: Fri Apr 26 23:25:34 GMT 2024

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

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

Back to the top