Commit Graph

8220 Commits

Author SHA1 Message Date
Pavel V. Talanov bdec46ac27 Cosmetics in JavaInnerClassResolver 2012-10-15 21:04:42 +04:00
Pavel V. Talanov 7693d99d1a Remove unused dependencies from JavaDescriptorResolver 2012-10-15 21:04:41 +04:00
Pavel V. Talanov 340e8d0b28 Rename: *Resolver classes to Java*Resolver
Regenerate injectors
2012-10-15 21:04:40 +04:00
Pavel V. Talanov 0aeb756f98 Refactor JavaDescriptorResolver and *Resolver classes to use DI for dependency management 2012-10-15 21:04:39 +04:00
Pavel V. Talanov 0f3c2f9fca Rename: AnnotationResolver -> JavaAnnotationResolver 2012-10-15 21:04:38 +04:00
Pavel V. Talanov e795eeb3f7 Few nullable annotations added in *Resolver classes 2012-10-15 21:04:37 +04:00
Nikolay Krasko a1f23597d2 Clean up function bracket insertion algorithm
- Rename methods
- Correct variables names
- Fix algo for searching open bracket
2012-10-15 20:45:36 +04:00
Nikolay Krasko 440f781a93 Insert one additional space for function literals 2012-10-15 20:45:35 +04:00
Nikolay Krasko ef7ed937c1 Cache getting qualified name for package expression 2012-10-15 20:45:34 +04:00
Leonid Shalupov 7d292c62e0 ReadMe: install -> package 2012-10-15 16:15:38 +04:00
Andrey Breslav f27896ee56 Better checking for isMavenModule() 2012-10-15 14:59:40 +04:00
Leonid Shalupov 1abc62efd9 publish-maven-artifacts: Xmx 2012-10-15 13:44:05 +04:00
Leonid Shalupov 67e8a25023 publish-maven-artifacts: Xmx 2012-10-15 13:42:39 +04:00
Natalia.Ukhorskaya 20352b3810 Highlight references to deprecated things accordingly
#KT-2925 Fixed
2012-10-12 15:23:04 +04:00
Natalia.Ukhorskaya 2f2941fe5b Move NameHighlightingTest to another package 2012-10-12 15:20:40 +04:00
Andrey Breslav a3c50fc751 assert() now works with -ea 2012-10-11 21:08:11 +04:00
Alexander Udalov 8bfb2ddcce Generate bridges for properties declared in constructor
#KT-2926 Fixed
 #KT-2833 Fixed
2012-10-11 17:38:46 +04:00
Alexander Udalov 5bc9291d61 Refactor PropertyCodegen
1) Introduce AsmUtil.getModalityAccessFlag()
2) Inline private methods generateDefaultGetter() and generateDefaultSetter() not
to confuse them with anything else
3) Remove dead code in PropertyCodegen.gen(), assert that it never happens
2012-10-11 17:38:46 +04:00
Natalia.Ukhorskaya 78d22e9f81 KT-2823 TypeCastException has no message
#KT-2823 Fixed
2012-10-11 15:41:49 +04:00
Alexander Udalov a31b748092 JavaElementFinder now correctly finds namespace$src$ classes
No new tests added

 #KT-2839 Fixed
2012-10-10 18:11:11 +04:00
Andrey Breslav ef99474379 Fixing variance in annotations 2012-10-10 16:29:47 +04:00
Andrey Breslav 7068bee3a6 Fix JDK annotations after updating to IntelliJ IDEA EAP 122.519 2012-10-10 15:57:58 +04:00
Andrey Breslav 4e9f166a89 Fix Rhino dependency after updating to IntelliJ IDEA EAP 122.519 2012-10-10 15:57:36 +04:00
Andrey Breslav 23f98f81b9 Update to IntelliJ IDEA EAP 122.519 2012-10-10 15:56:58 +04:00
Nikolay Krasko 5b4bf7036d Default value string for field annotation 2012-10-10 12:59:19 +04:00
Andrey Breslav c0af93f237 orEmpty() for Array<T> fixed 2012-10-09 19:19:24 +04:00
Natalia.Ukhorskaya 6f7b6e4ff3 Use LazyResole to find direct inheritors of class 2012-10-09 19:17:51 +04:00
Nikolay Krasko d257256960 Fix build - remove calling getText()
Call of getText() on class element activated caching for
com.intellij.filetype.decompiler extension point in
KeyedExtensionCollector. This cache wasn't
invalidated on set up JavaWithoutSources tests.
2012-10-09 16:43:33 +04:00
Alexander Udalov e869568196 Generate bridges for property accessors
Use existing FunctionCodegen.generateBridgeIfNeeded() on property getters &
setters

 #KT-2920 Fixed
