Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[test] reproduce jruby/jruby#7730 #65

Merged
merged 1 commit into from
Sep 6, 2023
Merged

Conversation

kares
Copy link
Member

@kares kares commented May 3, 2023

just a reproducer/test for: jruby/jruby#7730 ... currently was failing as:

Pattern: Pattern: [/ab/] Str: ["𝑍 ab"] Encoding: [UTF-8] Option: [IGNORECASE] Syntax: [TEST]
java.lang.ArrayIndexOutOfBoundsException: Index -3 out of bounds for length 7
	at org.jruby.jcodings@1.0.58/org.jcodings.specific.BaseUTF8Encoding.mbcCaseFold(BaseUTF8Encoding.java:154)
	at org.jruby.jcodings@1.0.58/org.jcodings.specific.UTF8Encoding.mbcCaseFold(UTF8Encoding.java:22)
	at org.jruby.joni/org.joni.Search.lowerCaseMatch(Search.java:42)
	at org.jruby.joni/org.joni.Search.access$000(Search.java:27)
	at org.jruby.joni/org.joni.Search$11.search(Search.java:439)
	at org.jruby.joni/org.joni.Matcher.forwardSearchRange(Matcher.java:139)
	at org.jruby.joni/org.joni.Matcher.searchCommon(Matcher.java:447)
	at org.jruby.joni/org.joni.Matcher.searchInterruptible(Matcher.java:322)
	at org.jruby.joni/org.joni.test.Test.check(Test.java:148)
	at org.jruby.joni/org.joni.test.Test.xx(Test.java:140)
	at org.jruby.joni/org.joni.test.Test.xx(Test.java:114)
	at org.jruby.joni/org.joni.test.Test.x2s(Test.java:237)
	at org.jruby.joni/org.joni.test.Test.x2s(Test.java:232)
	at org.jruby.joni/org.joni.test.TestCaseInsensitive.test(TestCaseInsensitive.java:30)
	at org.jruby.joni/org.joni.test.Test.testRegexp(Test.java:287)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)
	at com.intellij.rt.junit.IdeaTestRunner$Repeater$1.execute(IdeaTestRunner.java:38)
	at com.intellij.rt.execution.junit.TestsRepeater.repeat(TestsRepeater.java:11)
	at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:35)
	at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:235)
	at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:54)
SEVERE ERROR: Index -3 out of bounds for length 7
RESULT   SUCC: 1,  FAIL: 0,  ERROR: 1 Test: TestCaseInsensitive, Encoding: UTF-8

@kares kares requested a review from enebo September 6, 2023 09:48
@enebo enebo merged commit d4696c4 into jruby:master Sep 6, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants