nus-yam/ex-repair huggingface dataset:
Program: 34643
Project: 34643
Buggy source:
@FFDCIgnore(IOException.class) public InputStream getInputStream() throws IOException {
  InputStream is=null;
  try {
    URL newURL=new URL(url.toExternalForm());
    URLConnection conn=newURL.openConnection();
    conn.setUseCaches(false);
    is=conn.getInputStream();
  }
 catch (  IOException e) {
    if (relativeUrl.endsWith("String_Node_Str") || relativeUrl.endsWith("String_Node_Str") || searchOnClasspath) {
      String s=relativeUrl;
      if (s.charAt(0) == '/')       s=s.substring(1);
      is=classloader.getResourceAsStream(s);
    }
  }
  if (is == null) {
    if (dru != null) {
synchronized (dru) {
        dru.handleDocumentRoots(relativeUrl);
        is=dru.getInputStream();
      }
    }
 else {
      throw new IOException(JspCoreException.getMsg("String_Node_Str",new Object[]{url}));
    }
  }
  return is;
}

Fixed version (ground truth):
@FFDCIgnore(IOException.class) public InputStream getInputStream() throws IOException {
  InputStream is=null;
  try {
    URL newURL=new URL(url.toExternalForm());
    URLConnection conn=newURL.openConnection();
    conn.setUseCaches(false);
    is=conn.getInputStream();
  }
 catch (  IOException e) {
    if (relativeUrl.endsWith("String_Node_Str") || relativeUrl.endsWith("String_Node_Str") || relativeUrl.endsWith("String_Node_Str")|| searchOnClasspath) {
      String s=relativeUrl;
      if (s.charAt(0) == '/')       s=s.substring(1);
      is=classloader.getResourceAsStream(s);
    }
  }
  if (is == null) {
    if (dru != null) {
synchronized (dru) {
        dru.handleDocumentRoots(relativeUrl);
        is=dru.getInputStream();
      }
    }
 else {
      throw new IOException(JspCoreException.getMsg("String_Node_Str",new Object[]{url}));
    }
  }
  return is;
}
Program: 34645
Project: 34645
Buggy source:
private String getAttribute(GenericData genData,String key){
  ArrayList<Pair> pairs=genData.getPairs();
  for (  Pair p : pairs) {
    if (p instanceof KeyValuePair) {
      KeyValuePair kvp=(KeyValuePair)p;
      if (kvp.getKey().equals(key)) {
        if (kvp.isInteger()) {
          return kvp.getIntValue().toString();
        }
 else         if (kvp.isLong()) {
          return kvp.getLongValue().toString();
        }
 else {
          return kvp.getStringValue();
        }
      }
    }
  }
  return "String_Node_Str";
}

Fixed version (ground truth):
private String getAttribute(GenericData genData,String key){
  ArrayList<Pair> pairs=genData.getPairs();
  for (  Pair p : pairs) {
    if (p instanceof KeyValuePair) {
      KeyValuePair kvp=(KeyValuePair)p;
      if (kvp.getKey().equals(key)) {
        if (kvp.isInteger()) {
          return Integer.toString(kvp.getIntValue());
        }
 else         if (kvp.isLong()) {
          return Long.toString(kvp.getLongValue());
        }
 else {
          return kvp.getStringValue();
        }
      }
    }
  }
  return "String_Node_Str";
}
Program: 34646
Project: 34646
Buggy source:
/** 
 * @param webRequest
 * @return
 */
private WebReply handleJaspi(Subject receivedSubject,String uriName,WebRequest webRequest,WebSecurityContext webSecurityContext) throws SecurityViolationException, IOException {
  performPrecludedAccessTests(webRequest,webSecurityContext,uriName);
  WebReply webReply=unprotectedSpecialURI(webRequest,uriName,webRequest.getHttpServletRequest().getMethod());
  if (webReply == null) {
    AuthenticationResult authResult=providerAuthenticatorProxy.handleJaspi(webRequest,null);
    authResult.setAuditCredType(AuditEvent.CRED_TYPE_JASPIC);
    if (receivedSubject != null && receivedSubject.getPrincipals() != null) {
      authResult.setAuditCredValue(receivedSubject.getPrincipals().iterator().next().getName());
    }
    if (authResult.getStatus() == AuthResult.RETURN) {
      webReply=new ReturnReply(webRequest.getHttpServletResponse().getStatus(),authResult.getReason());
      SecurityViolationException secVE=convertWebSecurityException(new WebSecurityCollaboratorException(webReply.message,webReply,webSecurityContext));
      throw secVE;
    }
 else     if (authResult.getStatus() != AuthResult.CONTINUE) {
      webReply=determineWebReply(receivedSubject,uriName,webRequest,authResult);
    }
  }
  return webReply;
}

Fixed version (ground truth):
/** 
 * @param webRequest
 * @return
 */
private WebReply handleJaspi(Subject receivedSubject,String uriName,WebRequest webRequest,WebSecurityContext webSecurityContext) throws SecurityViolationException, IOException {
  performPrecludedAccessTests(webRequest,webSecurityContext,uriName);
  WebReply webReply=unprotectedSpecialURI(webRequest,uriName,webRequest.getHttpServletRequest().getMethod());
  if (webReply == null) {
    AuthenticationResult authResult=providerAuthenticatorProxy.handleJaspi(webRequest,null);
    authResult.setAuditCredType(AuditEvent.CRED_TYPE_JASPIC);
    if (receivedSubject != null && receivedSubject.getPrincipals() != null) {
      authResult.setAuditCredValue(receivedSubject.getPrincipals().iterator().next().getName());
    }
    if (authResult.getStatus() == AuthResult.RETURN) {
      webReply=new ReturnReply(webRequest.getHttpServletResponse().getStatus(),authResult.getReason());
      SecurityViolationException secVE=convertWebSecurityException(new WebSecurityCollaboratorException(webReply.message,webReply,webSecurityContext));
      throw secVE;
    }
 else     if (authResult.getStatus() != AuthResult.CONTINUE) {
      if (authResult.getStatus() == AuthResult.FAILURE && unprotectedResource(webRequest) == PERMIT_REPLY) {
        webReply=PERMIT_REPLY;
      }
 else {
        webReply=determineWebReply(receivedSubject,uriName,webRequest,authResult);
      }
    }
  }
  return webReply;
}
Program: 34647
Project: 34647
Buggy source:
/** 
 * {@inheritDoc} 
 */
