Re: svn commit: r1412989 - /lucene/dev/branches/branch_4x/lucene/analysis/common/src/test/org/apache/lucene/analysis/miscellaneous/PatternAnalyzerTest.java

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r1412989 - /lucene/dev/branches/branch_4x/lucene/analysis/common/src/test/org/apache/lucene/analysis/miscellaneous/PatternAnalyzerTest.java

Robert Muir-2
what version of jdk8 are we using? This bug is supposedly already fixed:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7104012

On Fri, Nov 23, 2012 at 9:19 AM, <[hidden email]> wrote:
Author: rmuir
Date: Fri Nov 23 17:19:48 2012
New Revision: 1412989

URL: http://svn.apache.org/viewvc?rev=1412989&view=rev
Log:
also detect sun bug #7104012 in jdk8

Modified:
    lucene/dev/branches/branch_4x/lucene/analysis/common/src/test/org/apache/lucene/analysis/miscellaneous/PatternAnalyzerTest.java

Modified: lucene/dev/branches/branch_4x/lucene/analysis/common/src/test/org/apache/lucene/analysis/miscellaneous/PatternAnalyzerTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/analysis/common/src/test/org/apache/lucene/analysis/miscellaneous/PatternAnalyzerTest.java?rev=1412989&r1=1412988&r2=1412989&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/lucene/analysis/common/src/test/org/apache/lucene/analysis/miscellaneous/PatternAnalyzerTest.java (original)
+++ lucene/dev/branches/branch_4x/lucene/analysis/common/src/test/org/apache/lucene/analysis/miscellaneous/PatternAnalyzerTest.java Fri Nov 23 17:19:48 2012
@@ -171,7 +171,8 @@ public class PatternAnalyzerTest extends
     }
     StackTraceElement trace[] = t.getStackTrace();
     for (StackTraceElement st : trace) {
-      if ("java.text.RuleBasedBreakIterator".equals(st.getClassName())
+      if ("java.text.RuleBasedBreakIterator".equals(st.getClassName()) ||
+          "sun.util.locale.provider.RuleBasedBreakIterator".equals(st.getClassName())
           && "lookupBackwardState".equals(st.getMethodName())) {
         return true;
       }