diff -r c3999bec8b2c -r da701d422d2c jdk/src/share/classes/java/text/RuleBasedBreakIterator.java --- a/jdk/src/share/classes/java/text/RuleBasedBreakIterator.java Thu May 24 10:20:28 2012 -0400 +++ b/jdk/src/share/classes/java/text/RuleBasedBreakIterator.java Thu May 24 19:00:16 2012 -0700 @@ -444,9 +444,9 @@ BufferedInputStream is; try { - is = (BufferedInputStream)AccessController.doPrivileged( - new PrivilegedExceptionAction() { - public Object run() throws Exception { + is = AccessController.doPrivileged( + new PrivilegedExceptionAction() { + public BufferedInputStream run() throws Exception { return new BufferedInputStream(getClass().getResourceAsStream("/sun/text/resources/" + datafile)); } }