@Override public SecurityCookieImpl preInvoke(EJBRequestData request) throws EJBAccessDeniedException {
  Subject invokedSubject=subjectManager.getInvocationSubject();
  Subject callerSubject=subjectManager.getCallerSubject();
  EJBMethodMetaData methodMetaData=request.getEJBMethodMetaData();
  if (ejbSecConfig.getUseUnauthenticatedForExpiredCredentials()) {
    invokedSubject=setNullSubjectWhenExpired(invokedSubject);
    callerSubject=setNullSubjectWhenExpired(callerSubject);
  }
  SecurityCookieImpl securityCookie=new SecurityCookieImpl(invokedSubject,callerSubject);
  if (setUnauthenticatedSubjectIfNeeded(invokedSubject,callerSubject)) {
    invokedSubject=subjectManager.getInvocationSubject();
    callerSubject=subjectManager.getCallerSubject();
  }
  Subject subjectToAuthorize=(invokedSubject == null) ? callerSubject : invokedSubject;
  if (!isInternalUnprotectedMethod(methodMetaData)) {
    eah.authorizeEJB(request,subjectToAuthorize);
  }
  performDelegation(methodMetaData,subjectToAuthorize);
  subjectManager.setCallerSubject(subjectToAuthorize);
  return securityCookie;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc} 
 */
@Override public SecurityCookieImpl preInvoke(EJBRequestData request) throws EJBAccessDeniedException {
  Subject invokedSubject=subjectManager.getInvocationSubject();
  Subject callerSubject=subjectManager.getCallerSubject();
  EJBMethodMetaData methodMetaData=request.getEJBMethodMetaData();
  if (ejbSecConfig.getUseUnauthenticatedForExpiredCredentials()) {
    invokedSubject=setNullSubjectWhenExpired(invokedSubject);
    callerSubject=setNullSubjectWhenExpired(callerSubject);
  }
  Subject originalInvokedSubject=invokedSubject;
  Subject originalCallerSubject=callerSubject;
  if (setUnauthenticatedSubjectIfNeeded(invokedSubject,callerSubject)) {
    invokedSubject=subjectManager.getInvocationSubject();
    callerSubject=subjectManager.getCallerSubject();
  }
  Subject subjectToAuthorize=(invokedSubject == null) ? callerSubject : invokedSubject;
  if (!isInternalUnprotectedMethod(methodMetaData)) {
    eah.authorizeEJB(request,subjectToAuthorize);
  }
  performDelegation(methodMetaData,subjectToAuthorize);
  subjectManager.setCallerSubject(subjectToAuthorize);
  SecurityCookieImpl securityCookie=new SecurityCookieImpl(originalInvokedSubject,originalCallerSubject,subjectManager.getInvocationSubject(),subjectToAuthorize);
  return securityCookie;
}
Program: 34648
Project: 34648
Buggy source:
/** 
 * {@inheritDoc} 
 */
@Override public void postInvoke(EJBRequestData request,SecurityCookieImpl preInvokeResult) throws EJBAccessDeniedException {
  if (preInvokeResult != null) {
    SecurityCookieImpl securityCookie=preInvokeResult;
    Subject invokedSubject=securityCookie.getInvokedSubject();
    Subject receivedSubject=securityCookie.getReceivedSubject();
    subjectManager.setCallerSubject(receivedSubject);
    subjectManager.setInvocationSubject(invokedSubject);
  }
}

Fixed version (ground truth):
/** 
 * {@inheritDoc} 
 */
@Override public void postInvoke(EJBRequestData request,SecurityCookieImpl preInvokeResult) throws EJBAccessDeniedException {
  if (preInvokeResult != null) {
    SecurityCookieImpl securityCookie=preInvokeResult;
    Subject invocationSubject=subjectManager.getInvocationSubject();
    Subject callerSubject=subjectManager.getCallerSubject();
    if ((invocationSubject == null || invocationSubject.equals(securityCookie.getAdjustedInvokedSubject())) && (callerSubject == null || callerSubject.equals(securityCookie.getAdjustedReceivedSubject()))) {
      Subject invokedSubject=securityCookie.getInvokedSubject();
      Subject receivedSubject=securityCookie.getReceivedSubject();
      subjectManager.setCallerSubject(receivedSubject);
      subjectManager.setInvocationSubject(invokedSubject);
    }
 else {
      if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
        Tr.debug(tc,"String_Node_Str");
      }
    }
  }
}
Program: 34649
Project: 34649
Buggy source:
SecurityCookieImpl(Subject invokedSubject,Subject receivedSubject){
  this.invokedSubject=invokedSubject;
  this.receivedSubject=receivedSubject;
}

Fixed version (ground truth):
SecurityCookieImpl(Subject invokedSubject,Subject receivedSubject,Subject adjustedInvokedSubject,Subject adjustedReceivedSubject){
  this.invokedSubject=invokedSubject;
  this.receivedSubject=receivedSubject;
  this.adjustedInvokedSubject=adjustedInvokedSubject;
  this.adjustedReceivedSubject=adjustedReceivedSubject;
}
Program: 34650
Project: 34650
Buggy source:
/** 
 * Validate and return the   {@link ValidationType}s for the   {@link IdentityStore} from eitherthe EL expression or the direct useFor setting.
 * @param useForExpression The EL expression returned from from the identity store definition.
 * @param useFor The non-EL value.
 * @param immediateOnly Return null if the value is a deferred EL expression.
 * @return The validated useFor types.
 */
static Set<ValidationType> processUseFor(String useForExpression,ValidationType[] useFor,boolean immediateOnly){
  Set<ValidationType> result=null;
  boolean immediate=false;
  if (useForExpression.isEmpty()) {
    result=new HashSet<ValidationType>(Arrays.asList(useFor));
  }
 else {
    Object obj=evaluateElExpression(useForExpression);
    if (obj instanceof Object[]) {
      result=new HashSet(Arrays.asList(obj));
      System.out.println("String_Node_Str" + result);
      immediate=isImmediateExpression(useForExpression);
    }
 else     if (obj instanceof Set) {
      result=(Set<ValidationType>)obj;
      immediate=isImmediateExpression(useForExpression);
    }
 else {
      throw new IllegalArgumentException("String_Node_Str");
    }
  }
  if (result == null || result.isEmpty()) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  return (immediateOnly && !immediate) ? null : result;
}

