It's also here in former Apache Harmony. http://www.docjar.com/html/api/org/apache/harmony/luni/util/SneakyThrow.java .html
I only know of other ways to do this, but this is sneaky :-) But it's in my opinion a generics bug in combination with suppresswarnings :-) Uwe ----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: [email protected] > -----Original Message----- > From: Michael McCandless [mailto:[email protected]] > Sent: Thursday, March 29, 2012 8:59 PM > To: [email protected] > Subject: Re: [JENKINS] Lucene-Solr-tests-only-3.x - Build # 12908 - Failure > > OK, I committed the sneaky Rethrower to test-framework... > > Mike McCandless > > http://blog.mikemccandless.com > > On Thu, Mar 29, 2012 at 2:42 PM, Michael McCandless > <[email protected]> wrote: > > Hmmm... I'll dig. Though I fixed this already. > > > > Mike McCandless > > > > http://blog.mikemccandless.com > > > > On Thu, Mar 29, 2012 at 2:33 PM, Apache Jenkins Server > > <[email protected]> wrote: > >> Build: > >> https://builds.apache.org/job/Lucene-Solr-tests-only-3.x/12908/ > >> > >> 1 tests failed. > >> REGRESSION: > >> org.apache.lucene.analysis.miscellaneous.PatternAnalyzerTest.testRand > >> omStrings > >> > >> Error Message: > >> java.lang.ArrayIndexOutOfBoundsException: 485 > >> > >> Stack Trace: > >> java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: > >> 485 > >> at > >> > org.apache.lucene.analysis.BaseTokenStreamTestCase.checkRandomData(Ba > >> seTokenStreamTestCase.java:398) > >> at > >> > org.apache.lucene.analysis.BaseTokenStreamTestCase.checkRandomData(Ba > >> seTokenStreamTestCase.java:344) > >> at > >> > org.apache.lucene.analysis.BaseTokenStreamTestCase.checkRandomData(Ba > >> seTokenStreamTestCase.java:300) > >> at > >> org.apache.lucene.analysis.miscellaneous.PatternAnalyzerTest.testRand > >> omStrings(PatternAnalyzerTest.java:155) > >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > >> at > >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. > >> java:57) > >> at > >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces > >> sorImpl.java:43) > >> at java.lang.reflect.Method.invoke(Method.java:616) > >> at > >> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(Framework > >> Method.java:45) > >> at > >> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCal > >> lable.java:15) > >> at > >> > org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMe > >> thod.java:42) > >> at > >> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMet > >> hod.java:20) > >> at > >> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores. > >> java:28) > >> at > >> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.ja > >> va:30) > >> at > >> org.apache.lucene.util.LuceneTestCase$SubclassSetupTeardownRule$1.eva > >> luate(LuceneTestCase.java:630) > >> at > >> org.apache.lucene.util.LuceneTestCase$InternalSetupTeardownRule$1.eva > >> luate(LuceneTestCase.java:536) > >> at > >> org.apache.lucene.util.SystemPropertiesInvariantRule$1.evaluate(Syste > >> mPropertiesInvariantRule.java:67) > >> at > >> org.apache.lucene.util.LuceneTestCase$TestResultInterceptorRule$1.eva > >> luate(LuceneTestCase.java:457) > >> at > >> org.apache.lucene.util.UncaughtExceptionsRule$1.evaluate(UncaughtExce > >> ptionsRule.java:74) > >> at > >> > org.apache.lucene.util.LuceneTestCase$SaveThreadAndTestNameRule$1.eva > >> luate(LuceneTestCase.java:508) > >> at org.junit.rules.RunRules.evaluate(RunRules.java:18) > >> at > >> org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263) > >> at > >> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRun > >> ner.java:68) > >> at > >> org.apache.lucene.util.LuceneTestCaseRunner.runChild(LuceneTestCaseRu > >> nner.java:146) > >> at > >> org.apache.lucene.util.LuceneTestCaseRunner.runChild(LuceneTestCaseRu > >> nner.java:50) > >> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231) > >> at > >> org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60) > >> at > >> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229) > >> at > >> org.junit.runners.ParentRunner.access$000(ParentRunner.java:50) > >> at > >> org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222) > >> at > >> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores. > >> java:28) > >> at > >> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.ja > >> va:30) > >> at > >> org.apache.lucene.util.UncaughtExceptionsRule$1.evaluate(UncaughtExce > >> ptionsRule.java:74) > >> at > >> org.apache.lucene.util.StoreClassNameRule$1.evaluate(StoreClassNameRu > >> le.java:36) > >> at > >> org.apache.lucene.util.SystemPropertiesInvariantRule$1.evaluate(Syste > >> mPropertiesInvariantRule.java:67) > >> at org.junit.rules.RunRules.evaluate(RunRules.java:18) > >> at org.junit.runners.ParentRunner.run(ParentRunner.java:300) > >> at > >> junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:39) > >> at > >> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUni > >> tTestRunner.java:420) > >> at > >> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(J > >> UnitTestRunner.java:911) > >> at > >> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUn > >> itTestRunner.java:743) Caused by: > >> java.lang.ArrayIndexOutOfBoundsException: 485 > >> at > >> java.text.RuleBasedBreakIterator.lookupBackwardState(RuleBasedBreakIt > >> erator.java:1021) > >> at > >> java.text.RuleBasedBreakIterator.handlePrevious(RuleBasedBreakIterato > >> r.java:972) > >> at > >> java.text.RuleBasedBreakIterator.following(RuleBasedBreakIterator.jav > >> a:770) > >> at > >> java.text.RuleBasedBreakIterator.isBoundary(RuleBasedBreakIterator.ja > >> va:811) > >> at > >> java.lang.ConditionalSpecialCasing.isFinalCased(ConditionalSpecialCas > >> ing.java:206) > >> at > >> java.lang.ConditionalSpecialCasing.isConditionMet(ConditionalSpecialC > >> asing.java:171) > >> at > >> java.lang.ConditionalSpecialCasing.lookUpTable(ConditionalSpecialCasi > >> ng.java:158) > >> at > >> java.lang.ConditionalSpecialCasing.toLowerCaseEx(ConditionalSpecialCa > >> sing.java:107) > >> at java.lang.String.toLowerCase(String.java:2453) > >> at > >> org.apache.lucene.analysis.miscellaneous.PatternAnalyzer$PatternToken > >> izer.incrementToken(PatternAnalyzer.java:361) > >> at > >> org.apache.lucene.analysis.FilteringTokenFilter.incrementToken(Filter > >> ingTokenFilter.java:49) > >> at > >> org.apache.lucene.analysis.BaseTokenStreamTestCase.checkAnalysisConsi > >> stency(BaseTokenStreamTestCase.java:427) > >> at > >> > org.apache.lucene.analysis.BaseTokenStreamTestCase.checkRandomData(Ba > >> seTokenStreamTestCase.java:395) > >> ... 40 more > >> > >> > >> > >> > >> Build Log (for compile errors): > >> [...truncated 11440 lines...] > >> > >> > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [email protected] For > >> additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] For additional > commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