2012-10-09 16:36:24 +04:00
Andrey Breslav 7d28ee4342 Nullable-specific routines now respect the fact that <T> may be instantiated with a nullable type 2012-10-09 12:58:47 +04:00
James Strachan 8a9485bd5f added a helper method to get the child elements of an Element by name 2012-10-09 09:12:34 +01:00
James Strachan 6a59820de3 added a test case for File.relativePath() along with fixing a bug if you pass the same file as the argument; it should have returned the empty string 2012-10-09 08:36:51 +01:00
Evgeny Gerashchenko 4b5da9dc17 Checking static members in JdkAnnotationsSanityTest. 2012-10-08 22:49:17 +04:00
Evgeny Gerashchenko 543fe8d999 Fixed annotation for Arrays.sort() method and fixed build. 2012-10-08 22:49:17 +04:00
Pavel V. Talanov c609440c2b Move DescriptorSearchRule logic to DescriptorSearchRule class 2012-10-08 21:54:11 +04:00
Pavel V. Talanov 9dd3d584ef Move JavaDescriptorResolverData inner classes to upper level of new data package, remove JavaDescriptorResolverData itself 2012-10-08 21:54:10 +04:00
Pavel V. Talanov ca4ac25819 Move some static fields from JavaDescriptorResolver 2012-10-08 21:54:09 +04:00
Pavel V. Talanov 0b474af1f5 Move namespaceDescriptorCache field to NamespaceResolver from JavaDescriptorResolver 2012-10-08 21:54:08 +04:00
Pavel V. Talanov 3f1f3ba9c1 Move classDescriptorCache field to ClassResolver from JavaDescriptorResolver 2012-10-08 21:54:07 +04:00
Pavel V. Talanov 753247ae3e Get rid of getCompileConstResolver and getAnnotationResolver methods in JavaDescriptorResolver 2012-10-08 21:54:07 +04:00
Pavel V. Talanov fb6fbdfaad Get rid of getClassResolver method in JavaDescriptorResolver 2012-10-08 21:54:06 +04:00
Evgeny Gerashchenko 5bc2422cb0 Failing with compilation error when Java library has wrong @KotlinSignatureAnnotation. 2012-10-08 21:48:54 +04:00
Alexander Udalov 326720afc8 Fix failing build
Add runtime and annotations.jar to classpath when compiling Java in codegen
tests
2012-10-08 21:09:07 +04:00
Nikolay Krasko a145e93ebb Don't repeat full qualified name in error messages for field annotations 2012-10-08 21:07:23 +04:00
Nikolay Krasko d0b41ff153 Check absence of explicit initializer in field annotation 2012-10-08 21:07:22 +04:00
Nikolay Krasko 3a410064be Test for syntax errors in field annotations 2012-10-08 21:07:20 +04:00
Nikolay Krasko 24fc3cc53f More validation checks for field annotations 2012-10-08 21:07:19 +04:00
Nikolay Krasko 6ffd1aceaa Check field signature name 2012-10-08 21:07:19 +04:00
Alexander Udalov c9984c3d06 Generate not-null assertions on method parameters
Intrinsics.checkParameterIsNotNull() gets its caller's class and method names
from the stack trace to render them in an exception message.

Fix codegen tests because now it's now allowed to pass null to non-null
argument in tests
2012-10-08 19:13:20 +04:00
Alexander Udalov 753ae9e550 Add a compiler parameter to generate not-null parameter assertions
Enable/disable assertion generation on parameters in the beginning of
methods accessible from Java
2012-10-08 19:03:36 +04:00