Fixed version (ground truth):
/** 
 * Validate and return the   {@link ValidationType}s for the   {@link IdentityStore} from eitherthe EL expression or the direct useFor setting.
 * @param useForExpression The EL expression returned from from the identity store definition.
 * @param useFor The non-EL value.
 * @param immediateOnly Return null if the value is a deferred EL expression.
 * @return The validated useFor types.
 */
static Set<ValidationType> processUseFor(String useForExpression,ValidationType[] useFor,boolean immediateOnly){
  Set<ValidationType> result=null;
  boolean immediate=false;
  if (useForExpression.isEmpty()) {
    result=new HashSet<ValidationType>(Arrays.asList(useFor));
  }
 else {
    Object obj=evaluateElExpression(useForExpression);
    if (obj instanceof ValidationType[]) {
      ValidationType[] types=(ValidationType[])obj;
      result=new HashSet<ValidationType>(Arrays.asList(types));
      immediate=isImmediateExpression(useForExpression);
    }
 else     if (obj instanceof Set) {
      result=(Set<ValidationType>)obj;
      immediate=isImmediateExpression(useForExpression);
    }
 else {
      throw new IllegalArgumentException("String_Node_Str");
    }
  }
  if (result == null || result.isEmpty()) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  return (immediateOnly && !immediate) ? null : Collections.unmodifiableSet(result);
}
Program: 34651
Project: 34651
Buggy source:
/** 
 * {@inheritDoc} 
 */
@Override public SecurityCookieImpl preInvoke(EJBRequestData request) throws EJBAccessDeniedException {
  Subject originalInvokedSubject=subjectManager.getInvocationSubject();
  Subject originalCallerSubject=subjectManager.getCallerSubject();
  Subject invokedSubject=originalInvokedSubject;
  Subject callerSubject=originalCallerSubject;
  EJBMethodMetaData methodMetaData=request.getEJBMethodMetaData();
  if (ejbSecConfig.getUseUnauthenticatedForExpiredCredentials()) {
    invokedSubject=setNullSubjectWhenExpired(invokedSubject);
    callerSubject=setNullSubjectWhenExpired(callerSubject);
  }
  if (setUnauthenticatedSubjectIfNeeded(invokedSubject,callerSubject)) {
    invokedSubject=subjectManager.getInvocationSubject();
    callerSubject=subjectManager.getCallerSubject();
  }
  Subject subjectToAuthorize=(invokedSubject == null) ? callerSubject : invokedSubject;
  if (!isInternalUnprotectedMethod(methodMetaData)) {
    eah.authorizeEJB(request,subjectToAuthorize);
  }
  performDelegation(methodMetaData,subjectToAuthorize);
  subjectManager.setCallerSubject(subjectToAuthorize);
  SecurityCookieImpl securityCookie=new SecurityCookieImpl(originalInvokedSubject,originalCallerSubject,subjectManager.getInvocationSubject(),subjectToAuthorize);
  return securityCookie;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc} 
 */
@Override public SecurityCookieImpl preInvoke(EJBRequestData request) throws EJBAccessDeniedException {
  Subject invokedSubject=subjectManager.getInvocationSubject();
  Subject callerSubject=subjectManager.getCallerSubject();
  EJBMethodMetaData methodMetaData=request.getEJBMethodMetaData();
  if (ejbSecConfig.getUseUnauthenticatedForExpiredCredentials()) {
    invokedSubject=setNullSubjectWhenExpired(invokedSubject);
    callerSubject=setNullSubjectWhenExpired(callerSubject);
  }
  Subject originalInvokedSubject=invokedSubject;
  Subject originalCallerSubject=callerSubject;
  if (setUnauthenticatedSubjectIfNeeded(invokedSubject,callerSubject)) {
    invokedSubject=subjectManager.getInvocationSubject();
    callerSubject=subjectManager.getCallerSubject();
  }
  Subject subjectToAuthorize=(invokedSubject == null) ? callerSubject : invokedSubject;
  if (!isInternalUnprotectedMethod(methodMetaData)) {
    eah.authorizeEJB(request,subjectToAuthorize);
  }
  performDelegation(methodMetaData,subjectToAuthorize);
  subjectManager.setCallerSubject(subjectToAuthorize);
  SecurityCookieImpl securityCookie=new SecurityCookieImpl(originalInvokedSubject,originalCallerSubject,subjectManager.getInvocationSubject(),subjectToAuthorize);
  return securityCookie;
}
Program: 34652
Project: 34652
Buggy source:
/** 
 * {@inheritDoc} 
 */
