public String getStringWithFallback ( String path ) throws MissingResourceException { // Optimized form of getWithFallback(path).getString(); ICUResourceBundle actualBundle = this ; String result = findStringWithFallback ( path , actualBundle , null ) ; if ( result == null ) { throw new MissingResourceException ( "Can't find resource for bundle " + this . getClass ( ) . getName ( ) + ", key " + getType ( ) , path , getKey ( ) ) ; } if ( result . equals ( NO_INHERITANCE_MARKER ) ) { throw new MissingResourceException ( "Encountered NO_INHERITANCE_MARKER" , path , getKey ( ) ) ; } return result ; }
will throw type mismatch exception if the resource is not a string