Commit Graph

20222 Commits

Author SHA1 Message Date
Pavel V. Talanov c29ba63a74 Minor: Simplify getClassObjectType() 2015-02-16 15:38:27 +03:00
Pavel V. Talanov 0343fd8fc7 Rework class objects
Class objects have name "Default" by default
Do not produce synthetic class objects
Class objects have new semantics:
    class "A" has class object "B" if literal "A" can be used as a value of type "B"
Class objects act like ordinary nested objects
    i.e. are accessible from class scope via getClassifier()
Jvm backend: class object fields and class have the name of class object ("Default")
	as opposed to special "OBJECT$" and "object"
Serialization: only the name of class object is needed to serialize data
2015-02-16 15:38:27 +03:00
Evgeny Gerashchenko 4b6112d380 Fixed compilation. Some class files generated by kotlinc may have no annotation (that should be fixed later). 2015-02-16 15:34:35 +03:00
Evgeny Gerashchenko dd89311d22 Not reading class file three times incremental caches. 2015-02-13 21:51:51 +03:00
Evgeny Gerashchenko 3c410aab5b Updated source roots of idea libraries. 2015-02-13 21:51:51 +03:00
Evgeny Gerashchenko 7ed36f08e6 Moved cli-common before idea-full. cli-common exports dependency on cli-parser library of version different from packaged in idea-full. 2015-02-13 21:51:51 +03:00
Evgeny Gerashchenko 9f159b1fea Extracted cli-parser to separate library. Removed full dependency jps-plugin -> idea-full. 2015-02-13 21:51:50 +03:00
Evgeny Gerashchenko 1f10cbb0d5 Moved constant to idea module and removed redundant dependency. 2015-02-13 21:51:50 +03:00
Evgeny Gerashchenko 1484ce4a46 Renamed and moved module ide-compiler-runner to idea-jps-common.
Motivation: it has only a bunch of constants and a trivial class needed in idea and jps modules.
2015-02-13 21:51:50 +03:00
Evgeny Gerashchenko bca8711182 Removed redundant dependencies. 2015-02-13 21:51:50 +03:00
Evgeny Gerashchenko 6d9240c52f Minor. Simplified by subclassing from abstract class. 2015-02-13 21:51:50 +03:00
Evgeny Gerashchenko cdf29fb2f6 Removed old migration code for incremental compilation setting. 2015-02-13 21:51:49 +03:00
Evgeny Gerashchenko 3e1b869070 Moved parts of ide-compiler-runner to direct modules. 2015-02-13 21:51:49 +03:00
Nikolay Krasko 0f3971323f Go to Declaration does not work on usage of constant from class object in Java (KT-6172)
#KT-6172 Fixed
2015-02-13 20:28:51 +03:00
Nikolay Krasko 56c2870ac6 Refactoring: make parameters not-null 2015-02-13 20:28:50 +03:00
Nikolay Krasko 52f1c4048a More test for conflicting declarations with delegation 2015-02-13 20:28:50 +03:00
Zalim Bashorov a851c406b4 Minor: specify maxmemory for new-kotlinc explicitly to avoid run VM with default values which sometimes leads to fail build. 2015-02-13 19:07:51 +03:00
Zalim Bashorov 905ce426c7 IDEA: don't try to create run configuration by JUnit and TestNG producers for Kotlin JS modules. 2015-02-13 19:03:01 +03:00
Evgeny Gerashchenko 4704941488 Worked around yet another case of exception from inspection when code has "native" annotation.
#KT-6764 fixed
2015-02-13 18:10:54 +03:00
Valentin Kipyatkov d579e4906b Minor changes after code review 2015-02-12 19:47:25 +03:00
Valentin Kipyatkov dd0664939c Commented out 3 tests to be fixed later 2015-02-12 19:47:11 +03:00
Valentin Kipyatkov ce26437cd0 Corrected test data because it will be fixed by KT-6545 2015-02-12 18:18:07 +03:00
Valentin Kipyatkov d2f11cdc05 Fixed test data which was incorrect (no nested classes inside inner class allowed!) 2015-02-12 18:18:06 +03:00
Valentin Kipyatkov 3710d4105c Do not shorten too much 2015-02-12 18:18:06 +03:00
Valentin Kipyatkov 78d927c3c3 Added TODO 2015-02-12 18:18:06 +03:00
Valentin Kipyatkov 49e6b97752 Fixed important bug in reference shortening 2015-02-12 18:18:05 +03:00
Valentin Kipyatkov 6acba00599 Working on new imports insertion on copy/paste 2015-02-12 18:18:05 +03:00
Valentin Kipyatkov 4031357ae4 Dropped class object 2015-02-12 18:18:05 +03:00
Valentin Kipyatkov 2e275e7624 Removed useless nested object 2015-02-12 18:18:04 +03:00
Valentin Kipyatkov 25f4987299 Minor code improvements 2015-02-12 18:18:04 +03:00
Valentin Kipyatkov b4a8be4a7e No skipping of super and this expression on copy/paste needed (probably has been copied from java version before) 2015-02-12 18:18:03 +03:00
Valentin Kipyatkov 1912f5b919 writeImportToFile removed from interface 2015-02-12 18:18:03 +03:00
Valentin Kipyatkov 2d6ed5dd42 One more usage switched to use of new import insertion method 2015-02-12 18:18:03 +03:00
Valentin Kipyatkov 2d4b1d9219 Switched to use of new import insertion API in a test (but had to use a hack!) 2015-02-12 18:18:02 +03:00
Valentin Kipyatkov 8a64f7ae84 Removed utility not needed anymore 2015-02-12 18:18:02 +03:00
Valentin Kipyatkov b091eaa3cd Fixed KT-2483 "Add import" quick fix offers adding import to non-API class
#KT-2483 Fixed
2015-02-12 18:18:02 +03:00
Valentin Kipyatkov 546836d5dd Fixed bug with importing some of SAM-constructors and factory functions
#KT-3449 Fixed
2015-02-12 18:18:01 +03:00
Valentin Kipyatkov 2c5953dbe6 Dropped confusing method signature 2015-02-12 17:34:51 +03:00
Valentin Kipyatkov e57799ca00 KT-3521 Import suggestions icons are always classes
#KT-3521 Fixed
2015-02-12 17:34:51 +03:00
Valentin Kipyatkov 8f7cf38e67 Switched to use of new method for import insertion 2015-02-12 17:34:51 +03:00
Valentin Kipyatkov 20c62a2835 *-imports inserted by default in non-test mode 2015-02-12 17:34:50 +03:00
Valentin Kipyatkov 4fff1f44bb Fixed bug in import insertion: it did not work with descriptors taken before modifications 2015-02-12 17:34:50 +03:00
Natalia Ukhorskaya 7a4b291c85 Debugger: implement compiling evaluator 2015-02-12 12:16:48 +03:00
Natalia Ukhorskaya 91e745704a Debugger: temporary copy some utils functions from idea 2015-02-12 12:16:47 +03:00
Natalia Ukhorskaya 3864f182da Debugger: return void value for empty code fragment 2015-02-12 12:16:46 +03:00
Natalia Ukhorskaya 187806d061 Debugger: remove usage of JDIEval during finding local variable in frame because it invokeMethod (loadClass) for find field type which invalidates frame 2015-02-12 12:16:46 +03:00
Natalia Ukhorskaya 3802957c15 Debugger: add tests for accessing outer class members from lambda inside inner class 2015-02-12 12:16:45 +03:00
Evgeny Gerashchenko d3d30106a4 Corrected updating Java mappings for package facade classes. We report all source files for it, not only currently compiled. 2015-02-11 19:19:55 +03:00
Evgeny Gerashchenko 1a486bf969 Reverted wrong test data for tests where files are added to package. Let them fail. 2015-02-11 19:19:55 +03:00
Evgeny Gerashchenko 02faa02a35 Checking Java mappings after rebuild (failing now for partially compiled package facades) 2015-02-11 19:19:55 +03:00