Commit Graph

266 Commits

Author SHA1 Message Date
Roman Shevchenko
e7a6ad4826 [java] retiring 'breakgen' DLLs from JVM process proxy (IJPL-16521)
(cherry picked from commit 3789c7f569bc1f220aa9c7524d36ac44a3754cf0)

IJ-CR-155182

GitOrigin-RevId: a7ff75cc9cc1a54c9c1b1628fb7c89f65cf8cf8d
2025-02-18 18:59:32 +00:00
Mikhail Pyltsin
35c774bf7d [java-run] IDEA-365965 Support JEP 495. Filter non-static methods in abstract classes
(cherry picked from commit e96732d810ae6a0f1ffa44a0d5cc11d4c0f50d06)

GitOrigin-RevId: 5c2bb0dc9e19306adfee47c8667c7c3d98b5d064
2025-02-13 14:23:52 +00:00
Sergei Vorobyov
84e0f088dc [Junit|Test] cleanup: use field and method name constants for accessing them by comparison failure
Issues IDEA-359095, IDEA-353644

GitOrigin-RevId: e0f5c5098c3e2b902944cd520f481ba865f28273
2024-10-11 12:39:51 +00:00
Sergei Vorobyov
386665b49e [Junit|Test] fix: use getMethod instead of getDeclaredMethod for accessing public comparison failure data
The getMethod finds public methods in class hierarchy
The getDeclaredMethod finds public and private methods in target class

Issues IDEA-359095, IDEA-353644

GitOrigin-RevId: 772c318f95c561e36018dfbd16cf2f7b62663e94
2024-10-11 12:39:51 +00:00
Vladimir Krivosheev
a9e7930abe bazel - build lang-impl
GitOrigin-RevId: c4c4dce20bd6e4046644f95f6e7b3f437c51668d
2024-09-27 13:47:17 +00:00
Vladimir Krivosheev
a1210118c0 bazel - fix JPMS, exports and internal
GitOrigin-RevId: 3dc80a9ee01e1900c0cebc24b2d08f04f93ddeff
2024-09-25 19:05:37 +00:00
Vladimir Krivosheev
4eb9b78b78 use bazel to build platform-impl
GitOrigin-RevId: b5bbc75323a08c7674777e512dcfd988ceb4461f
2024-09-22 17:01:28 +00:00
Vladimir Krivosheev
834bd75254 run jps-to-bazel by Bazel, compile platform using Bazel
GitOrigin-RevId: 3774d5adc404b02036f70b7cc35c9e60fdb5d84c
2024-09-21 00:54:17 +00:00
Vladimir Krivosheev
8455df53ca build build-scripts using Bazel
GitOrigin-RevId: f6ab74d791f866f567297e20266a7620cddfafae
2024-09-20 01:52:02 +00:00
Egor Ushakov
e8576838b4 [debugger] made invocation helper use method handles
GitOrigin-RevId: 340efd6c3cfacd29266b704ef80f0f9f3e2f3a11
2024-09-18 19:22:28 +00:00
Tagir Valeev
33a3a3d3d9 [java] Less raw types
GitOrigin-RevId: 0bb21ea1ab22c45d79e74e8c839c6b8495a9036a
2024-09-18 12:08:08 +00:00
Egor Ushakov
eac3151e29 IDEA-323195 "Object has been collected" error during breakpoint condition evaluation - method invoker helper prototype
GitOrigin-RevId: 0c00a502ca662d95e7ef7cb1274cf2031793c885
2024-09-13 12:09:42 +00:00
Egor Ushakov
77fef373ad delete obsolete helper
GitOrigin-RevId: 3c741af9d8b539adaf168206fdd62e18cbaa18c7
2024-09-11 16:31:47 +00:00
Vladimir Krivosheev
a8d3822f44 IJPL-159596 descriptors for some platform modules and test libs required for running Rider tests on production classpath
GitOrigin-RevId: d202ec6be7b832a7dbea981e62064102dcea180e
2024-08-02 19:06:31 +00:00
Sergei Vorobyov
1d6d957eba IDEA-355257 [TestFramework] fix: removed usage of the Junit 4 comparison failure inside the ComparisonFailureData
The ComparisonFailureData cannot depend on the Junit 3-5 classes. It should be universal over all Java test frameworks. Also, artifacts for these Junit classes existed only in compile time. That is the reason of hidden class is not found exception.

