Title: ClassNotFoundException on lambda expression inside the method · Issue #1035 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: ClassNotFoundException on lambda expression inside the method · Issue #1035 · UnitTestBot/UTBotJava
X Title: ClassNotFoundException on lambda expression inside the method · Issue #1035 · UnitTestBot/UTBotJava
Description: Description ClassNotFoundException is thrown on concrete execution of a method with lambda expression producing an anonymous class inside. To Reproduce Run a project in IntelliJ Idea 2022.1.4 with one of the latest plugin builds from mai...
Open Graph Description: Description ClassNotFoundException is thrown on concrete execution of a method with lambda expression producing an anonymous class inside. To Reproduce Run a project in IntelliJ Idea 2022.1.4 with ...
X Description: Description ClassNotFoundException is thrown on concrete execution of a method with lambda expression producing an anonymous class inside. To Reproduce Run a project in IntelliJ Idea 2022.1.4 with ...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/issues/1035
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ClassNotFoundException on lambda expression inside the method","articleBody":"**Description**\r\n\r\nClassNotFoundException is thrown on concrete execution of a method with lambda expression producing an anonymous class inside.\r\n\r\n**To Reproduce**\r\n\r\n1. Run a project in IntelliJ Idea 2022.1.4 with one of the latest plugin builds from main branch \r\n2. Add the following code:\r\n\r\n```java\r\npublic class A {\r\n\r\n public interface Driver {\r\n public int getNumber(int n);\r\n }\r\n\r\n public Driver getDriver() {\r\n return n -\u003e 2 * n - 1 ;\r\n }\r\n}\r\n```\r\n3. Use plugin to generate tests for getDriver() method.\r\n4. Open the generated test\r\n\r\n**Expected behavior**\r\n\r\nTests are supposed to be generated without errors.\r\n\r\n**Actual behavior**\r\n\r\nThere is an error test with concrete execution failed.\r\n\r\n**Visual proofs (screenshots, logs, images)**\r\n\r\n~~~java\r\n ///region Errors report for getDriver\r\n\r\n public void testGetDriver_errors() {\r\n // Couldn't generate some tests. List of errors:\r\n // \r\n // 1 occurrences of:\r\n // Default concrete execution failed\r\n\r\n }\r\n ///endregion\r\n~~~\r\n\r\n\u003cdetails\u003e\r\n\u003csummary\u003eConcrete execution log - expand for details\u003c/summary\u003e\r\n16:44:01.974 ERROR| java.lang.ClassNotFoundException: A$$Lambda$15/993989412\r\n\tat java.net.URLClassLoader.findClass(URLClassLoader.java:387)\r\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:418)\r\n\tat org.utbot.instrumentation.process.HandlerClassesLoader.loadClass(ChildProcess.kt:63)\r\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:351)\r\n\tat org.utbot.framework.plugin.api.util.IdUtilKt.getJClass(IdUtil.kt:100)\r\n\tat org.utbot.framework.concrete.UtAssembleModelConstructorsKt.findUtAssembleModelConstructor(UtAssembleModelConstructors.kt:91)\r\n\tat org.utbot.framework.concrete.UtModelConstructor.tryConstructUtAssembleModel(UtModelConstructor.kt:256)\r\n\tat org.utbot.framework.concrete.UtModelConstructor.constructFromAny(UtModelConstructor.kt:247)\r\n\tat org.utbot.framework.concrete.UtModelConstructor.construct(UtModelConstructor.kt:114)\r\n\tat org.utbot.framework.concrete.UtExecutionInstrumentation$invoke$1$1$concreteExecutionResult$1.invoke(UtExecutionInstrumentation.kt:197)\r\n\tat org.utbot.framework.concrete.UtExecutionInstrumentation$invoke$1$1$concreteExecutionResult$1.invoke(UtExecutionInstrumentation.kt:176)\r\n\tat org.utbot.framework.concrete.UtExecutionInstrumentation.withStaticFields(UtExecutionInstrumentation.kt:313)\r\n\tat org.utbot.framework.concrete.UtExecutionInstrumentation.invoke(UtExecutionInstrumentation.kt:176)\r\n\tat org.utbot.framework.concrete.UtExecutionInstrumentation.invoke(UtExecutionInstrumentation.kt:118)\r\n\tat org.utbot.instrumentation.process.ChildProcessKt$setup$2.invoke(ChildProcess.kt:211)\r\n\tat org.utbot.instrumentation.process.ChildProcessKt$setup$2.invoke(ChildProcess.kt:208)\r\n\tat org.utbot.instrumentation.process.ChildProcessKt$measureExecutionForTermination$2$1$1.invoke(ChildProcess.kt:190)\r\n\tat org.utbot.instrumentation.process.ChildProcessKt$measureExecutionForTermination$1.invokeSuspend(ChildProcess.kt:174)\r\n\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)\r\n\tat kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)\r\n\tat kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:284)\r\n\tat kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:85)\r\n\tat kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59)\r\n\tat kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)\r\n\tat kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:38)\r\n\tat kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)\r\n\tat org.utbot.instrumentation.process.ChildProcessKt.measureExecutionForTermination(ChildProcess.kt:171)\r\n\tat org.utbot.instrumentation.process.ChildProcessKt.access$measureExecutionForTermination(ChildProcess.kt:1)\r\n\tat org.utbot.instrumentation.process.ChildProcessKt$measureExecutionForTermination$2$1.invokeSuspend(ChildProcess.kt:188)\r\n\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)\r\n\tat kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)\r\n\tat kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:284)\r\n\tat kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:85)\r\n\tat kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59)\r\n\tat kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)\r\n\tat kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:38)\r\n\tat kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)\r\n\tat org.utbot.instrumentation.process.ChildProcessKt$measureExecutionForTermination$2.invoke(ChildProcess.kt:187)\r\n\tat com.jetbrains.rd.framework.IRdEndpoint$set$1.invoke(TaskInterfaces.kt:182)\r\n\tat com.jetbrains.rd.framework.IRdEndpoint$set$1.invoke(TaskInterfaces.kt:182)\r\n\tat com.jetbrains.rd.framework.impl.RdCall.onWireReceived(RdTask.kt:360)\r\n\tat com.jetbrains.rd.framework.MessageBroker$invoke$2$2.invoke(MessageBroker.kt:57)\r\n\tat com.jetbrains.rd.framework.MessageBroker$invoke$2$2.invoke(MessageBroker.kt:56)\r\n\tat com.jetbrains.rd.framework.impl.ProtocolContexts.readMessageContextAndInvoke(ProtocolContexts.kt:148)\r\n\tat com.jetbrains.rd.framework.MessageBroker$invoke$2.invoke(MessageBroker.kt:56)\r\n\tat com.jetbrains.rd.framework.MessageBroker$invoke$2.invoke(MessageBroker.kt:54)\r\n\tat com.jetbrains.rd.util.threading.SingleThreadSchedulerBase.queue$lambda-3(SingleThreadScheduler.kt:41)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\r\n\tat java.lang.Thread.run(Thread.java:750)\r\n\r\n\u003c/details\u003e\r\n\r\n\r\n**Environment**\r\n\r\nWindows 10 Pro\r\nJDK 8\r\n","author":{"url":"https://github.com/alisevych","@type":"Person","name":"alisevych"},"datePublished":"2022-09-29T14:06:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/1035/UTBotJava/issues/1035"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6e7d4611-7c0b-eeb6-9fc8-1f9a20b666da |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 89F0:158546:1202ABB:16C4431:6991108E |
| html-safe-nonce | a22c03cc1f1cf277511a4ae897e1b9be55313558560115408dd01e32e1a68bf5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OUYwOjE1ODU0NjoxMjAyQUJCOjE2QzQ0MzE6Njk5MTEwOEUiLCJ2aXNpdG9yX2lkIjoiMjIxNzkyNjQ2MDY1OTc5ODE1OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9273b7f9dab2f8f438a56c08350d1438fc4eb3199fa1e1b215e401066464ddb4 |
| hovercard-subject-tag | issue:1390938125 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/UnitTestBot/UTBotJava/1035/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4a5b479c741d04e07cb3c0342800a61703c8eed49063ab86999867421cbfeb5e/UnitTestBot/UTBotJava/issues/1035 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4a5b479c741d04e07cb3c0342800a61703c8eed49063ab86999867421cbfeb5e/UnitTestBot/UTBotJava/issues/1035 |
| og:image:alt | Description ClassNotFoundException is thrown on concrete execution of a method with lambda expression producing an anonymous class inside. To Reproduce Run a project in IntelliJ Idea 2022.1.4 with ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | alisevych |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/UnitTestBot/UTBotJava git https://github.com/UnitTestBot/UTBotJava.git |
| octolytics-dimension-user_id | 87413538 |
| octolytics-dimension-user_login | UnitTestBot |
| octolytics-dimension-repository_id | 480810501 |
| octolytics-dimension-repository_nwo | UnitTestBot/UTBotJava |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 480810501 |
| octolytics-dimension-repository_network_root_nwo | UnitTestBot/UTBotJava |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width