@Override public void postInvoke(EJBRequestData request,SecurityCookieImpl preInvokeResult) throws EJBAccessDeniedException {
  if (preInvokeResult != null) {
    SecurityCookieImpl securityCookie=preInvokeResult;
    if (securityCookie.getAdjustedInvokedSubject().equals(subjectManager.getInvocationSubject()) && securityCookie.getAdjustedReceivedSubject().equals(subjectManager.getCallerSubject())) {
      Subject invokedSubject=securityCookie.getInvokedSubject();
      Subject receivedSubject=securityCookie.getReceivedSubject();
      subjectManager.setCallerSubject(receivedSubject);
      subjectManager.setInvocationSubject(invokedSubject);
    }
 else {
      if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
        Tr.debug(tc,"String_Node_Str");
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * {@inheritDoc} 
 */
@Override public void postInvoke(EJBRequestData request,SecurityCookieImpl preInvokeResult) throws EJBAccessDeniedException {
  if (preInvokeResult != null) {
    SecurityCookieImpl securityCookie=preInvokeResult;
    Subject invocationSubject=subjectManager.getInvocationSubject();
    Subject callerSubject=subjectManager.getCallerSubject();
    if ((invocationSubject == null || invocationSubject.equals(securityCookie.getAdjustedInvokedSubject())) && (callerSubject == null || callerSubject.equals(securityCookie.getAdjustedReceivedSubject()))) {
      Subject invokedSubject=securityCookie.getInvokedSubject();
      Subject receivedSubject=securityCookie.getReceivedSubject();
      subjectManager.setCallerSubject(receivedSubject);
      subjectManager.setInvocationSubject(invokedSubject);
    }
 else {
      if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
        Tr.debug(tc,"String_Node_Str");
      }
    }
  }
}
Program: 34653
Project: 34653
Buggy source:
@Override public void unregisterMBean(ObjectName name) throws InstanceNotFoundException, MBeanRegistrationException {
  try {
    if (!unregisterMBeanIfDelayed(name)) {
      super.unregisterMBean(name);
    }
  }
 catch (  InstanceNotFoundException e) {
    emitJMXMBeanRegisterEvent(name,null,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
catch (  MBeanRegistrationException e) {
    emitJMXMBeanRegisterEvent(name,null,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
  emitJMXMBeanRegisterEvent(name,null,"String_Node_Str","String_Node_Str","String_Node_Str");
}

Fixed version (ground truth):
@Override @FFDCIgnore({InstanceNotFoundException.class,MBeanRegistrationException.class}) public void unregisterMBean(ObjectName name) throws InstanceNotFoundException, MBeanRegistrationException {
  try {
    if (!unregisterMBeanIfDelayed(name)) {
      super.unregisterMBean(name);
    }
  }
 catch (  InstanceNotFoundException e) {
    emitJMXMBeanRegisterEvent(name,null,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
catch (  MBeanRegistrationException e) {
    emitJMXMBeanRegisterEvent(name,null,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
  emitJMXMBeanRegisterEvent(name,null,"String_Node_Str","String_Node_Str","String_Node_Str");
}
Program: 34654
Project: 34654
Buggy source:
@Override public ObjectInstance registerMBean(Object object,ObjectName name) throws InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException {
  ObjectInstance oi=null;
  try {
    registerMBeanIfDelayed(name);
  }
 catch (  InstanceNotFoundException e) {
    emitJMXMBeanRegisterEvent(name,object,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw new InstanceAlreadyExistsException();
  }
  try {
    oi=super.registerMBean(object,name);
  }
 catch (  InstanceAlreadyExistsException e) {
    emitJMXMBeanRegisterEvent(name,object,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
catch (  MBeanRegistrationException e) {
    emitJMXMBeanRegisterEvent(name,object,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
catch (  NotCompliantMBeanException e) {
    emitJMXMBeanRegisterEvent(name,object,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
  emitJMXMBeanRegisterEvent(name,object,"String_Node_Str","String_Node_Str","String_Node_Str");
  return oi;
}

Fixed version (ground truth):
@Override @FFDCIgnore({InstanceAlreadyExistsException.class,MBeanRegistrationException.class,NotCompliantMBeanException.class}) public ObjectInstance registerMBean(Object object,ObjectName name) throws InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException {
  ObjectInstance oi=null;
  try {
    registerMBeanIfDelayed(name);
  }
 catch (  InstanceNotFoundException e) {
    emitJMXMBeanRegisterEvent(name,object,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw new InstanceAlreadyExistsException();
  }
  try {
    oi=super.registerMBean(object,name);
    emitJMXMBeanRegisterEvent(name,object,"String_Node_Str","String_Node_Str","String_Node_Str");
  }
 catch (  InstanceAlreadyExistsException e) {
    emitJMXMBeanRegisterEvent(name,object,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
catch (  MBeanRegistrationException e) {
    emitJMXMBeanRegisterEvent(name,object,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
catch (  NotCompliantMBeanException e) {
    emitJMXMBeanRegisterEvent(name,object,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
  return oi;
}
Program: 34655
Project: 34655
Buggy source:
@Override public Object invoke(ObjectName name,String operationName,Object[] params,String[] signature) throws InstanceNotFoundException, MBeanException, ReflectionException {
  Object oi=null;
  try {
    registerMBeanIfDelayed(name);
  }
 catch (  NotCompliantMBeanException e) {
    emitJMXMBeanInvokeEvent(name,operationName,params,signature,"String_Node_Str","String_Node_Str","String_Node_Str");
    newInstanceNotFoundException(e);
  }
catch (  InstanceAlreadyExistsException e) {
    emitJMXMBeanInvokeEvent(name,operationName,params,signature,"String_Node_Str","String_Node_Str","String_Node_Str");
    newInstanceNotFoundException(e);
  }
  try {
    oi=super.invoke(name,operationName,params,signature);
  }
 catch (  ReflectionException e) {
    emitJMXMBeanInvokeEvent(name,operationName,params,signature,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
catch (  InstanceNotFoundException e) {
    emitJMXMBeanInvokeEvent(name,operationName,params,signature,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
catch (  MBeanException e) {
    emitJMXMBeanInvokeEvent(name,operationName,params,signature,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
  emitJMXMBeanInvokeEvent(name,operationName,params,signature,"String_Node_Str","String_Node_Str","String_Node_Str");
  return oi;
}

Fixed version (ground truth):
@Override @FFDCIgnore({MBeanException.class,InstanceNotFoundException.class,ReflectionException.class}) public Object invoke(ObjectName name,String operationName,Object[] params,String[] signature) throws InstanceNotFoundException, MBeanException, ReflectionException {
  Object oi=null;
  try {
    registerMBeanIfDelayed(name);
  }
 catch (  NotCompliantMBeanException e) {
    emitJMXMBeanInvokeEvent(name,operationName,params,signature,"String_Node_Str","String_Node_Str","String_Node_Str");
    newInstanceNotFoundException(e);
  }
catch (  InstanceAlreadyExistsException e) {
    emitJMXMBeanInvokeEvent(name,operationName,params,signature,"String_Node_Str","String_Node_Str","String_Node_Str");
    newInstanceNotFoundException(e);
  }
  try {
    oi=super.invoke(name,operationName,params,signature);
    emitJMXMBeanInvokeEvent(name,operationName,params,signature,"String_Node_Str","String_Node_Str","String_Node_Str");
  }
 catch (  ReflectionException e) {
    emitJMXMBeanInvokeEvent(name,operationName,params,signature,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
catch (  InstanceNotFoundException e) {
    emitJMXMBeanInvokeEvent(name,operationName,params,signature,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
catch (  MBeanException e) {
    emitJMXMBeanInvokeEvent(name,operationName,params,signature,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
  return oi;
}
Program: 34656
Project: 34656
Buggy source:
@Override public Object getAttribute(ObjectName name,String attribute) throws MBeanException, AttributeNotFoundException, InstanceNotFoundException, ReflectionException {
  try {
    registerMBeanIfDelayed(name);
  }
 catch (  NotCompliantMBeanException e) {
    emitJMXMBeanAttributeAction(name,attribute,"String_Node_Str","String_Node_Str","String_Node_Str");
    newInstanceNotFoundException(e);
  }
catch (  InstanceAlreadyExistsException e) {
    emitJMXMBeanAttributeAction(name,attribute,"String_Node_Str","String_Node_Str","String_Node_Str");
    newInstanceNotFoundException(e);
  }
  emitJMXMBeanAttributeAction(name,attribute,"String_Node_Str","String_Node_Str","String_Node_Str");
  return super.getAttribute(name,attribute);
}

Fixed version (ground truth):
@Override @FFDCIgnore({MBeanException.class,AttributeNotFoundException.class,InstanceNotFoundException.class,ReflectionException.class}) public Object getAttribute(ObjectName name,String attribute) throws MBeanException, AttributeNotFoundException, InstanceNotFoundException, ReflectionException {
  try {
    registerMBeanIfDelayed(name);
  }
 catch (  NotCompliantMBeanException e) {
    emitJMXMBeanAttributeAction(name,attribute,"String_Node_Str","String_Node_Str","String_Node_Str");
    newInstanceNotFoundException(e);
  }
catch (  InstanceAlreadyExistsException e) {
    emitJMXMBeanAttributeAction(name,attribute,"String_Node_Str","String_Node_Str","String_Node_Str");
    newInstanceNotFoundException(e);
  }
  Object oi=null;
  try {
    oi=super.getAttribute(name,attribute);
  }
 catch (  MBeanException e) {
    emitJMXMBeanAttributeAction(name,attribute,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
catch (  AttributeNotFoundException e) {
    emitJMXMBeanAttributeAction(name,attribute,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
catch (  InstanceNotFoundException e) {
    emitJMXMBeanAttributeAction(name,attribute,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
catch (  ReflectionException e) {
    emitJMXMBeanAttributeAction(name,attribute,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
  emitJMXMBeanAttributeAction(name,attribute,"String_Node_Str","String_Node_Str","String_Node_Str");
  return oi;
}
Program: 34657
Project: 34657
Buggy source:
/** 
 * @param className b * @param property
 * @return
 */
private boolean checkTypeMatch(String className,String[] classNames){
  for (  String test : classNames) {
    if (test.equals(className)) {
      return true;
    }
  }
  return false;
}

Fixed version (ground truth):
/** 
 * @param className
 * @param property
 * @return
 */
private boolean checkTypeMatch(String className,String[] classNames){
  for (  String test : classNames) {
    if (test.equals(className)) {
      return true;
    }
  }
  return false;
}
Program: 34659
Project: 34659
Buggy source:
@Override public AttributeList getAttributes(ObjectName name,String[] attributes) throws InstanceNotFoundException, ReflectionException {
  try {
    registerMBeanIfDelayed(name);
  }
 catch (  NotCompliantMBeanException e) {
    emitJMXMBeanAttributeAction(name,attributes,"String_Node_Str","String_Node_Str","String_Node_Str");
    newInstanceNotFoundException(e);
  }
catch (  InstanceAlreadyExistsException e) {
    emitJMXMBeanAttributeAction(name,attributes,"String_Node_Str","String_Node_Str","String_Node_Str");
    newInstanceNotFoundException(e);
  }
catch (  MBeanRegistrationException e) {
    emitJMXMBeanAttributeAction(name,attributes,"String_Node_Str","String_Node_Str","String_Node_Str");
    newInstanceNotFoundException(e);
  }
  emitJMXMBeanAttributeAction(name,attributes,"String_Node_Str","String_Node_Str","String_Node_Str");
  return super.getAttributes(name,attributes);
}

Fixed version (ground truth):
@Override @FFDCIgnore({InstanceNotFoundException.class,ReflectionException.class}) public AttributeList getAttributes(ObjectName name,String[] attributes) throws InstanceNotFoundException, ReflectionException {
  try {
    registerMBeanIfDelayed(name);
  }
 catch (  NotCompliantMBeanException e) {
    emitJMXMBeanAttributeAction(name,attributes,"String_Node_Str","String_Node_Str","String_Node_Str");
    newInstanceNotFoundException(e);
  }
catch (  InstanceAlreadyExistsException e) {
    emitJMXMBeanAttributeAction(name,attributes,"String_Node_Str","String_Node_Str","String_Node_Str");
    newInstanceNotFoundException(e);
  }
catch (  MBeanRegistrationException e) {
    emitJMXMBeanAttributeAction(name,attributes,"String_Node_Str","String_Node_Str","String_Node_Str");
    newInstanceNotFoundException(e);
  }
  AttributeList al=null;
  try {
    al=super.getAttributes(name,attributes);
  }
 catch (  InstanceNotFoundException e) {
    emitJMXMBeanAttributeAction(name,attributes,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
catch (  ReflectionException e) {
    emitJMXMBeanAttributeAction(name,attributes,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
  emitJMXMBeanAttributeAction(name,attributes,"String_Node_Str","String_Node_Str","String_Node_Str");
  return al;
}
Program: 34660
Project: 34660
Buggy source:
@Override public void addNotificationListener(ObjectName name,ObjectName listener,NotificationFilter filter,Object handback) throws InstanceNotFoundException {
  try {
    registerMBeanIfDelayed(name);
    registerMBeanIfDelayed(listener);
  }
 catch (  NotCompliantMBeanException e) {
    emitJMXNotificationEvent(name,listener,filter,handback,"String_Node_Str","String_Node_Str","String_Node_Str");
    newInstanceNotFoundException(e);
  }
catch (  InstanceAlreadyExistsException e) {
    emitJMXNotificationEvent(name,listener,filter,handback,"String_Node_Str","String_Node_Str","String_Node_Str");
    newInstanceNotFoundException(e);
  }
catch (  MBeanRegistrationException e) {
    emitJMXNotificationEvent(name,listener,filter,handback,"String_Node_Str","String_Node_Str","String_Node_Str");
    newInstanceNotFoundException(e);
  }
  try {
    super.addNotificationListener(name,listener,filter,handback);
  }
 catch (  InstanceNotFoundException e) {
    emitJMXNotificationEvent(name,listener,filter,handback,"String_Node_Str","String_Node_Str","String_Node_Str");
    newInstanceNotFoundException(e);
  }
  emitJMXNotificationEvent(name,listener,filter,handback,"String_Node_Str","String_Node_Str","String_Node_Str");
}

Fixed version (ground truth):
@Override @FFDCIgnore(InstanceNotFoundException.class) public void addNotificationListener(ObjectName name,ObjectName listener,NotificationFilter filter,Object handback) throws InstanceNotFoundException {
  try {
    registerMBeanIfDelayed(name);
    registerMBeanIfDelayed(listener);
  }
 catch (  NotCompliantMBeanException e) {
    emitJMXNotificationEvent(name,listener,filter,handback,"String_Node_Str","String_Node_Str","String_Node_Str");
    newInstanceNotFoundException(e);
  }
catch (  InstanceAlreadyExistsException e) {
    emitJMXNotificationEvent(name,listener,filter,handback,"String_Node_Str","String_Node_Str","String_Node_Str");
    newInstanceNotFoundException(e);
  }
catch (  MBeanRegistrationException e) {
    emitJMXNotificationEvent(name,listener,filter,handback,"String_Node_Str","String_Node_Str","String_Node_Str");
    newInstanceNotFoundException(e);
  }
  try {
    super.addNotificationListener(name,listener,filter,handback);
  }
 catch (  InstanceNotFoundException e) {
    emitJMXNotificationEvent(name,listener,filter,handback,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
  emitJMXNotificationEvent(name,listener,filter,handback,"String_Node_Str","String_Node_Str","String_Node_Str");
}
Program: 34661
Project: 34661
Buggy source:
@Override public void removeNotificationListener(ObjectName name,NotificationListener listener,NotificationFilter filter,Object handback) throws InstanceNotFoundException, ListenerNotFoundException {
  try {
    registerMBeanIfDelayed(name);
  }
 catch (  NotCompliantMBeanException e) {
    emitJMXNotificationEvent(name,listener,filter,handback,"String_Node_Str","String_Node_Str","String_Node_Str");
    newInstanceNotFoundException(e);
  }
catch (  InstanceAlreadyExistsException e) {
    emitJMXNotificationEvent(name,listener,filter,handback,"String_Node_Str","String_Node_Str","String_Node_Str");
    newInstanceNotFoundException(e);
  }
catch (  MBeanRegistrationException e) {
    emitJMXNotificationEvent(name,listener,filter,handback,"String_Node_Str","String_Node_Str","String_Node_Str");
    newInstanceNotFoundException(e);
  }
  super.removeNotificationListener(name,listener,filter,handback);
  emitJMXNotificationEvent(name,listener,filter,handback,"String_Node_Str","String_Node_Str","String_Node_Str");
}

Fixed version (ground truth):
@Override @FFDCIgnore({InstanceNotFoundException.class,ListenerNotFoundException.class}) public void removeNotificationListener(ObjectName name,NotificationListener listener,NotificationFilter filter,Object handback) throws InstanceNotFoundException, ListenerNotFoundException {
  try {
    registerMBeanIfDelayed(name);
  }
 catch (  NotCompliantMBeanException e) {
    emitJMXNotificationEvent(name,listener,filter,handback,"String_Node_Str","String_Node_Str","String_Node_Str");
    newInstanceNotFoundException(e);
  }
catch (  InstanceAlreadyExistsException e) {
    emitJMXNotificationEvent(name,listener,filter,handback,"String_Node_Str","String_Node_Str","String_Node_Str");
    newInstanceNotFoundException(e);
  }
catch (  MBeanRegistrationException e) {
    emitJMXNotificationEvent(name,listener,filter,handback,"String_Node_Str","String_Node_Str","String_Node_Str");
    newInstanceNotFoundException(e);
  }
  try {
    super.removeNotificationListener(name,listener,filter,handback);
  }
 catch (  InstanceNotFoundException e) {
    emitJMXNotificationEvent(name,listener,null,null,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
catch (  ListenerNotFoundException e) {
    emitJMXNotificationEvent(name,listener,null,null,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
  emitJMXNotificationEvent(name,listener,filter,handback,"String_Node_Str","String_Node_Str","String_Node_Str");
}
Program: 34662
Project: 34662
Buggy source:
/** 
 * {@inheritDoc} 
 */
@Override public SecurityCookieImpl preInvoke(EJBRequestData request) throws EJBAccessDeniedException {
  Subject originalInvokedSubject=subjectManager.getInvocationSubject();
  Subject originalCallerSubject=subjectManager.getCallerSubject();
  Subject invokedSubject=originalInvokedSubject;
  Subject callerSubject=originalCallerSubject;
  EJBMethodMetaData methodMetaData=request.getEJBMethodMetaData();
  if (ejbSecConfig.getUseUnauthenticatedForExpiredCredentials()) {
    invokedSubject=setNullSubjectWhenExpired(invokedSubject);
    callerSubject=setNullSubjectWhenExpired(callerSubject);
  }
  if (setUnauthenticatedSubjectIfNeeded(invokedSubject,callerSubject)) {
    invokedSubject=subjectManager.getInvocationSubject();
    callerSubject=subjectManager.getCallerSubject();
  }
  Subject subjectToAuthorize=(invokedSubject == null) ? callerSubject : invokedSubject;
  if (!isInternalUnprotectedMethod(methodMetaData)) {
    eah.authorizeEJB(request,subjectToAuthorize);
  }
  performDelegation(methodMetaData,subjectToAuthorize);
  subjectManager.setCallerSubject(subjectToAuthorize);
  SecurityCookieImpl securityCookie=new SecurityCookieImpl(originalInvokedSubject,originalCallerSubject,subjectManager.getInvocationSubject(),subjectToAuthorize);
  return securityCookie;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc} 
 */
@Override public SecurityCookieImpl preInvoke(EJBRequestData request) throws EJBAccessDeniedException {
  Subject invokedSubject=subjectManager.getInvocationSubject();
  Subject callerSubject=subjectManager.getCallerSubject();
  EJBMethodMetaData methodMetaData=request.getEJBMethodMetaData();
  if (ejbSecConfig.getUseUnauthenticatedForExpiredCredentials()) {
    invokedSubject=setNullSubjectWhenExpired(invokedSubject);
    callerSubject=setNullSubjectWhenExpired(callerSubject);
  }
  Subject originalInvokedSubject=invokedSubject;
  Subject originalCallerSubject=callerSubject;
  if (setUnauthenticatedSubjectIfNeeded(invokedSubject,callerSubject)) {
    invokedSubject=subjectManager.getInvocationSubject();
    callerSubject=subjectManager.getCallerSubject();
  }
  Subject subjectToAuthorize=(invokedSubject == null) ? callerSubject : invokedSubject;
  if (!isInternalUnprotectedMethod(methodMetaData)) {
    eah.authorizeEJB(request,subjectToAuthorize);
  }
  performDelegation(methodMetaData,subjectToAuthorize);
  subjectManager.setCallerSubject(subjectToAuthorize);
  SecurityCookieImpl securityCookie=new SecurityCookieImpl(originalInvokedSubject,originalCallerSubject,subjectManager.getInvocationSubject(),subjectToAuthorize);
  return securityCookie;
}
Program: 34663
Project: 34663
Buggy source:
/** 
 * {@inheritDoc} 
 */
@Override public void postInvoke(EJBRequestData request,SecurityCookieImpl preInvokeResult) throws EJBAccessDeniedException {
  if (preInvokeResult != null) {
    SecurityCookieImpl securityCookie=preInvokeResult;
    if (securityCookie.getAdjustedInvokedSubject().equals(subjectManager.getInvocationSubject()) && securityCookie.getAdjustedReceivedSubject().equals(subjectManager.getCallerSubject())) {
      Subject invokedSubject=securityCookie.getInvokedSubject();
      Subject receivedSubject=securityCookie.getReceivedSubject();
      subjectManager.setCallerSubject(receivedSubject);
      subjectManager.setInvocationSubject(invokedSubject);
    }
 else {
      if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
        Tr.debug(tc,"String_Node_Str");
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * {@inheritDoc} 
 */
@Override public void postInvoke(EJBRequestData request,SecurityCookieImpl preInvokeResult) throws EJBAccessDeniedException {
  if (preInvokeResult != null) {
    SecurityCookieImpl securityCookie=preInvokeResult;
    Subject invocationSubject=subjectManager.getInvocationSubject();
    Subject callerSubject=subjectManager.getCallerSubject();
    if ((invocationSubject == null || invocationSubject.equals(securityCookie.getAdjustedInvokedSubject())) && (callerSubject == null || callerSubject.equals(securityCookie.getAdjustedReceivedSubject()))) {
      Subject invokedSubject=securityCookie.getInvokedSubject();
      Subject receivedSubject=securityCookie.getReceivedSubject();
      subjectManager.setCallerSubject(receivedSubject);
      subjectManager.setInvocationSubject(invokedSubject);
    }
 else {
      if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
        Tr.debug(tc,"String_Node_Str");
      }
    }
  }
}
Program: 34665
Project: 34665
Buggy source:
@Override public void unregisterMBean(ObjectName name) throws InstanceNotFoundException, MBeanRegistrationException {
  try {
    if (!unregisterMBeanIfDelayed(name)) {
      super.unregisterMBean(name);
    }
  }
 catch (  InstanceNotFoundException e) {
    emitJMXMBeanRegisterEvent(name,null,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
catch (  MBeanRegistrationException e) {
    emitJMXMBeanRegisterEvent(name,null,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
  emitJMXMBeanRegisterEvent(name,null,"String_Node_Str","String_Node_Str","String_Node_Str");
}

Fixed version (ground truth):
@Override @FFDCIgnore({InstanceNotFoundException.class,MBeanRegistrationException.class}) public void unregisterMBean(ObjectName name) throws InstanceNotFoundException, MBeanRegistrationException {
  try {
    if (!unregisterMBeanIfDelayed(name)) {
      super.unregisterMBean(name);
    }
  }
 catch (  InstanceNotFoundException e) {
    emitJMXMBeanRegisterEvent(name,null,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
catch (  MBeanRegistrationException e) {
    emitJMXMBeanRegisterEvent(name,null,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
  emitJMXMBeanRegisterEvent(name,null,"String_Node_Str","String_Node_Str","String_Node_Str");
}
Program: 34666
Project: 34666
Buggy source:
@Override public ObjectInstance registerMBean(Object object,ObjectName name) throws InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException {
  ObjectInstance oi=null;
  try {
    registerMBeanIfDelayed(name);
  }
 catch (  InstanceNotFoundException e) {
    emitJMXMBeanRegisterEvent(name,object,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw new InstanceAlreadyExistsException();
  }
  try {
    oi=super.registerMBean(object,name);
  }
 catch (  InstanceAlreadyExistsException e) {
    emitJMXMBeanRegisterEvent(name,object,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
catch (  MBeanRegistrationException e) {
    emitJMXMBeanRegisterEvent(name,object,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
catch (  NotCompliantMBeanException e) {
    emitJMXMBeanRegisterEvent(name,object,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
  emitJMXMBeanRegisterEvent(name,object,"String_Node_Str","String_Node_Str","String_Node_Str");
  return oi;
}

Fixed version (ground truth):
@Override @FFDCIgnore({InstanceAlreadyExistsException.class,MBeanRegistrationException.class,NotCompliantMBeanException.class}) public ObjectInstance registerMBean(Object object,ObjectName name) throws InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException {
  ObjectInstance oi=null;
  try {
    registerMBeanIfDelayed(name);
  }
 catch (  InstanceNotFoundException e) {
    emitJMXMBeanRegisterEvent(name,object,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw new InstanceAlreadyExistsException();
  }
  try {
    oi=super.registerMBean(object,name);
    emitJMXMBeanRegisterEvent(name,object,"String_Node_Str","String_Node_Str","String_Node_Str");
  }
 catch (  InstanceAlreadyExistsException e) {
    emitJMXMBeanRegisterEvent(name,object,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
catch (  MBeanRegistrationException e) {
    emitJMXMBeanRegisterEvent(name,object,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
catch (  NotCompliantMBeanException e) {
    emitJMXMBeanRegisterEvent(name,object,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
  return oi;
}
Program: 34667
Project: 34667
Buggy source:
@Override public Object invoke(ObjectName name,String operationName,Object[] params,String[] signature) throws InstanceNotFoundException, MBeanException, ReflectionException {
  Object oi=null;
  try {
    registerMBeanIfDelayed(name);
  }
 catch (  NotCompliantMBeanException e) {
    emitJMXMBeanInvokeEvent(name,operationName,params,signature,"String_Node_Str","String_Node_Str","String_Node_Str");
    newInstanceNotFoundException(e);
  }
catch (  InstanceAlreadyExistsException e) {
    emitJMXMBeanInvokeEvent(name,operationName,params,signature,"String_Node_Str","String_Node_Str","String_Node_Str");
    newInstanceNotFoundException(e);
  }
  try {
    oi=super.invoke(name,operationName,params,signature);
  }
 catch (  ReflectionException e) {
    emitJMXMBeanInvokeEvent(name,operationName,params,signature,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
catch (  InstanceNotFoundException e) {
    emitJMXMBeanInvokeEvent(name,operationName,params,signature,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
catch (  MBeanException e) {
    emitJMXMBeanInvokeEvent(name,operationName,params,signature,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
  emitJMXMBeanInvokeEvent(name,operationName,params,signature,"String_Node_Str","String_Node_Str","String_Node_Str");
  return oi;
}

Fixed version (ground truth):
@Override @FFDCIgnore({MBeanException.class,InstanceNotFoundException.class,ReflectionException.class}) public Object invoke(ObjectName name,String operationName,Object[] params,String[] signature) throws InstanceNotFoundException, MBeanException, ReflectionException {
  Object oi=null;
  try {
    registerMBeanIfDelayed(name);
  }
 catch (  NotCompliantMBeanException e) {
    emitJMXMBeanInvokeEvent(name,operationName,params,signature,"String_Node_Str","String_Node_Str","String_Node_Str");
    newInstanceNotFoundException(e);
  }
catch (  InstanceAlreadyExistsException e) {
    emitJMXMBeanInvokeEvent(name,operationName,params,signature,"String_Node_Str","String_Node_Str","String_Node_Str");
    newInstanceNotFoundException(e);
  }
  try {
    oi=super.invoke(name,operationName,params,signature);
    emitJMXMBeanInvokeEvent(name,operationName,params,signature,"String_Node_Str","String_Node_Str","String_Node_Str");
  }
 catch (  ReflectionException e) {
    emitJMXMBeanInvokeEvent(name,operationName,params,signature,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
catch (  InstanceNotFoundException e) {
    emitJMXMBeanInvokeEvent(name,operationName,params,signature,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
catch (  MBeanException e) {
    emitJMXMBeanInvokeEvent(name,operationName,params,signature,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
  return oi;
}
Program: 34668
Project: 34668
Buggy source:
@Override public Object getAttribute(ObjectName name,String attribute) throws MBeanException, AttributeNotFoundException, InstanceNotFoundException, ReflectionException {
  try {
    registerMBeanIfDelayed(name);
  }
 catch (  NotCompliantMBeanException e) {
    emitJMXMBeanAttributeAction(name,attribute,"String_Node_Str","String_Node_Str","String_Node_Str");
    newInstanceNotFoundException(e);
  }
catch (  InstanceAlreadyExistsException e) {
    emitJMXMBeanAttributeAction(name,attribute,"String_Node_Str","String_Node_Str","String_Node_Str");
    newInstanceNotFoundException(e);
  }
  emitJMXMBeanAttributeAction(name,attribute,"String_Node_Str","String_Node_Str","String_Node_Str");
  return super.getAttribute(name,attribute);
}

Fixed version (ground truth):
@Override @FFDCIgnore({MBeanException.class,AttributeNotFoundException.class,InstanceNotFoundException.class,ReflectionException.class}) public Object getAttribute(ObjectName name,String attribute) throws MBeanException, AttributeNotFoundException, InstanceNotFoundException, ReflectionException {
  try {
    registerMBeanIfDelayed(name);
  }
 catch (  NotCompliantMBeanException e) {
    emitJMXMBeanAttributeAction(name,attribute,"String_Node_Str","String_Node_Str","String_Node_Str");
    newInstanceNotFoundException(e);
  }
catch (  InstanceAlreadyExistsException e) {
    emitJMXMBeanAttributeAction(name,attribute,"String_Node_Str","String_Node_Str","String_Node_Str");
    newInstanceNotFoundException(e);
  }
  Object oi=null;
  try {
    oi=super.getAttribute(name,attribute);
  }
 catch (  MBeanException e) {
    emitJMXMBeanAttributeAction(name,attribute,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
catch (  AttributeNotFoundException e) {
    emitJMXMBeanAttributeAction(name,attribute,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
catch (  InstanceNotFoundException e) {
    emitJMXMBeanAttributeAction(name,attribute,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
catch (  ReflectionException e) {
    emitJMXMBeanAttributeAction(name,attribute,"String_Node_Str","String_Node_Str","String_Node_Str");
    throw e;
  }
  emitJMXMBeanAttributeAction(name,attribute,"String_Node_Str","String_Node_Str","String_Node_Str");
  return oi;
}
Program: 34669
Project: 34669
Buggy source:
/** 
 * @param className b * @param property
 * @return
 */
private boolean checkTypeMatch(String className,String[] classNames){
  for (  String test : classNames) {
    if (test.equals(className)) {
      return true;
    }
  }
  return false;
}

Fixed version (ground truth):
/** 
 * @param className
 * @param property
 * @return
 */
private boolean checkTypeMatch(String className,String[] classNames){
  for (  String test : classNames) {
    if (test.equals(className)) {
      return true;
    }
  }
  return false;
}