The deprecated FileComparisonFailure extends the FileComparisonData for two years. This interface is covered by the ComparisonFailureData.createFileComparisonData function. Also, the old one ComparisonFailureData.createFileComparisonFailure converts the FileComparisonFailure using the functions from the FileComparisonData interface. Therefore, we can remove the createFileComparisonFailure function without any functional loose.

Ps. The FileComparisonFailure planned to be removed in IDEA 2025.1 (IJPL-156277).

GitOrigin-RevId: 2aa1967fe0732d2add105020aab56fbc65cb3d6c
2024-07-15 19:24:07 +00:00
Maria Sokolova
039028fe06 [coroutines-debugger]: Fix stepping through and leaving scope coroutines
* Fixed extraction of continuation for `ScopeCoroutine` and moved the computation to the Helper class
* When stepping over the closing bracket of the suspend block -> step out


Merge-request: IJ-MR-136650
Merged-by: Maria Sokolova <maria.sokolova@jetbrains.com>

GitOrigin-RevId: c391c0097530c37d0c2d10fae88df221fffa0fd9
2024-06-14 16:47:27 +00:00
Sergei Vorobyov
8907525bf3 IDEA-354877 [FileComparison] fix: check the full hierarchy of the test exception class
The users can throw the test assertion exception that can be inherited from the default assertion exception classes.

GitOrigin-RevId: 0d6e89002e76a3b30bb2baeec6f7f6a0ac5e5c50
2024-06-13 19:18:49 +00:00
Alexey Merkulov
64f33d4c93 [debugger] Refactoring: remove one time used constants
GitOrigin-RevId: eb131b2b7ea468030dae5e4d44fce7c80e03419f
2024-05-02 19:06:08 +00:00
Alexey Merkulov
a6e921a6e7 [debugger] IDEA-352720 Fix incorrect calling coroutine helper methods
EA-1161927

GitOrigin-RevId: 51c366f2e9640110f0061f26181cf1d3785c316f
2024-05-02 19:06:08 +00:00
Alexey Merkulov
29c8d6287a [debugger] Refactoring: move coroutine helper methods into one class
GitOrigin-RevId: 4fcd76d7d9833a657a38f4d064ec6b792f9b5395
2024-05-02 19:06:08 +00:00
Egor Ushakov
5cf5d1b3d0 [debugger] print more details in exceptions from helper methods
GitOrigin-RevId: bf8b4d2067df69762614b98720f88dea046fed6f
2024-04-26 17:05:20 +00:00
Alexey Merkulov
ccce9c9613 [debugger] IDEA-351125 Pass the thead explicitly to filter the current coroutine
The evaluation may be performed on another thread so Thread.currentThread() better should not be used

GitOrigin-RevId: fdded0d4877c9ee36193f5d2ce082722a2a8264d
2024-04-17 13:32:41 +00:00
Maria Sokolova
cb34736703 [coroutines debugger]: Added more tests for coroutine stepping
* `unsupported` folders contain scenarios that currently behave incorrectly

