Buggy code:
public final class IntrospectionHelper implements BuildListener { private Hashtable attributeTypes ; private Hashtable attributeSetters ; private Hashtable nestedTypes ; private Hashtable nestedCreators ; private List addTypeMethods ; private Method addText = null ; private Class bean ; private static Hashtable helpers = new Hashtable ( ) ; private static final Hashtable PRIMITIVE_TYPE_MAP = new Hashtable ( 8 ) ; private IntrospectionHelper ( final Class bean ) { } private boolean isHiddenSetMethod ( String name , Class type ) { } public static synchronized IntrospectionHelper getHelper ( Class c ) { } public static synchronized IntrospectionHelper getHelper ( Project p , Class c ) { } public void setAttribute ( Project p , Object element , String attributeName , String value ) throws BuildException { } public void addText ( Project project , Object element , String text ) throws BuildException { } public void throwNotSupported ( Project project , Object parent , String elementName ) { } private IntrospectionHelper . NestedCreator getNestedCreator ( Project project , Object parent , String elementName ) throws BuildException { } public Object createElement ( Project project , Object parent , String elementName ) throws BuildException { } public IntrospectionHelper . Creator getElementCreator ( Project project , Object parent , String elementName ) { } public boolean supportsNestedElement ( String elementName ) { } public void storeElement ( Project project , Object parent , Object child , String elementName ) throws BuildException { } public Class getElementType ( String elementName ) throws BuildException { } public Class getAttributeType ( String attributeName ) throws BuildException { } public boolean supportsCharacters ( ) { } public Enumeration getAttributes ( ) { } public Enumeration getNestedElements ( ) { } private IntrospectionHelper . AttributeSetter createAttributeSetter ( final Method m , Class arg , final String attrName ) { final Class reflectedArg = ( IntrospectionHelper . PRIMITIVE_TYPE_MAP . containsKey ( arg ) ) ? ( ( Class ) ( IntrospectionHelper . PRIMITIVE_TYPE_MAP . get ( arg ) ) ) : arg ; if ( String . class . equals ( reflectedArg ) ) { return new IntrospectionHelper . AttributeSetter ( ) { public void set ( Project p , Object parent , String value ) throws IllegalAccessException , InvocationTargetException { m . invoke ( parent , new String [ ] { value } ) ; } } ; } else if ( Character . class . equals ( reflectedArg ) ) { return new IntrospectionHelper . AttributeSetter ( ) { public void set ( Project p , Object parent , String value ) throws IllegalAccessException , InvocationTargetException { if ( ( value . length ( ) ) == 0 ) { throw new BuildException ( ( ( ( "The<seq2seq4repair_space>value<seq2seq4repair_space>\"\"<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>a<seq2seq4repair_space>" + "legal<seq2seq4repair_space>value<seq2seq4repair_space>for<seq2seq4repair_space>attribute<seq2seq4repair_space>\"" ) + attrName ) + "\"" ) ) ; } m . invoke ( parent , new Character [ ] { new Character ( value . charAt ( 0 ) ) } ) ; } } ; } else if ( Boolean . class . equals ( reflectedArg ) ) { return new IntrospectionHelper . AttributeSetter ( ) { public void set ( Project p , Object parent , String value ) throws IllegalAccessException , InvocationTargetException { <START_BUG> m . invoke ( parent , new Boolean [ ] { Boolean . valueOf ( Project . toBoolean ( value ) ) } ) ; <END_BUG> } } ; } else if ( Class . class . equals ( reflectedArg ) ) { return new IntrospectionHelper . AttributeSetter ( ) { public void set ( Project p , Object parent , String value ) throws IllegalAccessException , InvocationTargetException , BuildException { try { m . invoke ( parent , new Class [ ] { Class . forName ( value ) } ) ; } catch ( ClassNotFoundException ce ) { throw new BuildException ( ce ) ; } } } ; } else if ( File . class . equals ( reflectedArg ) ) { return new IntrospectionHelper . AttributeSetter ( ) { public void set ( Project p , Object parent , String value ) throws IllegalAccessException , InvocationTargetException { m . invoke ( parent , new File [ ] { p . resolveFile ( value ) } ) ; } } ; } else if ( Path . class . equals ( reflectedArg ) ) { return new IntrospectionHelper . AttributeSetter ( ) { public void set ( Project p , Object parent , String value ) throws IllegalAccessException , InvocationTargetException { m . invoke ( parent , new Path [ ] { new Path ( p , value ) } ) ; } } ; } else if ( EnumeratedAttribute . class . isAssignableFrom ( reflectedArg ) ) { return new IntrospectionHelper . AttributeSetter ( ) { public void set ( Project p , Object parent , String value ) throws IllegalAccessException , InvocationTargetException , BuildException { try { EnumeratedAttribute ea = ( ( EnumeratedAttribute ) ( reflectedArg . newInstance ( ) ) ) ; ea . setValue ( value ) ; m . invoke ( parent , new EnumeratedAttribute [ ] { ea } ) ; } catch ( InstantiationException ie ) { throw new BuildException ( ie ) ; } } } ; } else { try { final Constructor c = reflectedArg . getConstructor ( new Class [ ] { String . class } ) ; return new IntrospectionHelper . AttributeSetter ( ) { public void set ( Project p , Object parent , String value ) throws IllegalAccessException , InvocationTargetException , BuildException { try { Object attribute = c . newInstance ( new String [ ] { value } ) ; if ( p != null ) { p . setProjectReference ( attribute ) ; } m . invoke ( parent , new Object [ ] { attribute } ) ; } catch ( InstantiationException ie ) { throw new BuildException ( ie ) ; } } } ; } catch ( NoSuchMethodException nme ) { } } return null ; }

Fix:
m . invoke ( parent , new Boolean [ ] { new Boolean ( Project . toBoolean ( value ) ) } ) ;