[jira] [Comment Edited] (OGNL-226) Race condition with OgnlRuntime.getMethod
[ https://issues.apache.org/jira/browse/OGNL-226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13481339#comment-13481339 ] Johno Crawford edited comment on OGNL-226 at 10/22/12 12:43 PM: Attaching test case, if you run it a few times it should yield the following exception.. Exception in thread main java.lang.AssertionError: expected:true but was:false at org.junit.Assert.fail(Assert.java:93) at org.junit.Assert.failNotEquals(Assert.java:647) at org.junit.Assert.assertEquals(Assert.java:128) at org.junit.Assert.assertEquals(Assert.java:147) at OgnlRuntimeTest.runTest(OgnlRuntimeTest.java:32) at OgnlRuntimeTest.main(OgnlRuntimeTest.java:22) was (Author: johno): Attaching test case, if you run it a few times it should yield the following exception.. {code} Exception in thread main java.lang.AssertionError: expected:true but was:false at org.junit.Assert.fail(Assert.java:93) at org.junit.Assert.failNotEquals(Assert.java:647) at org.junit.Assert.assertEquals(Assert.java:128) at org.junit.Assert.assertEquals(Assert.java:147) at OgnlRuntimeTest.runTest(OgnlRuntimeTest.java:32) at OgnlRuntimeTest.main(OgnlRuntimeTest.java:22) {code} Race condition with OgnlRuntime.getMethod - Key: OGNL-226 URL: https://issues.apache.org/jira/browse/OGNL-226 Project: Commons OGNL Issue Type: Bug Components: Core Runtime Affects Versions: 3.0 Reporter: Johno Crawford Priority: Minor Attachments: OgnlRuntimeTest.java If there are two consecutive calls to OgnlRuntime.getMethod before the result is cached it may erroneously return null. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Comment Edited] (OGNL-226) Race condition with OgnlRuntime.getMethod
[ https://issues.apache.org/jira/browse/OGNL-226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13481339#comment-13481339 ] Johno Crawford edited comment on OGNL-226 at 10/22/12 12:46 PM: Attaching test case, if you run it several times it should yield the following exception (maybe 1 in 15 if you are unlucky).. Exception in thread main java.lang.AssertionError: expected:true but was:false at org.junit.Assert.fail(Assert.java:93) at org.junit.Assert.failNotEquals(Assert.java:647) at org.junit.Assert.assertEquals(Assert.java:128) at org.junit.Assert.assertEquals(Assert.java:147) at OgnlRuntimeTest.runTest(OgnlRuntimeTest.java:32) at OgnlRuntimeTest.main(OgnlRuntimeTest.java:22) was (Author: johno): Attaching test case, if you run it a few times it should yield the following exception.. Exception in thread main java.lang.AssertionError: expected:true but was:false at org.junit.Assert.fail(Assert.java:93) at org.junit.Assert.failNotEquals(Assert.java:647) at org.junit.Assert.assertEquals(Assert.java:128) at org.junit.Assert.assertEquals(Assert.java:147) at OgnlRuntimeTest.runTest(OgnlRuntimeTest.java:32) at OgnlRuntimeTest.main(OgnlRuntimeTest.java:22) Race condition with OgnlRuntime.getMethod - Key: OGNL-226 URL: https://issues.apache.org/jira/browse/OGNL-226 Project: Commons OGNL Issue Type: Bug Components: Core Runtime Affects Versions: 3.0 Reporter: Johno Crawford Priority: Minor Attachments: OgnlRuntimeTest.java If there are two consecutive calls to OgnlRuntime.getMethod before the result is cached it may erroneously return null. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira