Summary: | [1.5] Internal compiler generating error on code that javac accepts | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Antonio M. D'souza <eclipse_hacker> |
Component: | Core | Assignee: | Kent Johnson <kent_johnson> |
Status: | CLOSED FIXED | QA Contact: | |
Severity: | major | ||
Priority: | P3 | ||
Version: | 3.1 | ||
Target Milestone: | 3.1 RC2 | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: |
Description
Antonio M. D'souza
2005-05-03 10:40:52 EDT
What error do you get ? Don't you mean to use java.util.List ? Did you toggle compiler compliance to 1.5 ? Pls reopen once questions are answered Error msg: the method make(String[]) is ambiguous for the type List. No, I do mean to use com.sun.tools.javac.util.List (and this code builds under javac). Yes, I have set compiler compliance to 1.5 and all my other generic code compiles with no problems. How did you setup your classpath exactly ? I went to the Java Build Path section of the project's properties and added $JAVA_HOME/lib/tools.jar to the list of libraries (as an external jar). Reproduced Verified its fixed with latest. Could not reproduce with a testcase that did not need tools.jar Verified using N20050606-0010 + JDT/Core HEAD Verified for 3.1 RC2 using build I20050610-0010 Caveat: tools.jar changed between versions 1.5.0_03 and 1.5.0_04. Use the former to test. close |