Seems M6.1 breaks many things


#1

1: it compiles, but reports error while running in glassfish:

jaxrs.kt:

public trait RecordsWrapper<T> {   Expose var records:List<T>?   fun toJsonString(recordsJson:String):String }

com.google.gson.annotations.Expose.java:

``

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface Expose {
  public boolean serialize() default true;
  public boolean deserialize() default true;
}

SEVERE: Exception while invoking class com.sun.enterprise.web.WebApplication start method

java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.ClassFormatError: Method records$annotations in class name/my/lib/jaxrs/RecordsWrapper has illegal modifiers: 0x101A

     at com.sun.enterprise.web.WebApplication.start(WebApplication.java:168)

     at org.glassfish.internal.data.EngineRef.start(EngineRef.java:122)

2:  can not compile at all:

if the next two class are defined in the same project , it compiles. But if they are seperated into two maven projects , it can not compile.

[ERROR] java.lang.UnsupportedOperationException      at org.jetbrains.jet.lang.resolve.kotlin.AnnotationDescriptorDeserializer.loadValueParameterAnnotations(AnnotationDescriptorDeserializer.java:463)      at org.jetbrains.jet.descriptors.serialization.DescriptorDeserializer.getAnnotations(DescriptorDeserializer.java:408)      at org.jetbrains.jet.descriptors.serialization.DescriptorDeserializer.valueParameter(DescriptorDeserializer.java:397)      at org.jetbrains.jet.descriptors.serialization.DescriptorDeserializer.valueParameters(DescriptorDeserializer.java:391)      at org.jetbrains.jet.descriptors.serialization.DescriptorDeserializer.loadFunction(DescriptorDeserializer.java:236)      at org.jetbrains.jet.descriptors.serialization.DescriptorDeserializer.loadCallable(DescriptorDeserializer.java:127)

Path("/rs/test{uriOptions:(:[^/]+?)?}/") public open class OrgService() : AbstractEntityService<String>() {   override fun beanType() : Class<String> = javaClass<String>() }
public abstract class AbstractEntityService<T:Any>() {   /**   * The root entity bean type.   */   abstract fun beanType(): Class<T>

  …
}


#2

http://youtrack.jetbrains.com/issue/KT-4072

http://youtrack.jetbrains.com/issue/KT-4073


#3

Could you check if the problems you mentioned are fixed with this build?

(login as guest, if you do not have an account)
http://teamcity.jetbrains.com/viewLog.html?buildId=98502&buildTypeId=bt345&tab=artifacts

Thanks


#4

 

WARNING: Error injecting: org.jetbrains.kotlin.maven.KotlinCompileMojo

java.lang.NoClassDefFoundError: org/jetbrains/jet/cli/common/CompilerArguments

where can I download the latest maven plugin? thanks.


#5

The latest one released is 0.6.800, what version are you using?


#6

Yes, I'm using 0.6.800

[INFO] --- kotlin-maven-plugin:0.6.800:compile (compile) @ myparent ---

Oct 21, 2013 5:33:20 PM org.sonatype.guice.bean.reflect.Logs$JULSink warn

WARNING: Error injecting: org.jetbrains.kotlin.maven.KotlinCompileMojo

java.lang.NoClassDefFoundError: org/jetbrains/jet/cli/common/CompilerArguments

     at java.lang.Class.getDeclaredConstructors0(Native Method)

     at java.lang.Class.privateGetDeclaredConstructors(Class.java:2483)

     at java.lang.Class.getDeclaredConstructors(Class.java:1891)

Only replace kotlin-compiler 0.6.800 with the version where you give me .


#7

Which version of IntelliJ IDEA are you using?


#8

I use maven to compile all projects.

it still can not compile even updated to 0.6.912.   Everything was ok with 0.6.22.

[INFO] Classes directory is /Volumes/Data/home/tony/Downloads/my/mycaweb/target/classes

[INFO] Using kotlin annotations from /Users/tony/.m2/repository/org/jetbrains/kotlin/kotlin-jdk-annotations/0.6.912/kotlin-jdk-annotations-0.6.912.jar

[ERROR] java.lang.UnsupportedOperationException

  at org.jetbrains.jet.lang.resolve.kotlin.AnnotationDescriptorDeserializer.loadValueParameterAnnotations(AnnotationDescriptorDeserializer.java:471)

  at org.jetbrains.jet.descriptors.serialization.DescriptorDeserializer.getAnnotations(DescriptorDeserializer.java:408)

  at org.jetbrains.jet.descriptors.serialization.DescriptorDeserializer.valueParameter(DescriptorDeserializer.java:397)

  at org.jetbrains.jet.descriptors.serialization.DescriptorDeserializer.valueParameters(DescriptorDeserializer.java:391)

  at org.jetbrains.jet.descriptors.serialization.DescriptorDeserializer.loadFunction(DescriptorDeserializer.java:236)

  at org.jetbrains.jet.descriptors.serialization.DescriptorDeserializer.loadCallable(DescriptorDeserializer.java:127)


#9

fixed in 0.6.1070


#10

Thanks for the report and sorry for the inconvenience