GitOrigin-RevId: 686d0a5b3d0dd3da1df3592346ca1c4af333f449
2024-04-16 22:02:36 +00:00
Sergei Vorobyov
ff7ac99e21 [JPS|Junit] cleanup: moved test comparison failure detector from the ExpectedPatterns to the ComparisonFailureData
GitOrigin-RevId: e2f4df6c10dfa962339b06382b4d5af210b5132d
2024-04-16 12:36:12 +00:00
Sergei Vorobyov
7455ae279d [JPS|Junit] cleanup: use built-in java Files util instead of direct usage of FileOutputStream
GitOrigin-RevId: 00d8b45438b625854e1336ffc3c1c68d0b9e5cfa
2024-04-16 12:36:01 +00:00
Sergei Vorobyov
e5b9039992 [JPS|Junit] cleanup: added generics for the test failure attributes map
GitOrigin-RevId: e2322b43df46a63135acec765e7a9ec64ded85fb
2024-04-16 12:35:56 +00:00
Sergei Vorobyov
7cb23c16a3 [JPS|Junit] cleanup: suppress deprecation for the deprecated FileComparisonFailure support
GitOrigin-RevId: ece1d48fc1be36ef0f3bc5e3e84bd9c23e8c747a
2024-04-16 12:35:50 +00:00
Sergei Vorobyov
5cd12bd0de [JPS|Junit] cleanup: renamed the filePath property to the expectedFilePath in the ComparisonFailureData
GitOrigin-RevId: d13782b2fbff67943997fffd9b903043e9c6c800
2024-04-16 12:35:45 +00:00
Sergei Vorobyov
c7aa0d58eb IDEA-351860 [JPS|Junit] fix: expected and actual file paths should be passed to the corresponding argument places
GitOrigin-RevId: 2c54accf0955bcf77b780903b563ac889bc57975
2024-04-16 12:35:40 +00:00
Maria Sokolova
f5ffbaa42a [coroutine-debugger]: Removed kotlin-stdlib and coroutines dependencies from intellij.java.rt.iml.
Use simple reflection method calls in the Helper class.

GitOrigin-RevId: d260099c7d459e7afcbb544cd7771a49cb97e838
2024-04-11 20:42:51 +00:00
Maria Sokolova
d37a1c88e7 [coroutine-debugger]: Changed the order of coroutine filters for stepping.
GitOrigin-RevId: 8ee09102af770f28c9f04417433b83e6ec0ee046
2024-04-11 20:42:50 +00:00
Egor Ushakov
5cdcf70555 IDEA-351461 Avoid dependency to kotlin in intellij.java.rt
GitOrigin-RevId: 47de00f563e617874f173f22e4d7a6ba11fd1254
2024-04-11 15:37:46 +00:00
Konstantin Aleev
0d15f1996c [java] IDEA-331042 pass main class to launcher as a vm option
- client application may invoke the main method again as Spring Boot Devtools Restarter does

GitOrigin-RevId: 16ba296c4f59fd4faa7a11487c60fff30679e305
2024-03-03 08:08:16 +01:00
Bart van Helvert
8b3d6afb4a [test] Don't parse expected/actuals for very long messages
The default threshold is 10_000 characters but can be changed by using setting the `idea.expected.message.length.threshold` property key. #IDEA-347460 Fixed

GitOrigin-RevId: 2c5ab995aab90eed2be001a2962bb8a42e984a7a
2024-02-29 11:31:09 +00:00
Maria Sokolova
09f2e12232 [coroutine stepping]: obtain coroutines running on the current thread without evaluation.
[coroutine-stepping]: Temporarily revert evaluation of computing ids of coroutines running on the current thread. Replaced evaluation with a direct call to the method in DebugProbesImpl. Used helper class as a fast path.

Currently, evaluation does not work for K2.


Co-authored-by: Egor Ushakov <Egor.Ushakov@jetbrains.com>


Merge-request: IJ-MR-126011
Merged-by: Maria Sokolova <maria.sokolova@jetbrains.com>

GitOrigin-RevId: 940fdde35b88950ebe535e37d53fe20a1da5906f
2024-02-14 21:11:25 +00:00
Tagir Valeev
d1a8762c10 [java-rt] FileComparisonFailure: dump incorrect file path
GitOrigin-RevId: 788594ddfae494a55a94d845daadcbad51f9dde5
2024-02-02 19:18:09 +00:00
Yuriy Artamonov
0e6d7df032 [ant] IDEA-209972 Move bundled Ant distribution from IDEA/lib directory to Ant plugin
GitOrigin-RevId: 370ca1e34656d8994035ba273f925a2c9b086a9d
2024-01-25 23:50:41 +00:00
Sergei Vorobyov
da28ba9d42 IDEA-341258 [Core|TestFramework] workaround: don't use new methods for FileComparisonFailure
Idea class loader in tests leaks for FileComparisonFailure. It takes FileComparisonFailure from IDE's local installation instead of test module dependency.

