Buggy code:
public class JvmXml { public static void parseJvm ( final XMLExtendedStreamReader reader , final ModelNode parentAddress , final Namespace expectedNs , final List < ModelNode > updates , final Set < String > jvmNames ) throws XMLStreamException { } public static void parseJvm ( final XMLExtendedStreamReader reader , final ModelNode parentAddress , final Namespace expectedNs , final List < ModelNode > updates , final Set < String > jvmNames , final boolean server ) throws XMLStreamException { } public static ModelNode parseEnvironmentVariables ( final XMLExtendedStreamReader reader , final Namespace expectedNs , ModelNode addOp ) throws XMLStreamException { } private static void parseHeap ( final XMLExtendedStreamReader reader , final ModelNode address , ModelNode addOp ) throws XMLStreamException { } private static void parsePermgen ( final XMLExtendedStreamReader reader , final ModelNode address , ModelNode addOp ) throws XMLStreamException { } private static void parseStack ( final XMLExtendedStreamReader reader , final ModelNode address , ModelNode addOp ) throws XMLStreamException { } private static void parseAgentLib ( final XMLExtendedStreamReader reader , final ModelNode address , ModelNode addOp ) throws XMLStreamException { } private static void parseAgentPath ( final XMLExtendedStreamReader reader , final ModelNode address , ModelNode addOp ) throws XMLStreamException { } private static void parseJavaagent ( final XMLExtendedStreamReader reader , final ModelNode address , ModelNode addOp ) throws XMLStreamException { } private static void parseJvmOptions ( final XMLExtendedStreamReader reader , final ModelNode address , final Namespace expectedNs , final ModelNode addOp ) throws XMLStreamException { } public static void writeJVMElement ( final XMLExtendedStreamWriter writer , final String jvmName , final ModelNode jvmElement ) throws XMLStreamException { writer . writeStartElement ( JVM . getLocalName ( ) ) ; writer . writeAttribute ( NAME . getLocalName ( ) , jvmName ) ; TYPE . marshallAsAttribute ( jvmElement , writer ) ; JAVA_HOME . marshallAsAttribute ( jvmElement , writer ) ; DEBUG_ENABLED . marshallAsAttribute ( jvmElement , writer ) ; DEBUG_OPTIONS . marshallAsAttribute ( jvmElement , writer ) ; if ( DEBUG_OPTIONS . isMarshallable ( jvmElement ) ) { if ( ! ( DEBUG_ENABLED . isMarshallable ( jvmElement ) ) ) { writer . writeAttribute ( Attribute . DEBUG_ENABLED . getLocalName ( ) , "false" ) ; } } ENV_CLASSPATH_IGNORED . marshallAsAttribute ( jvmElement , writer ) ; if ( ( HEAP_SIZE . isMarshallable ( jvmElement ) ) || ( MAX_HEAP_SIZE . isMarshallable ( jvmElement ) ) ) { writer . writeEmptyElement ( HEAP . getLocalName ( ) ) ; HEAP_SIZE . marshallAsAttribute ( jvmElement , writer ) ; MAX_HEAP_SIZE . marshallAsAttribute ( jvmElement , writer ) ; } <START_BUG> if ( ( PERMGEN_SIZE . isMarshallable ( jvmElement ) ) || ( MAX_HEAP_SIZE . isMarshallable ( jvmElement ) ) ) { <END_BUG> writer . writeEmptyElement ( PERMGEN . getLocalName ( ) ) ; PERMGEN_SIZE . marshallAsAttribute ( jvmElement , writer ) ; MAX_PERMGEN_SIZE . marshallAsAttribute ( jvmElement , writer ) ; } if ( STACK_SIZE . isMarshallable ( jvmElement ) ) { writer . writeEmptyElement ( STACK . getLocalName ( ) ) ; STACK_SIZE . marshallAsAttribute ( jvmElement , writer ) ; } if ( AGENT_LIB . isMarshallable ( jvmElement ) ) { writer . writeEmptyElement ( Element . AGENT_LIB . getLocalName ( ) ) ; AGENT_LIB . marshallAsAttribute ( jvmElement , writer ) ; } if ( AGENT_PATH . isMarshallable ( jvmElement ) ) { writer . writeEmptyElement ( Element . AGENT_PATH . getLocalName ( ) ) ; AGENT_PATH . marshallAsAttribute ( jvmElement , writer ) ; } if ( JAVA_AGENT . isMarshallable ( jvmElement ) ) { writer . writeEmptyElement ( Element . JAVA_AGENT . getLocalName ( ) ) ; JAVA_AGENT . marshallAsAttribute ( jvmElement , writer ) ; } if ( OPTIONS . isMarshallable ( jvmElement ) ) { OPTIONS . marshallAsElement ( jvmElement , writer ) ; } if ( ENVIRONMENT_VARIABLES . isMarshallable ( jvmElement ) ) { ENVIRONMENT_VARIABLES . marshallAsElement ( jvmElement , writer ) ; } writer . writeEndElement ( ) ; } private static boolean checkParseAndSetParameter ( final SimpleAttributeDefinition ad , final String value , final ModelNode operation , final XMLStreamReader reader ) throws XMLStreamException { } }

Fix:
if ( ( PERMGEN_SIZE . isMarshallable ( jvmElement ) ) || ( MAX_PERMGEN_SIZE . isMarshallable ( jvmElement ) ) ) {