Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Error highlight
Error highlight [message #669732] Wed, 11 May 2011 09:54 Go to next message
No real name is currently offline No real nameFriend
Messages: 1
Registered: May 2011
Junior Member
Hello,

first my eclipse version:
Version: Helios Service Release 2
Build id: 20110218-0911

and the code :

	static public float[] toArray(Vector<Float> vector) {
		if (vector==null) return new float[0];
		float[] result = new float[vector.size()];
		for (int i=0; i<vector.size(); i++) result[i] = vector.elementAt(i);
		return result;
		}

	static public double[] toArray(Vector<Double> vector) {
		if (vector==null) return new double[0];
		double[] result = new double[vector.size()];
		for (int i=0; i<vector.size(); i++) result[i] = vector.elementAt(i);
		return result;
		}




This is piece of code is compiling and working fine, but eclipse give an error... Vector<Float> Vector<Double> seem to be the same type for eclipse.
I agree with it but can't change this part of code due to restriction. It used to work fine with eclipse on my other computer. Do have somebody any idea how to shut down this error?

thx

Naner
Re: Error highlight [message #669941 is a reply to message #669732] Thu, 12 May 2011 06:51 Go to previous message
Satyam Kandula is currently offline Satyam KandulaFriend
Messages: 444
Registered: July 2009
Senior Member
There is no way. Look at https://bugs.eclipse.org/bugs/show_bug.cgi?id=317719 and http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6182950 for explanations.
Previous Topic:.xml:1: error: Error parsing XML: no element found (no main.out.xml to delete)
Next Topic:Classpath too long for JUnit (maven dependencies)
Goto Forum:
  


Current Time: Tue Mar 19 06:15:44 GMT 2024

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

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

Back to the top