Commit Graph

105 Commits

Author SHA1 Message Date
Dmitry Cherniachenko
5db9ad29c8 Removed setConstType() from is isBoxingCall() to avoid hidden side effect
Const type is now adjusted correctly also when the target is
java.lang.Character or java.lang.Integer
2017-07-10 15:55:32 +03:00
Dmitry Cherniachenko
d382ba2709 Updated TestPrimitives test to match the source 2017-07-10 15:55:32 +03:00
Dmitry Cherniachenko
9e788b09cb Fixed conflicts after recent changes in master 2017-07-10 15:55:32 +03:00
Dmitry Cherniachenko
5f292c415c Removed 'Integer.valueOf()' boxing of literals 2017-07-10 15:55:32 +03:00
Egor.Ushakov
adbf29f8ce IDEA-149077 Default decompiler is chosen for several classes instead of Fernflower - tests 2017-05-10 17:03:48 +03:00
Egor.Ushakov
17d4894848 IDEA-172200 Decompiler switch-on-enum multiple switches in same class generates wrong cases for all but the first switch-on-enum 2017-05-05 13:20:07 +03:00
Egor.Ushakov
bbc76e7cb4 IDEA-127533 int field is displayed as char - show \n etc as chars 2017-05-04 14:41:36 +03:00
Egor.Ushakov
844177d33e IDEA-127533 int field is displayed as char - show only reasonable ascii as chars 2017-05-04 12:53:29 +03:00
Egor.Ushakov
790027c779 test for super default method call 2017-04-28 12:19:11 +03:00
Egor.Ushakov
645b38d638 test for already used var 2017-04-28 12:19:11 +03:00
Egor.Ushakov
4de826363f (byte) type cast in constructor calls 2017-04-27 15:34:31 +03:00
Egor.Ushakov
997a7747d6 more tests (disabled for now) 2017-04-27 15:34:31 +03:00
Egor.Ushakov
e44ba9905e IDEA-127533 int field is displayed as char 2017-04-26 21:13:00 +03:00
Egor.Ushakov
195dabf6e6 test for union types 2017-04-26 20:32:39 +03:00
Egor.Ushakov
478e6896e9 fixed static interface methods 2017-04-26 20:32:39 +03:00
Egor.Ushakov
6a7763922b fixed lambda parameter names already used in the context 2017-04-26 20:32:39 +03:00
Egor.Ushakov
d40f673689 test for class extending a class with a private constructor 2017-04-26 20:32:38 +03:00
Egor.Ushakov
8c440e281c fixed incorrect constructor method reference 2017-04-26 13:57:24 +03:00
Egor.Ushakov
a62cc3f709 IDEA-127499 Decompiler doesn't support switch over enums 2017-04-25 17:42:09 +03:00
Dmitry Cherniachenko
592a24cd85 Fixed tests after rebasing to the latest master 2017-04-24 16:27:20 +03:00
Dmitry Cherniachenko
94198aa8a5 Detect external vararg methods too (if available on the classpath) 2017-04-24 16:27:20 +03:00
Dmitry Cherniachenko
dfd90978c9 Avoid explicit array creation for vararg parameters 2017-04-24 16:27:20 +03:00
Oleg Panashchenko
2a213aa4a0 Use fully qualified static field name in conflict #541 2017-04-24 14:22:41 +03:00
Dmitry Cherniachenko
0a7a60fa7b Add '(byte)' and '(short)' type cast for int literals only in invocation parameters 2017-04-19 11:39:37 +03:00
Dmitry Cherniachenko
7e1cb88fe2 Removed unnecessary boxing of primitive types 2017-04-19 11:39:37 +03:00
Dmitry Cherniachenko
cd1acfa266 IDEA-171459 fix type cast for int literals used as byte / short in decompiled code 2017-04-19 11:39:37 +03:00
Egor.Ushakov
d706718b1b added spaces after if and inside the ternary operator 2017-04-04 17:05:24 +03:00
Egor.Ushakov
e09e303e71 IDEA-169534 Decompiler overuses ternary operation 2017-04-03 17:16:24 +03:00
Egor.Ushakov
f53a873116 IDEA-167346 Do not escape single quote in strings 2017-02-07 17:52:08 +03:00
Egor.Ushakov
45384fb8c5 fixed access to private outer class methods with params 2017-01-23 18:40:08 +03:00
Egor.Ushakov
6713b9c495 test for anonymous class with params 2017-01-17 21:02:20 +03:00
Egor.Ushakov
0684264b3a IDEA-166073 Extended Width (long, double) constructors cause issues with anonymous classes 2017-01-13 17:58:51 +03:00
Egor.Ushakov
5e45e5ac40 IDEA-130708 Incorrect locals names 2017-01-12 16:30:41 +03:00
Egor.Ushakov
cb133af01e IDEA-166363 Support LocalVariableTypeTable attribute 2017-01-10 18:50:16 +03:00
Egor.Ushakov
32693c314a IDEA-149813 Decompiler has lost generic parameter 2017-01-10 12:09:26 +03:00
Egor.Ushakov
fe5260df8a IDEA-166101 Imports Added for Classes in Same Package 2017-01-09 17:59:31 +03:00
Egor.Ushakov
7bdec4ffc7 decompiler: a test for the pull request #394 2016-10-14 18:29:00 +03:00
Egor.Ushakov
ee83b25d1d IDEA-162579 "Unrecognized invocation of <init>" when decompiling kotlin bytecode 2016-10-14 14:41:26 +03:00
Roman Shevchenko
52b31bf325 [java, java-decompiler] type annotations in class files
Step 1: add top-level field/method/parameter annotations to stubs; include them in decompiled text.
2016-04-21 21:22:36 +02:00
Roman Shevchenko
249903478c Cleanup (test data) 2016-04-21 15:49:29 +02:00
Roman Shevchenko
b366de8eb4 [java-decompiler] unneeded cast around byte/short constants 2016-04-20 19:52:25 +02:00
Roman Shevchenko
4a1a747bdc [java-decompiler] fixes indentation in annotations 2016-04-20 17:58:18 +02:00
Roman Shevchenko
eaa61a1f81 [java-decompiler] skips illegal local variable names 2016-04-20 15:02:39 +02:00
Roman Shevchenko
1ac2304d60 [java-decompiler] fixes enum constant initializer decompilation (IDEA-154547) 2016-04-11 21:43:11 +02:00
Egor.Ushakov
404783c874 decompiler: Setup increment/decrement test properly #376 2016-03-29 17:52:59 +03:00
Egor.Ushakov
95215dc2e2 replace increment / decrement synthetic access method, pull-request #373 2016-03-28 14:00:25 +03:00
Alexandru-Constantin Bledea
0e514a6253 fix constructor arguments for extended inner classes 2016-03-19 20:45:28 +02:00
Roman Shevchenko
93a39b7b50 [java-decompiler] test data cleanup; warnings 2016-03-18 18:02:33 +01:00
Alexandru-Constantin Bledea
1359577355 add additional tests for static initializers 2016-03-17 23:15:54 +02:00
Alexandru-Constantin Bledea
06c993b508 correctly decompile interface object fields 2016-03-17 23:07:32 +02:00