# This patch file was generated by NetBeans IDE # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # Above lines and this line are ignored by the patching process. Index: backport175/src/main/org/codehaus/backport175/compiler/bytecode/AnnotationEnhancer.java --- backport175/src/main/org/codehaus/backport175/compiler/bytecode/AnnotationEnhancer.java Base (1.18) +++ backport175/src/main/org/codehaus/backport175/compiler/bytecode/AnnotationEnhancer.java Locally Modified (Based On 1.18) @@ -256,7 +256,7 @@ * @return the desc */ public static String getFieldDesc(final JavaField field) { - return getDescForQDoxType(field.getType()); + return getDescForQDoxType(field.getType(), false); } /** @@ -270,11 +270,12 @@ sig.append('('); final String[] methodParamTypes = new String[method.getParameters().length]; for (int i = 0; i < methodParamTypes.length; i++) { - sig.append(getDescForQDoxType(method.getParameters()[i].getType())); + final JavaParameter parameter = method.getParameters()[i]; + sig.append(getDescForQDoxType(parameter.getType(), parameter.isVarArgs())); } sig.append(')'); com.thoughtworks.qdox.model.Type returns = method.getReturns(); - sig.append(getDescForQDoxType(returns)); + sig.append(getDescForQDoxType(returns, false)); return sig.toString(); } @@ -284,7 +285,7 @@ * @param type the qdox type * @return the desc */ - public static String getDescForQDoxType(final com.thoughtworks.qdox.model.Type type) { + public static String getDescForQDoxType(final com.thoughtworks.qdox.model.Type type, boolean varargs) { if (type == null) { return "V"; // constructor } @@ -294,6 +295,9 @@ desc.append('['); } } + if (varargs) { + desc.append('['); + } String value = type.getValue(); if (value.equals("void")) { desc.append("V");