GitOrigin-RevId: 94d4867f5a169f1079482844bcaf67440ffa167d
2023-12-18 19:22:16 +00:00
Mikhail Pyltsin
5cb1d206fe [java-execution] IDEA-339923 runnable and gutters for implicit classes
GitOrigin-RevId: 73795451d90cd498aea44d3db7420fdbfc809264
2023-12-14 11:18:41 +00:00
Sergei Vorobyov
fd6fc448aa IDEA-325556 [Platform|TestFramework] fix: value in org.opentest4j.ValueWrapper can be null
GitOrigin-RevId: b64ee94cd7ba79450b0d9265e4a98c9c0df4d3ca
2023-12-01 03:50:14 +00:00
Sergei Vorobyov
35c46c8791 IJ-CR-120449 [TestFramework] rearranged the ComparisonFailureData extractors
In case of Junit 3 and 4, ComparisonFailure extractor is more preferred extractor than Opentest4J

GitOrigin-RevId: 87b05a126d9fe24c49981b8ac3cf55c782103478
2023-11-27 15:24:13 +00:00
Sergei Vorobyov
e8f627c3c2 IJ-CR-120449 [TestFramework] reverted inlining of getActual and getExpected util methods.
Commit with unexpected inlining: 759e88f8ab3a6820aca8e967b2a1783626b7ba86

GitOrigin-RevId: 267a6cd643bcb3db53d98c5b734ac493f7c1b6e8
2023-11-27 15:24:09 +00:00
Sergei Vorobyov
d2042d8131 IDEA-325556 [Platform|TestFramework] new: added FileComparisonFailedError based on opentest4j test frameworks
GitOrigin-RevId: 867b591ffc08bf4bfb7a9b7ab362d4d71c32e86b
2023-11-21 17:27:44 +00:00
Sergei Vorobyov
a2047655a0 IDEA-325556 [Platform|TestFramework] fix: use getExpectedStringPresentation instead of getExpected where we expect text
The return type of `FileComparisonData.getExpected` is `Object`. In `Opentest4j` scenario, it can be FileInfo. So we need to use `FileComparisonData.getExpectedStringPresentation` instead.

GitOrigin-RevId: c32aaf1674072c3c21ccaf447c9d50296a9e38e3
2023-11-21 17:27:43 +00:00
Sergei Vorobyov
56036d3a5e IDEA-325556 [Platform|TestFramework] fix: use FileComparisonFailure explicitly for ignoring an assertion result
GitOrigin-RevId: e888d79e4a67ed8d7e94dd8d2e94078f434ed964
2023-11-21 17:27:41 +00:00
Sergei Vorobyov
9fdbad7448 IDEA-325556 [Platform|TestFramework] new: added support for Opentest4j assertion with FileInfo in Platform
GitOrigin-RevId: 759e88f8ab3a6820aca8e967b2a1783626b7ba86
2023-11-21 17:27:34 +00:00
Roman Ivanov
2aa38dc112 [java, rt] move instantiation to the branch with instance main
GitOrigin-RevId: 485de3c72dec3e0398168201a58cc209283804fd
2023-10-20 10:42:49 +00:00
Tagir Valeev
7c1afca9d1 [java-runtime] Warnings fixed
GitOrigin-RevId: 612a078152b45c87a582d0620edde1b9c152c67a
2023-10-18 21:15:12 +00:00
Roman Ivanov
198cde3888 [java, rt] select a main method candidate with args
GitOrigin-RevId: 3610747bf559bacd330af8519442417499bbeea0
2023-09-13 11:19:34 +00:00
Roman Ivanov
f2b1eb4b6a [java, rt] simplify and improve error message
GitOrigin-RevId: 3711bda1c1147443fc8318e19eca7ae1888b620e
2023-09-08 10:45:46 +00:00