Buggy code:
public class SolrConfig extends Config { public static final Logger log = LoggerFactory . getLogger ( SolrConfig . class ) ; public static final String DEFAULT_CONF_FILE = "solrconfig.xml" ; @ Deprecated public static SolrConfig config = null ; public static final Collection < Throwable > severeErrors = new HashSet < Throwable > ( ) ; public SolrConfig ( ) throws IOException , ParserConfigurationException , SAXException { } public SolrConfig ( String name ) throws IOException , ParserConfigurationException , SAXException { } public SolrConfig ( String name , InputStream is ) throws IOException , ParserConfigurationException , SAXException { } public SolrConfig ( String instanceDir , String name , InputStream is ) throws IOException , ParserConfigurationException , SAXException { } SolrConfig ( SolrResourceLoader loader , String name , InputStream is ) throws IOException , ParserConfigurationException , SAXException { } protected SolrConfig . UpdateHandlerInfo loadUpdatehandlerInfo ( ) { } private void loadPluginInfo ( Class clazz , String tag , boolean requireName , boolean requireClass ) { } public List < PluginInfo > readPluginInfos ( String tag , boolean requireName , boolean requireClass ) { } public final int booleanQueryMaxClauseCount ; public final boolean filtOptEnabled ; public final int filtOptCacheSize ; public final float filtOptThreshold ; public final CacheConfig filterCacheConfig ; public final CacheConfig queryResultCacheConfig ; public final CacheConfig documentCacheConfig ; public final CacheConfig fieldValueCacheConfig ; public final CacheConfig [ ] userCacheConfigs ; public final boolean useFilterForSortedQuery ; public final int queryResultWindowSize ; public final int queryResultMaxDocsCached ; public final boolean enableLazyFieldLoading ; public final boolean reopenReaders ; public final float hashSetInverseLoadFactor ; public final int hashDocSetMaxSize ; public final SolrIndexConfig defaultIndexConfig ; public final SolrIndexConfig mainIndexConfig ; protected SolrConfig . UpdateHandlerInfo updateHandlerInfo ; private Map < String , List < PluginInfo > > pluginStore = new LinkedHashMap < String , List < PluginInfo > > ( ) ; public final int maxWarmingSearchers ; public final boolean unlockOnStartup ; public final boolean useColdSearcher ; public final Version luceneMatchVersion ; protected String dataDir ; public final SolrConfig . JmxConfiguration jmxConfig ; private final SolrConfig . HttpCachingConfig httpCachingConfig ; public SolrConfig . HttpCachingConfig getHttpCachingConfig ( ) { } @ Deprecated private final NamedList pingQueryParams ; private static NamedList readPingQueryParams ( SolrConfig config ) { } @ Deprecated public SolrQueryRequest getPingQueryRequest ( SolrCore core ) { } public static class JmxConfiguration { public boolean enabled = false ; public String agentId ; public String serviceUrl ; public JmxConfiguration ( boolean enabled , String agentId , String serviceUrl ) { } } public static class HttpCachingConfig { private static final String CACHE_PRE = "requestDispatcher//httpCaching//" ; private static final Pattern MAX_AGE = Pattern . compile ( "\\bmax-age=(\\d+)" ) ; public static enum LastModFrom { OPENTIME , DIRLASTMOD , BOGUS ; public static SolrConfig . HttpCachingConfig . LastModFrom parse ( final String s ) { try { <START_BUG> return SolrConfig . HttpCachingConfig . LastModFrom . valueOf ( s . toUpperCase ( ) ) ; <END_BUG> } catch ( Exception e ) { SolrConfig . log . warn ( ( "Unrecognized<seq2seq4repair_space>value<seq2seq4repair_space>for<seq2seq4repair_space>lastModFrom:<seq2seq4repair_space>" + s ) , e ) ; return SolrConfig . HttpCachingConfig . LastModFrom . BOGUS ; } } } private final boolean never304 ; private final String etagSeed ; private final String cacheControlHeader ; private final Long maxAge ; private final SolrConfig . HttpCachingConfig . LastModFrom lastModFrom ; private HttpCachingConfig ( SolrConfig conf ) { } public boolean isNever304 ( ) { } public String getEtagSeed ( ) { } public String getCacheControlHeader ( ) { } public Long getMaxAge ( ) { } public SolrConfig . HttpCachingConfig . LastModFrom getLastModFrom ( ) { } } public static class UpdateHandlerInfo { public final String className ; public final int autoCommmitMaxDocs ; public final int autoCommmitMaxTime ; public final int commitIntervalLowerBound ; public UpdateHandlerInfo ( String className , int autoCommmitMaxDocs , int autoCommmitMaxTime , int commitIntervalLowerBound ) { } } public SolrConfig . UpdateHandlerInfo getUpdateHandlerInfo ( ) { } public String getDataDir ( ) { } public List < PluginInfo > getPluginInfos ( String type ) { } public PluginInfo getPluginInfo ( String type ) { } private void initLibs ( ) { } }

Fix:
return SolrConfig . HttpCachingConfig . LastModFrom . valueOf ( s . toUpperCase ( Locale . ENGLISH ) ) ;