Community
Participate
Working Groups
The primitive type "int" leads to the output "Lint" --> should be "I" IMHO The primitive array type "int[]" --> should be "[I" IMHO
Problem is in the class IntelligentCompletionContext: the method getExpectedType() returns "Lint" on the primitive "int". If I like to test isPrimitive on the return, the result is false.
Added: if (binding.isArrayType()) { final int dimensions = binding.dimensions(); final TypeBinding leafComponentType = binding.leafComponentType(); return VmTypeName.get(StringUtils.repeat("[", dimensions) + toTypeName(leafComponentType)); } String signature = String.valueOf(binding.computeUniqueKey()); if (signature.length() == 1) { return VmTypeName.get(signature); } ... However, this string parsing stuff is somewhat error prone and happens in several different places. we need to get rid of this somehow and put it into one single place... I'll keep an eye on this
Closing this issue. Please give latest dev build (v0.5) a try: http://download.eclipse.org/recommenders/updates/dev/e37/ http://download.eclipse.org/recommenders/updates/dev/e42/