Buggy code:
public abstract class EJBComponent extends BasicComponent implements ServerActivityCallback { private static final Logger log = Logger . getLogger ( EJBComponent . class ) ; private static final ApplicationExceptionDetails APPLICATION_EXCEPTION = new ApplicationExceptionDetails ( "java.lang.Exception" , true , false ) ; private final Map < MethodTransactionAttributeKey , TransactionAttributeType > txAttrs ; private final Map < MethodTransactionAttributeKey , Integer > txTimeouts ; private final EJBUtilities utilities ; private final boolean isBeanManagedTransaction ; private final Map < Class < ? > , ApplicationExceptionDetails > applicationExceptions ; private final EJBSecurityMetaData securityMetaData ; private final Map < String , ServiceName > viewServices ; private final ServiceName ejbLocalHomeViewServiceName ; private final ServiceName ejbHomeViewServiceName ; private final ServiceName ejbObjectViewServiceName ; private final ServiceName ejbLocalObjectViewServiceName ; private final TimerService timerService ; private final Map < Method , InterceptorFactory > timeoutInterceptors ; private final Method timeoutMethod ; private final String applicationName ; private final String earApplicationName ; private final String moduleName ; private final String distinctName ; private final String policyContextID ; private final EJBRemoteTransactionsRepository ejbRemoteTransactionsRepository ; private final InvocationMetrics invocationMetrics = new InvocationMetrics ( ) ; private final TransactionManager transactionManager ; private final TransactionSynchronizationRegistry transactionSynchronizationRegistry ; private final UserTransaction userTransaction ; private final ServerSecurityManager serverSecurityManager ; private final ControlPoint controlPoint ; private final AtomicBoolean exceptionLoggingEnabled ; private final PrivilegedAction < Principal > getCaller = new PrivilegedAction < Principal > ( ) { @ Override public Principal run ( ) { } } ; protected EJBComponent ( final EJBComponentCreateService ejbComponentCreateService ) { } protected < T > T createViewInstanceProxy ( final Class < T > viewInterface , final Map < Object , Object > contextData ) { } protected < T > T createViewInstanceProxy ( final Class < T > viewInterface , final Map < Object , Object > contextData , final ServiceName serviceName ) { } private static ServiceContainer currentServiceContainer ( ) { } public ApplicationExceptionDetails getApplicationException ( Class < ? > exceptionClass , Method invokedMethod ) { } public Principal getCallerPrincipal ( ) { } protected TransactionAttributeType getCurrentTransactionAttribute ( ) { } public EJBHome getEJBHome ( ) throws IllegalStateException { } public Class < ? > getEjbObjectType ( ) { } public Class < ? > getEjbLocalObjectType ( ) { } public EJBLocalHome getEJBLocalHome ( ) throws IllegalStateException { } public boolean getRollbackOnly ( ) throws IllegalStateException { } public ServerSecurityManager getSecurityManager ( ) { } public TimerService getTimerService ( ) throws IllegalStateException { } public TransactionAttributeType getTransactionAttributeType ( final MethodIntf methodIntf , final Method method ) { } public TransactionAttributeType getTransactionAttributeType ( final MethodIntf methodIntf , final MethodIdentifier method ) { } public TransactionAttributeType getTransactionAttributeType ( final MethodIntf methodIntf , final MethodIdentifier method , TransactionAttributeType defaultType ) { } public TransactionManager getTransactionManager ( ) { } public TransactionSynchronizationRegistry getTransactionSynchronizationRegistry ( ) { } public int getTransactionTimeout ( final MethodIntf methodIntf , final Method method ) { } public int getTransactionTimeout ( final MethodIntf methodIntf , final MethodIdentifier method ) { } public UserTransaction getUserTransaction ( ) throws IllegalStateException { } public boolean isBeanManagedTransaction ( ) { } public boolean isCallerInRole ( final String roleName ) throws IllegalStateException { } public boolean isStatisticsEnabled ( ) { } public Object lookup ( String name ) throws IllegalArgumentException { if ( name == null ) { throw ROOT_LOGGER . jndiNameCannotBeNull ( ) ; } final NamespaceContextSelector namespaceContextSelector = NamespaceContextSelector . getCurrentSelector ( ) ; if ( namespaceContextSelector == null ) { throw ROOT_LOGGER . noNamespaceContextSelectorAvailable ( name ) ; } Context jndiContext = null ; String namespaceStrippedJndiName = name ; if ( name . startsWith ( "java:app//" ) ) { jndiContext = namespaceContextSelector . getContext ( "app" ) ; namespaceStrippedJndiName = name . substring ( "java:app//" . length ( ) ) ; } else if ( name . startsWith ( "java:module//" ) ) { jndiContext = namespaceContextSelector . getContext ( "module" ) ; namespaceStrippedJndiName = name . substring ( "java:module//" . length ( ) ) ; } else if ( name . startsWith ( "java:comp//" ) ) { jndiContext = namespaceContextSelector . getContext ( "comp" ) ; namespaceStrippedJndiName = name . substring ( "java:comp//" . length ( ) ) ; } else if ( ! ( name . startsWith ( "java:" ) ) ) { jndiContext = namespaceContextSelector . getContext ( "comp" ) ; namespaceStrippedJndiName = "env//" + name ; } else if ( name . startsWith ( "java:global//" ) ) { try { jndiContext = new InitialContext ( ) ; } catch ( NamingException ne ) { throw ROOT_LOGGER . failToLookupJNDI ( name , ne ) ; } } else { throw ROOT_LOGGER . failToLookupJNDINameSpace ( name ) ; } <START_BUG> ROOT_LOGGER . debug ( ( ( ( "Looking<seq2seq4repair_space>up<seq2seq4repair_space>" + namespaceStrippedJndiName ) + "<seq2seq4repair_space>in<seq2seq4repair_space>jndi<seq2seq4repair_space>context:<seq2seq4repair_space>" ) + jndiContext ) ) ; <END_BUG> try { return jndiContext . lookup ( namespaceStrippedJndiName ) ; } catch ( NamingException ne ) { throw ROOT_LOGGER . failToLookupStrippedJNDI ( namespaceContextSelector , jndiContext , ne ) ; } } public void setRollbackOnly ( ) throws IllegalStateException { } public EJBSecurityMetaData getSecurityMetaData ( ) { } public Method getTimeoutMethod ( ) { } public String getApplicationName ( ) { } public String getEarApplicationName ( ) { } public String getDistinctName ( ) { } public String getModuleName ( ) { } public ServiceName getEjbLocalObjectViewServiceName ( ) { } public ServiceName getEjbLocalHomeViewServiceName ( ) { } public ServiceName getEjbHomeViewServiceName ( ) { } public ServiceName getEjbObjectViewServiceName ( ) { } public Map < Method , InterceptorFactory > getTimeoutInterceptors ( ) { } public EJBRemoteTransactionsRepository getEjbRemoteTransactionsRepository ( ) { } public AllowedMethodsInformation getAllowedMethodsInformation ( ) { } public InvocationMetrics getInvocationMetrics ( ) { } public ControlPoint getControlPoint ( ) { } @ Override public synchronized void start ( ) { } @ Override public final void stop ( ) { } @ Override public void done ( ) { } public boolean isExceptionLoggingEnabled ( ) { } }

Fix:
ROOT_LOGGER . debugf ( "Looking<seq2seq4repair_space>up<seq2seq4repair_space>%s<seq2seq4repair_space>in<seq2seq4repair_space>jndi<seq2seq4repair_space>context:<seq2seq4repair_space>%s" , namespaceStrippedJndiName , jndiContext ) ;