Support transient, strictfp and synchronized flags

#KT-4377 Fixed
This commit is contained in:
Andrey Breslav
2014-06-17 20:17:10 +04:00
parent f2bc26888c
commit 512e4cb75e
10 changed files with 111 additions and 20 deletions
-3
View File
@@ -24,9 +24,6 @@ public annotation class throws(vararg val exceptionClasses: Class<out Throwable>
[Intrinsic("kotlin.javaClass.function")] fun <reified T> javaClass() : Class<T> = null as Class<T>
Retention(RetentionPolicy.SOURCE)
public annotation class volatile
[Intrinsic("kotlin.synchronized")] public fun <R> synchronized(lock: Any, block: () -> R): R = block()
public fun <T : Annotation> T.annotationType() : Class<out T> =
@@ -0,0 +1,33 @@
/*
* Copyright 2010-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package kotlin.jvm
import java.lang.annotation.Retention
import java.lang.annotation.RetentionPolicy
Retention(RetentionPolicy.SOURCE)
public annotation class volatile
Retention(RetentionPolicy.SOURCE)
public annotation class transient
Retention(RetentionPolicy.SOURCE)
public annotation class strictfp
Retention(RetentionPolicy.SOURCE)
public annotation class synchronized