|
|
|
Ah, well you're right. My stripped-down example indeed does not compile, though I do have a class that does compile fine with javac from JDK 1.6.0_02. The Eclipse compiler however bails out on it with
Information:Compilation completed with 1 error and 1 warning
Information:1 error
Information:1 warning
Warning:1 problem (1 error)
C:\work\java\idea-plugins\pimf\src\pimf\psi\impl\PimfReferenceExpressionImpl.java
Error:Error:line (125)The field EMPTY_ARRAY is ambiguous
Updated the issue with an example that compiles with javac.
Well, that seems like a javac bug, not a bug in IDEA.
Makes sense, but then the error message in IDEA should be "reference to ... is ambiguous" instead of "cannot resolve symbol".
Indeed. Tough Ctrl-B on this unresolved reference shows multiple choice popup as expected. So multiResolve() clearly does its job right.
Which should make changing the error message a piece of cake
|
||||||||||||||||||||||||||||||||||||||||||||||||||
Information:Compilation completed with 1 error and 0 warnings
Information:1 error
Information:0 warnings
C:\work\Groovy Plugin\groovy\src\org\jetbrains\plugins\groovy\lang\psi\util\PsiUtil.java
Error:Error:line (300)reference to EMPTY_ARRAY is ambiguous, both variable EMPTY_ARRAY in com.intellij.psi.PsiElement and variable EMPTY_ARRAY in com.intellij.psi.PsiReference match