vishnurajeevan
11/20/2015, 3:17 PMvandalko
11/20/2015, 3:19 PM13:15:08.663 [INFO] [org.gradle.api.internal.tasks.compile.JdkJavaCompiler] Compiling with JDK Java compiler API.
13:15:08.929 [ERROR] [system.err] error: cannot access NonExistentClass
13:15:08.929 [ERROR] [system.err] class file for error.NonExistentClass not found
13:15:08.929 [ERROR] [system.err] Consult the following stack trace for details.
13:15:08.929 [ERROR] [system.err] com.sun.tools.javac.code.Symbol$CompletionFailure: class file for error.NonExistentClass not found
13:15:08.938 [ERROR] [system.err] warning: The following options were not recognized by any processor: '[kapt.kotlin.generated]'
vishnurajeevan
11/20/2015, 3:20 PMkapt {
generateStubs = true
}
vandalko
11/20/2015, 3:20 PMvishnurajeevan
11/20/2015, 3:21 PMvishnurajeevan
11/20/2015, 3:22 PMvishnurajeevan
11/20/2015, 3:22 PMvishnurajeevan
11/20/2015, 3:22 PMvandalko
11/20/2015, 3:28 PMvandalko
11/20/2015, 3:29 PMarkadiy
11/20/2015, 3:36 PMkapt project(':kprocessor')
, I've tried kapt files('libs/kprocessor.jar')
to no extent. Could anyone take a look at the repo and say what I'm doing wrong? https://github.com/arkadiytehgraet/kaptsample
Does kapt
even support this feature?yasyd
11/24/2015, 8:19 AMyasyd
11/24/2015, 8:20 AMkittinunf
11/24/2015, 8:22 AMmplatvoet
11/24/2015, 8:48 AMjkwatson
11/24/2015, 3:37 PMevanchooly
11/24/2015, 3:50 PMkittinunf
11/24/2015, 5:58 PMnatpryce
11/25/2015, 1:25 PM<T,K,V> toMap(toPair: (T)->Pair<K,V>): Map<K,V>
natpryce
11/25/2015, 1:25 PMilya.gorbunov
11/25/2015, 2:07 PMtoMap((T) -> K)
we plan to introduce the former one with key-value pair selector.kirillrakhman
12/01/2015, 12:07 PMkotlin.test.assertFailsWith
doc says "Since inline method doesn't allow to trace where it was invoked, it is required to pass a [message] to distinguish this method call from others." That's not true anymore, is it?ilya.gorbunov
12/01/2015, 1:23 PMassertFailsWith
fails (i.e. function being tested doesn't throw expected exception) it throws assertion exception from its body. In the stack trace of this exception you'll get line number in the file where assertFailsWith is defined, and not where it was called.voddan
12/01/2015, 6:28 PMassertFailsWith
? In the green path the code inside the assertion throws an exception, which is very expensive (on jvm or anywhere else). Why would I care to inline everything else around, when a call invocation is cheaper than throw
?voddan
12/01/2015, 6:28 PMilya.gorbunov
12/01/2015, 6:30 PMvoddan
12/01/2015, 6:34 PMstdlib
. Thank youvoddan
12/01/2015, 7:26 PMautoreified T
, which would automatically pass an additional java parameter KClass<T>
without any Kotlin code needed?ilya.gorbunov
12/01/2015, 7:29 PMKClass<T>
parameter to be T::class
. This default value could be available when T is known on call-site at compile time, otherwise explicit KClass would be required.voddan
12/01/2015, 7:38 PM