Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 332422

Summary: Autocompletion exception when using scala-libary.jar
Product: [Eclipse Project] PDE Reporter: Martin Fischbach <martin.fischbach>
Component: UIAssignee: PDE-UI-Inbox <pde-ui-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: curtis.windatt.public
Version: 4.0   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

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