Commit Graph

9267 Commits

Author SHA1 Message Date
Nikolay Krasko 44dcdde513 Dispose GeneratedClassLoader 2013-01-22 16:05:23 +04:00
Nikolay Krasko a6c4a36ce5 Remove warnings 2013-01-22 15:53:37 +04:00
Nikolay Krasko 731f2d51f6 Free memory in tearDown() 2013-01-22 15:53:31 +04:00
Natalia.Ukhorskaya 126c21de96 Fix EA-42958 - ISE: FqName.parent 2013-01-22 11:39:49 +04:00
Kirill Berezin e89a8c684f KT-3159 Disallow overriding var with different type #KT-3159 fixed 2013-01-21 15:42:39 -08:00
Michał Sapalski e9613b95ac QuickFix for ELSE_MISPLACED_IN_WHEN. 2013-01-21 22:03:58 +04:00
Jack Zhou 8d71840255 Added QuickFix for redundant type projections. 2013-01-21 21:56:38 +04:00
Andrey Breslav e384d4ec96 Process only those Kotlin files that sit under source/test roots 2013-01-21 09:21:03 -08:00
develar c1772685e9 fix duplication 2013-01-21 21:17:02 +04:00
Evgeny Gerashchenko ca4751653f ability to get text from annotations xml files 2013-01-21 21:16:51 +04:00
Evgeny Gerashchenko 5f6804b6b4 EA-43015 - assert: KotlinSignatureInJavaMarkerProvider.collectSlowLineMarkers (no member name)
Better assertion message.
2013-01-21 20:12:41 +04:00
Evgeny Gerashchenko 191d566fb8 Better assertion message. 2013-01-21 20:12:40 +04:00
Evgeny Gerashchenko bfa20f7156 Supported constructors.
EA-43090 - assert: KotlinSignatureInJavaMarkerProvider.collectSlowLineMarkers (couldn't find descriptor)
2013-01-21 20:12:40 +04:00
Andrey Breslav 6bec3c9366 No line markers for anonymous or local class' methods
#KT-3270 fixed
2013-01-21 20:03:03 +04:00
Andrey Breslav 7362f69a62 Static methods supported 2013-01-21 20:03:02 +04:00
Andrey Breslav 10d971bc7a Extract methods 2013-01-21 20:03:02 +04:00
Natalia.Ukhorskaya 6874ab0ddc Rename parameter 2013-01-21 18:53:18 +04:00
Natalia.Ukhorskaya 9422fea0c4 Mark deprecated as a warning
#KT-3252 Fixed
2013-01-21 16:34:07 +04:00
Natalia.Ukhorskaya d7c8655966 Refactoring in Codegen Tests 2013-01-21 13:26:06 +04:00
Jack Zhou 2f47e30a1a Fixed UnsupportedOperationException when a namespace is used in place of an expression. 2013-01-21 13:10:19 +04:00
Alexander Udalov 54e5b6d476 Regenerate tests 2013-01-21 13:10:00 +04:00
develar 5ba0177af8 jps plugin compiler path must not contains ../kotlinc/lib/kotlin-compiler.jar 2013-01-20 09:36:48 -08:00
Andrey Breslav 4d0baf3e06 No Java2Kotlin converter classes in the compiler 2013-01-19 07:13:24 -08:00
Alexander Udalov 4305a009df Add regression test for KT-2673
#KT-2673 Obsolete
2013-01-18 21:27:07 +04:00
Alexander Udalov ffd62eb80e Refactor ClassGenTest
Initialize environment with JDK_ONLY in setUp(), allowing to quickly launch
tests without compilation of stdlib.

Remove duplicate/unneeded/commented out tests
2013-01-18 18:04:09 +04:00
Alexander Udalov c4a3963925 Fix nested classes codegen bug
When constructing a closure, codegen in some cases incorrectly determined if
it needed to store a reference from a nested class to the outer
2013-01-18 14:59:27 +04:00
Natalia.Ukhorskaya 5c56900a09 Fix maven build: rename namespace class to package class 2013-01-18 12:59:36 +04:00
Nikolay Krasko fb9c4b92c4 Suppress all warnings for generated test classes 2013-01-17 21:05:11 +04:00
Nikolay Krasko 6ce830e999 Add information about unsupported class for label descriptor 2013-01-17 21:05:08 +04:00
Evgeny Gerashchenko 6f2625c7eb KT-3248 Highlight Java members with invalid annotations in IDE
#KT-3248 fixed
2013-01-17 20:01:49 +04:00
Evgeny Gerashchenko d2cddde04e Minor. Casting on higher level. 2013-01-17 19:23:39 +04:00
Evgeny Gerashchenko 7d46affd14 Fixed bug in checking for annotation writablity. 2013-01-17 19:23:39 +04:00
Evgeny Gerashchenko 0f780a84d4 KT-2808 Intention to change existing alternative Kotlin signature
#KT-2808 fixed
2013-01-17 19:23:39 +04:00
Alexander Udalov 05b482e7d5 Ignore unsupported codegen tests for Android 2013-01-17 18:44:24 +04:00
Alexander Udalov 8dff523858 Add some regression tests for obsolete issues
Regenerate tests
2013-01-17 17:38:46 +04:00
Alexander Udalov 3b43d5e874 Additional loadJava/loadKotlin tests for nested classes
#KT-1174 Fixed
2013-01-17 16:45:51 +04:00
Alexander Udalov 192a81591b Resolve qualified nested class expressions
lookupNamespaceType now returns NamespaceType of a scope not only of the
namespace found by name, but also of the classifier static classes scope found
by the same name. This allows correct resolution of expressions
"Class.Nested.member()", where Class comes from Java (previously it was
resolved into a NamespaceDescriptor with a NamespaceType).

NamespaceDescriptor.getNamespaceType() is deleted since there are no sense in
namespace's NamespaceType alone anymore.

Also some minor refactoring (referencedName param is useless)

 #KT-1174 In Progress
2013-01-16 23:11:50 +04:00
Alexander Udalov c4b5577555 Do not report NO_CLASS_OBJECT when namespacesAllowed=true
Now with nested classes the expression "A.something" makes sense even when A
doesn't have a class object ("something" could be a nested class)

Also "A" expression now gets a NamespaceType with the scope of all static
nested classes of A

 #KT-1174 In Progress
2013-01-16 23:11:50 +04:00
Alexander Udalov 85bd41dfa5 Codegen tests for inner/nested classes
#KT-1174 In Progress
2013-01-16 23:11:49 +04:00
Alexander Udalov cc5ba53c80 Support inner/nested classes in JVM back-end
#KT-1174 In Progress
2013-01-16 23:11:48 +04:00
Alexander Udalov 051e94b1c5 Get rid of MutableClassDescriptorLite.isStatic()
isStatic() is now precisely !isInner()
2013-01-16 23:11:48 +04:00
Alexander Udalov b612989eb0 Remove 'inner enum' hack & fix Java inner class resolve
Inner enum was placed into the class object of the outer class. Remove the
hack from frontend, frontend.java & backend. Fix tests

 #KT-1174 In Progress
2013-01-16 23:11:47 +04:00
Alexander Udalov cc6bd6239a Remove unused method 2013-01-16 23:11:46 +04:00
Alexander Udalov 65716431c4 DescriptorRendererImpl now writes 'inner' for inner classes
#KT-1174 In Progress
2013-01-16 23:11:45 +04:00
Alexander Udalov 0b51a6cae0 Disallow nested classes within inner & local classes
#KT-1174 In Progress
2013-01-16 23:11:45 +04:00
Alexander Udalov a0caa88adf Report ILLEGAL_MODIFIER on inappropriate 'inner' keyword usage
#KT-1174 In Progress
2013-01-16 23:11:44 +04:00
Alexander Udalov 0a1907de11 Check all modifiers for objects
DeclarationsChecker didn't check visibility modifiers for objects
2013-01-16 23:11:43 +04:00
Alexander Udalov 7a3000ccac Forbid usage of outer's generic parameter in nested class
#KT-1174 In Progress
2013-01-16 23:11:42 +04:00
Alexander Udalov 43c37398af Labeled this & super to nested class' outer is an error
#KT-1174 In Progress
2013-01-16 23:11:42 +04:00
Alexander Udalov 5d92453532 Inaccessible outer class member is now an error
#KT-1174 In Progress
2013-01-16 23:11:41 +04:00