Buggy code:
protected void refreshInternal ( Collection objs , OpCallbacks call ) { } protected void refreshInternal ( Object obj , OpCallbacks call ) { } public void retrieveAll ( Collection objs , boolean dfgOnly , OpCallbacks call ) { } public void retrieve ( Object obj , boolean dfgOnly , OpCallbacks call ) { } public void evictAll ( OpCallbacks call ) { } public void evictAll ( Collection objs , OpCallbacks call ) { } public void evictAll ( Extent extent , OpCallbacks call ) { } public void evict ( Object obj , OpCallbacks call ) { } public Object detach ( Object obj , OpCallbacks call ) { } public Object [ ] detachAll ( Collection objs , OpCallbacks call ) { } public void detachAll ( OpCallbacks call ) { } private void detachAllInternal ( OpCallbacks call ) { } public Object attach ( Object obj , boolean copyNew , OpCallbacks call ) { } public Object [ ] attachAll ( Collection objs , boolean copyNew , OpCallbacks call ) { } public void nontransactionalAll ( Collection objs , OpCallbacks call ) { } public void nontransactional ( Object obj , OpCallbacks call ) { } public void transactionalAll ( Collection objs , boolean updateVersion , OpCallbacks call ) { } public void transactional ( Object obj , boolean updateVersion , OpCallbacks call ) { } private void transactionalStatesAll ( Collection sms , Collection failed , List exceps ) { } public Extent newExtent ( Class type , boolean subclasses ) { } private Extent newExtent ( Class type , boolean subclasses , FetchConfiguration fetch ) { } public Iterator extentIterator ( Class type , boolean subclasses , FetchConfiguration fetch , boolean ignoreChanges ) { } public Query newQuery ( String lang , Class cls , Object query ) { } public Query newQuery ( String lang , Object query ) { } protected QueryImpl newQueryImpl ( String lang , StoreQuery sq ) { } public Seq getIdentitySequence ( ClassMetaData meta ) { } public Seq getValueSequence ( FieldMetaData fmd ) { } private Seq getSequence ( ClassMetaData meta , FieldMetaData fmd ) { } public void lock ( Object obj , OpCallbacks call ) { } public void lock ( Object obj , int level , int timeout , OpCallbacks call ) { } public void lockAll ( Collection objs , OpCallbacks call ) { } public void lockAll ( Collection objs , int level , int timeout , OpCallbacks call ) { } public boolean cancelAll ( ) { } public Object getConnection ( ) { } public boolean hasConnection ( ) { } private void retainConnection ( ) { } private void releaseConnection ( ) { } public Collection getManagedObjects ( ) { } public Collection getTransactionalObjects ( ) { } public Collection getPendingTransactionalObjects ( ) { } public Collection getDirtyObjects ( ) { } public boolean getOrderDirtyObjects ( ) { } public void setOrderDirtyObjects ( boolean order ) { } protected Collection getManagedStates ( ) { } protected Collection getTransactionalStates ( ) { } protected Collection getDirtyStates ( ) { } protected Collection getPendingTransactionalStates ( ) { } void setStateManager ( Object id , StateManagerImpl sm , int status ) { } void addToTransaction ( StateManagerImpl sm ) { } void removeFromTransaction ( StateManagerImpl sm ) { } void setDirty ( StateManagerImpl sm , boolean firstDirty ) { } void addToPendingTransaction ( StateManagerImpl sm ) { } void removeFromPendingTransaction ( StateManagerImpl sm ) { } void addDereferencedDependent ( StateManagerImpl sm ) { } void removeDereferencedDependent ( StateManagerImpl sm ) { } public void dirtyType ( Class cls ) { } public Collection getPersistedTypes ( ) { } public Collection getUpdatedTypes ( ) { } public Collection getDeletedTypes ( ) { } public boolean isClosed ( ) { } public void close ( ) { } protected void free ( ) { } public void lock ( ) { } public void unlock ( ) { } public Object newInstance ( Class cls ) { assertOpen ( ) ; if ( ( cls . isInterface ( ) ) || ( Modifier . isAbstract ( cls . getModifiers ( ) ) ) ) <START_BUG> throw new UnsupportedOperationException ( BrokerImpl . _loc . get ( "new-abstract" , cls ) ) ; <END_BUG> if ( ! ( PCRegistry . isRegistered ( cls ) ) ) { try { Class . forName ( cls . getName ( ) , true , cls . getClassLoader ( ) ) ; } catch ( Throwable t ) { } } return PCRegistry . newInstance ( cls , null , false ) ; } public Object getObjectId ( Object obj ) { } public int getLockLevel ( Object o ) { } public Object getVersion ( Object obj ) { } public boolean isDirty ( Object obj ) { } public boolean isTransactional ( Object obj ) { } public boolean isPersistent ( Object obj ) { } public boolean isNew ( Object obj ) { } public boolean isDeleted ( Object obj ) { } public boolean isDetached ( Object obj ) { } public OpenJPAStateManager getStateManager ( Object obj ) { } protected StateManagerImpl getStateManagerImpl ( Object obj , boolean assertThisContext ) { } protected StateManagerImpl getStateManagerImplById ( Object oid , boolean allowNew ) { } protected PersistenceCapable assertPersistenceCapable ( Object obj ) { } public void assertOpen ( ) { } public void assertActiveTransaction ( ) { } private void assertTransactionOperation ( ) { } public void assertNontransactionalRead ( ) { } public void assertWriteOperation ( ) { } private static ObjectNotFoundException newObjectNotFoundException ( Collection failed ) { } public Object processArgument ( Object oid ) { } public Object processReturn ( Object oid , OpenJPAStateManager sm ) { } private static class ManagedCache { private final Map _main ; private Map _conflicts = null ; private Map _news = null ; private Collection _embeds = null ; public ManagedCache ( Map cache ) { }

Fix:
throw new UnsupportedOperationException ( BrokerImpl . _loc . get ( "new-abstract" , cls ) . getMessage ( ) ) ;