Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 332422 - Autocompletion exception when using scala-libary.jar
Summary: Autocompletion exception when using scala-libary.jar
Status: RESOLVED INVALID
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.0   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PDE-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-13 05:42 EST by Martin Fischbach CLA
Modified: 2010-12-13 12:04 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Fischbach CLA 2010-12-13 05:42:00 EST
Build Identifier: M20100909-0800

When using the scala-libary.jar in a java project, the org.eclipse.jdt.ui.AllCompletionProposalComputer throws an exception in certain cases. One of this cases is described in the "Steps to Reproduce".

The autocompletion works fine in other IDEs.

Nevertheless I will report this at the scala tracker too, because I don't know if this is a problem with the scala-libary.jar or eclipse.

Reproducible: Always

Steps to Reproduce:
1. Create a new java project
2. Add the scala-libary.jar to the project (from "http://www.scala-lang.org/downloads" - version 2.8.1.final)
3. Create the following test class:

package simple;
import scala.collection.immutable.Nil;
public class Test  {
	public static void main(String[] args) {
		scala.collection.immutable.List<int> myList = new Nil();
	}
}

4. Try to activate the autocompletion on the variable "myList"
Comment 1 Martin Fischbach CLA 2010-12-13 05:52:53 EST
I accidentally posted this in the wrong product category. Can someone please delete this. I already reposted it (hopefully :) ) correctly.
Comment 2 Curtis Windatt CLA 2010-12-13 12:04:58 EST
Closing