首页 \ 问答 \ Ceylon模块系统:Guava类不匹配,即使依赖树中只有一个Guava(Ceylon module system: Guava class mismatch even though there's only one Guava in dependencies tree)

Ceylon模块系统:Guava类不匹配,即使依赖树中只有一个Guava(Ceylon module system: Guava class mismatch even though there's only one Guava in dependencies tree)

我通过继承一个将Google Guava Converter作为构造函数参数的来为JSimpleDB(一个持久性库)定义一个适配器:

shared class RoleConverter() extends Converter<Role, String>() {
    shared actual Role doBackward(String? name) {
        "Cannot convert null to role."
        assert (exists name);
        return Role.ofName(name);
    }

    shared actual String doForward(Role? role) {
        return role?.name else "null";
    }
}

shared class RoleType() extends StringEncodedType<Role>(
    javaClass<Role>(),
    0,
    RoleConverter()
) {
}

JSimpleDB默认不导出Guava,所以我添加了以下overrides.xml以确保我的应用程序可以看到正确的类(我没有使用--auto-export-maven-depencies--flat-classpath ) :

<overrides xmlns="http://www.ceylon-lang.org/xsd/overrides">
    <module groupId="org.jsimpledb" artifactId="jsimpledb-coreapi">
        <share groupId="com.google.guava" artifactId="guava" />
    </module>
    <module groupId="org.jsimpledb" artifactId="jsimpledb-main">
        <!-- guava is already shared by jsimpledb-coreapi -->
        <remove groupId="com.google.guava" artifactId="guava" />
        <share groupId="org.jsimpledb" artifactId="jsimpledb-coreapi" />
        <share groupId="org.jsimpledb" artifactId="jsimpledb-util" />
        <share groupId="org.dellroad" artifactId="dellroad-stuff-main" />
    </module>
</overrides>

这导致以下模块层次结构(我的代码在fun.uschool.user.impl ):

模块层次结构

正确的com.google.guava:guava模块应该暴露给我的程序,事实上我可以导入Converter ,但是当我尝试编译上面的代码时,我收到以下错误:

source/fun/uschool/user/impl/userImpl.ceylon:156: error: argument must be assignable to parameter 'arg2' of 'StringEncodedType': 'RoleConverter' is not assignable to 'Converter<Role,String>?'
    RoleConverter()
    ^
source/fun/uschool/user/impl/userImpl.ceylon:153: error: Ceylon backend error: no suitable constructor found for StringEncodedType(no arguments)
shared class RoleType() extends StringEncodedType<Role>(
^
    constructor StringEncodedType.StringEncodedType(Class<Role>,long,Converter<Role,String>) is not applicable
      (actual and formal argument lists differ in length)
    constructor StringEncodedType.StringEncodedType(String,Class<Role>,long,Converter<Role,String>) is not applicable
      (actual and formal argument lists differ in length)
Note: Created module fun.uschool.feature.spi/1.0.0
Note: Created module fun.uschool.user.api/1.0.0
Note: Created module fun.uschool.feature.impl/1.0.0
Note: Created module fun.uschool.user.impl/1.0.0
ceylon compile: There were 2 errors

所以显然错误的com.google.guava:guava导入了,即使模块依赖树中只有1个可见。 如何导入正确的?

这是ceylon info依赖性分析的输出:

$ ceylon info fun.uschool.user.impl/1.0.0 --dependency-depth=all
Namespace:   ceylon
Name:        fun.uschool.user.impl
Version:     1.0.0
Artifacts:   JVM (#8.1), Sources
Available:   On local system
Origin:      /home/ilmoeuro/Asiakirjat/Projektit/youschool/modules
Dependency Tree (up to depth ∞):
  ceylon.buffer/1.3.2
      ceylon.collection/1.3.2
          ceylon.language/1.3.2
      ceylon.interop.java/1.3.2
          shared ceylon.collection/1.3.2 (already imported)
          ceylon.language/1.3.2 (already imported)
          shared java.base/7
      ceylon.language/1.3.2 (already imported)
      java.base/7 (already imported)
  ceylon.interop.java/1.3.2 (already imported)
  ceylon.language/1.3.2 (already imported)
  ceylon.test/1.3.2
      ceylon.collection/1.3.2 (already imported)
      ceylon.file/1.3.2
          ceylon.language/1.3.2 (already imported)
          java.base/7 (already imported)
      ceylon.language/1.3.2 (already imported)
      ceylon.runtime/1.3.2
          shared ceylon.language/1.3.2 (already imported)
          shared com.redhat.ceylon.cli/1.3.2
              shared com.redhat.ceylon.common/1.3.2
                  shared java.base/7 (already imported)
                  java.desktop/7
                  shared java.logging/7
              shared com.redhat.ceylon.module-resolver/1.3.2
                  shared com.redhat.ceylon.common/1.3.2 (already imported)
                  shared com.redhat.ceylon.langtools.classfile/1.3.2
                      shared java.base/7 (already imported)
                  shared com.redhat.ceylon.model/1.3.2
                      shared com.redhat.ceylon.common/1.3.2 (already imported)
                      shared com.redhat.ceylon.langtools.classfile/1.3.2 (already imported)
                      shared java.base/7 (already imported)
                      shared java.logging/7 (already imported)
                  optional com.redhat.ceylon.module-resolver-aether/1.3.2
                  optional com.redhat.ceylon.module-resolver-javascript/1.3.2
                  optional com.redhat.ceylon.module-resolver-webdav/1.3.2
                  shared java.base/7 (already imported)
                  shared java.logging/7 (already imported)
                  javax.jaxws/7
                  javax.script/7
                  shared javax.xml/7
              shared java.base/7 (already imported)
              java.desktop/7 (already imported)
              shared java.logging/7 (already imported)
              shared optional org.tautua.markdownpapers.core/1.2.7
          shared com.redhat.ceylon.common/1.3.2 (already imported)
          shared com.redhat.ceylon.model/1.3.2 (already imported)
          shared com.redhat.ceylon.module-resolver/1.3.2 (already imported)
          com.redhat.ceylon.tool.provider/1.3.2
              ceylon.language/1.3.2 (already imported)
              shared com.redhat.ceylon.cli/1.3.2 (already imported)
              shared com.redhat.ceylon.common/1.3.2 (already imported)
              shared com.redhat.ceylon.compiler.java/1.3.2
                  ceylon.language/1.3.2 (already imported)
                  com.github.rjeschke.txtmark/0.13
                      shared java.base/7 (already imported)
                  shared com.redhat.ceylon.cli/1.3.2 (already imported)
                  shared com.redhat.ceylon.common/1.3.2 (already imported)
                  shared com.redhat.ceylon.langtools.classfile/1.3.2 (already imported)
                  shared com.redhat.ceylon.model/1.3.2 (already imported)
                  shared com.redhat.ceylon.module-resolver/1.3.2 (already imported)
                  shared com.redhat.ceylon.typechecker/1.3.2
                      shared com.redhat.ceylon.common/1.3.2 (already imported)
                      shared com.redhat.ceylon.model/1.3.2 (already imported)
                      shared com.redhat.ceylon.module-resolver/1.3.2 (already imported)
                      shared java.base/7 (already imported)
                      shared org.antlr.runtime/3.4
                          shared java.base/7 (already imported)
                          shared org.antlr.stringtemplate/3.2.1
                              shared java.base/7 (already imported)
                              shared java.desktop/7 (already imported)
                              shared org.antlr.antlr/2.7.7
                                  shared java.base/7 (already imported)
                                  shared java.desktop/7 (already imported)
                  shared java.base/7 (already imported)
                  shared java.compiler/7
                  java.desktop/7 (already imported)
                  java.logging/7 (already imported)
                  java.prefs/7
                  shared javax.xml/7 (already imported)
                  oracle.jdk.base/7
                  shared org.antlr.runtime/3.4 (already imported)
              com.redhat.ceylon.compiler.js/1.3.2
                  ceylon.language/1.3.2 (already imported)
                  shared com.redhat.ceylon.cli/1.3.2 (already imported)
                  shared com.redhat.ceylon.common/1.3.2 (already imported)
                  shared com.redhat.ceylon.model/1.3.2 (already imported)
                  shared com.redhat.ceylon.module-resolver/1.3.2 (already imported)
                  com.redhat.ceylon.module-resolver-javascript/1.3.2
                      net.minidev.json-smart/1.1.1
                          shared java.base/7 (already imported)
                  shared com.redhat.ceylon.typechecker/1.3.2 (already imported)
                  shared java.base/7 (already imported)
                  shared java.logging/7 (already imported)
                  net.minidev.json-smart/1.1.1 (already imported)
                  shared org.antlr.runtime/3.4 (already imported)
              com.redhat.ceylon.model/1.3.2 (already imported)
              com.redhat.ceylon.module-loader/1.3.2
                  ceylon.language/1.3.2 (already imported)
                  com.redhat.ceylon.common/1.3.2 (already imported)
                  com.redhat.ceylon.model/1.3.2 (already imported)
                  shared com.redhat.ceylon.module-resolver/1.3.2 (already imported)
                  shared java.base/7 (already imported)
                  optional org.jboss.modules/1.4.4.Final
              shared com.redhat.ceylon.module-resolver/1.3.2 (already imported)
              com.redhat.ceylon.typechecker/1.3.2 (already imported)
              shared java.base/7 (already imported)
              org.jboss.modules/1.4.4.Final
                  shared java.base/7 (already imported)
                  shared java.instrument/7
                  shared java.logging/7 (already imported)
                  java.management/7
                  java.prefs/7 (already imported)
                  shared javax.xml/7 (already imported)
                  oracle.jdk.base/7 (already imported)
          shared java.base/7 (already imported)
          java.compiler/7 (already imported)
          shared java.instrument/7 (already imported)
          javax.xml/7 (already imported)
          org.jboss.logmanager/2.0.3.Final
              shared java.base/7 (already imported)
              shared java.logging/7 (already imported)
              java.management/7 (already imported)
              shared java.tls/7
              optional org.jboss.modules/1.4.4.Final
          shared org.jboss.modules/1.4.4.Final (already imported)
      java.base/7 (already imported)
      org.jboss.modules/1.4.4.Final (already imported)
  shared fun.uschool.feature.impl/1.0.0
      ceylon.buffer/1.3.2 (already imported)
      ceylon.interop.java/1.3.2 (already imported)
      ceylon.language/1.3.2 (already imported)
      shared maven:com.moandjiezana.toml:toml4j/0.7.1
          maven:com.google.code.gson:gson/2.3.1
      shared fun.uschool.feature.spi/1.0.0
          ceylon.language/1.3.2 (already imported)
      shared java.base/8 (already imported other version)
      shared maven:org.jsimpledb:jsimpledb-main/3.5.0
          maven:com.google.code.findbugs:jsr305/3.0.1 PROVIDED
          maven:javax.el:javax.el-api/2.2.5
          maven:javax.validation:validation-api/1.1.0.Final
          maven:log4j:log4j/1.2.17 RUNTIME
              optional maven:javax.mail:mail/1.4.3
              optional maven:org.apache.geronimo.specs:geronimo-jms_1.1_spec/1.0
              maven:org.apache.openejb:javaee-api/5.0-2 PROVIDED
          maven:org.dellroad:dellroad-stuff-main/2.1.0
              optional maven:au.com.bytecode:opencsv/2.4
              maven:com.google.guava:guava/21.0
                  optional maven:com.google.code.findbugs:jsr305/1.3.9
                  optional maven:com.google.errorprone:error_prone_annotations/2.0.15
                  optional maven:com.google.j2objc:j2objc-annotations/1.1
                  optional maven:org.codehaus.mojo:animal-sniffer-annotations/1.14
              maven:javax.validation:validation-api/1.1.0.Final (already imported)
              optional maven:jline:jline/2.14.2
              optional maven:log4j:log4j/1.2.17
              optional maven:org.apache.ant:ant/1.9.7
              optional maven:org.hibernate.javax.persistence:hibernate-jpa-2.1-api/1.0.0.Final
              optional maven:org.hibernate:hibernate-core/5.0.7.Final
              maven:org.slf4j:slf4j-api/1.7.25
              maven:org.slf4j:slf4j-log4j12/1.7.25 RUNTIME
                  maven:log4j:log4j/1.2.17 (already imported)
                  maven:org.slf4j:slf4j-api/1.7.25 (already imported)
              optional maven:org.springframework:spring-context/4.3.7.RELEASE
          maven:org.hibernate:hibernate-validator/5.2.4.Final
              maven:com.fasterxml:classmate/1.1.0
              optional maven:com.thoughtworks.paranamer:paranamer/2.5.5
              maven:javax.el:javax.el-api/2.2.4 PROVIDED (already imported other version)
              maven:javax.validation:validation-api/1.1.0.Final (already imported)
              optional maven:joda-time:joda-time/2.7
              maven:org.glassfish.web:javax.el/2.2.4 PROVIDED
                  maven:javax.el:javax.el-api/2.2.4 (already imported other version)
              optional maven:org.hibernate.javax.persistence:hibernate-jpa-2.1-api/1.0.0.Final
              maven:org.jboss.logging:jboss-logging/3.2.1.Final
                  maven:log4j:log4j/1.2.16 PROVIDED (already imported other version)
                  maven:org.apache.logging.log4j:log4j-api/2.0 PROVIDED
                      maven:org.osgi:org.osgi.core/4.3.1 PROVIDED
                  maven:org.jboss.logmanager:jboss-logmanager/1.5.2.Final PROVIDED
                      optional maven:org.jboss.modules:jboss-modules/1.1.0.GA PROVIDED
                  maven:org.slf4j:slf4j-api/1.7.2 PROVIDED (already imported other version)
              maven:org.jboss.logging:jboss-logging-processor/1.2.0.Final PROVIDED
                  maven:org.jboss.jdeparser:jdeparser/1.0.0.Final
                  maven:org.jboss.logging:jboss-logging/3.1.2.GA PROVIDED (already imported other version)
                  maven:org.jboss.logging:jboss-logging-annotations/1.2.0.Final
                      maven:org.jboss.logging:jboss-logging/3.1.2.GA PROVIDED (already imported other version)
              optional maven:org.jsoup:jsoup/1.8.3
          shared maven:org.jsimpledb:jsimpledb-coreapi/3.5.0
              maven:com.google.code.findbugs:jsr305/3.0.1 PROVIDED (already imported)
              maven:commons-codec:commons-codec/1.10
              maven:log4j:log4j/1.2.17 RUNTIME (already imported other version)
              maven:org.dellroad:dellroad-stuff-main/2.1.0 (already imported)
              maven:org.jsimpledb:jsimpledb-kv/3.5.0
                  maven:com.google.code.findbugs:jsr305/3.0.1 PROVIDED (already imported)
                  maven:com.google.guava:guava/21.0 (already imported)
                  maven:log4j:log4j/1.2.17 RUNTIME (already imported other version)
                  maven:org.dellroad:dellroad-stuff-main/2.1.0 (already imported)
                  maven:org.jsimpledb:jsimpledb-util/3.5.0
                      maven:com.google.code.findbugs:jsr305/3.0.1 PROVIDED (already imported)
                      shared maven:com.google.guava:guava/21.0 (already imported)
                      maven:log4j:log4j/1.2.17 RUNTIME (already imported other version)
                      maven:org.slf4j:slf4j-api/1.7.25 (already imported other version)
                      maven:org.slf4j:slf4j-log4j12/1.7.25 RUNTIME (already imported)
                  maven:org.slf4j:slf4j-api/1.7.25 (already imported other version)
                  maven:org.slf4j:slf4j-log4j12/1.7.25 RUNTIME (already imported)
              shared maven:org.jsimpledb:jsimpledb-util/3.5.0 (already imported)
              maven:org.slf4j:slf4j-api/1.7.25 (already imported other version)
              maven:org.slf4j:slf4j-log4j12/1.7.25 RUNTIME (already imported)
          maven:org.jsimpledb:jsimpledb-kv/3.5.0 (already imported)
          maven:org.jsimpledb:jsimpledb-kv-simple/3.5.0
              maven:com.google.code.findbugs:jsr305/3.0.1 PROVIDED (already imported)
              maven:com.google.guava:guava/21.0 (already imported)
              maven:log4j:log4j/1.2.17 RUNTIME (already imported other version)
              maven:org.dellroad:dellroad-stuff-main/2.1.0 (already imported)
              maven:org.jsimpledb:jsimpledb-kv/3.5.0 (already imported)
              maven:org.jsimpledb:jsimpledb-util/3.5.0 (already imported)
              maven:org.slf4j:slf4j-api/1.7.25 (already imported other version)
              maven:org.slf4j:slf4j-log4j12/1.7.25 RUNTIME (already imported)
          maven:org.slf4j:slf4j-api/1.7.25 (already imported other version)
          maven:org.slf4j:slf4j-log4j12/1.7.25 RUNTIME (already imported)
  shared fun.uschool.feature.spi/1.0.0 (already imported)
  shared fun.uschool.user.api/1.0.0
      ceylon.language/1.3.2 (already imported)
      shared fun.uschool.feature.spi/1.0.0 (already imported)
      fun.uschool.user.impl/1.0.0
          ceylon.buffer/1.3.2 (already imported)
          ceylon.interop.java/1.3.2 (already imported)
          ceylon.language/1.3.2 (already imported)
          ceylon.test/1.3.2 (already imported)
          shared fun.uschool.feature.impl/1.0.0 (already imported)
          shared fun.uschool.feature.spi/1.0.0 (already imported)
          shared fun.uschool.user.api/1.0.0 (already imported)
          shared java.base/8 (already imported other version)
  shared java.base/8 (already imported other version)

Dependencies (up to depth ∞):
  ceylon.buffer/1.3.2
  ceylon.collection/1.3.2
  ceylon.file/1.3.2
  ceylon.interop.java/1.3.2
  ceylon.language/1.3.2
  ceylon.runtime/1.3.2
  ceylon.test/1.3.2
  com.fasterxml:classmate/1.1.0
  com.github.rjeschke.txtmark/0.13
  com.google.code.findbugs:jsr305/3.0.1
  com.google.code.gson:gson/2.3.1
  com.google.guava:guava/21.0
  com.moandjiezana.toml:toml4j/0.7.1
  com.redhat.ceylon.cli/1.3.2
  com.redhat.ceylon.common/1.3.2
  com.redhat.ceylon.compiler.java/1.3.2
  com.redhat.ceylon.compiler.js/1.3.2
  com.redhat.ceylon.langtools.classfile/1.3.2
  com.redhat.ceylon.model/1.3.2
  com.redhat.ceylon.module-loader/1.3.2
  com.redhat.ceylon.module-resolver/1.3.2
  com.redhat.ceylon.module-resolver-javascript/1.3.2
  com.redhat.ceylon.tool.provider/1.3.2
  com.redhat.ceylon.typechecker/1.3.2
  commons-codec:commons-codec/1.10
  fun.uschool.feature.impl/1.0.0
  fun.uschool.feature.spi/1.0.0
  fun.uschool.user.api/1.0.0
  fun.uschool.user.impl/1.0.0
  java.base: 7, 8
  java.compiler/7
  java.desktop/7
  java.instrument/7
  java.logging/7
  java.management/7
  java.prefs/7
  java.tls/7
  javax.el:javax.el-api: 2.2.4, 2.2.5
  javax.jaxws/7
  javax.script/7
  javax.validation:validation-api/1.1.0.Final
  javax.xml/7
  log4j:log4j: 1.2.16, 1.2.17
  net.minidev.json-smart/1.1.1
  oracle.jdk.base/7
  org.antlr.antlr/2.7.7
  org.antlr.runtime/3.4
  org.antlr.stringtemplate/3.2.1
  org.apache.logging.log4j:log4j-api/2.0
  org.apache.openejb:javaee-api/5.0-2
  org.dellroad:dellroad-stuff-main/2.1.0
  org.glassfish.web:javax.el/2.2.4
  org.hibernate:hibernate-validator/5.2.4.Final
  org.jboss.jdeparser:jdeparser/1.0.0.Final
  org.jboss.logging:jboss-logging: 3.1.2.GA, 3.2.1.Final
  org.jboss.logging:jboss-logging-annotations/1.2.0.Final
  org.jboss.logging:jboss-logging-processor/1.2.0.Final
  org.jboss.logmanager/2.0.3.Final
  org.jboss.logmanager:jboss-logmanager/1.5.2.Final
  org.jboss.modules/1.4.4.Final
  org.jsimpledb:jsimpledb-coreapi/3.5.0
  org.jsimpledb:jsimpledb-kv/3.5.0
  org.jsimpledb:jsimpledb-kv-simple/3.5.0
  org.jsimpledb:jsimpledb-main/3.5.0
  org.jsimpledb:jsimpledb-util/3.5.0
  org.osgi:org.osgi.core/4.3.1
  org.slf4j:slf4j-api: 1.7.2, 1.7.25
  org.slf4j:slf4j-log4j12/1.7.25

Dependencies version conflicts (up to depth ∞):
  java.base: 7, 8
  javax.el:javax.el-api: 2.2.4, 2.2.5
  log4j:log4j: 1.2.16, 1.2.17
  org.jboss.logging:jboss-logging: 3.1.2.GA, 3.2.1.Final
  org.slf4j:slf4j-api: 1.7.2, 1.7.25

I'm defining an adapter for JSimpleDB (a persistence library) by subclassing a class that takes a Google Guava Converter as constructor parameter:

shared class RoleConverter() extends Converter<Role, String>() {
    shared actual Role doBackward(String? name) {
        "Cannot convert null to role."
        assert (exists name);
        return Role.ofName(name);
    }

    shared actual String doForward(Role? role) {
        return role?.name else "null";
    }
}

shared class RoleType() extends StringEncodedType<Role>(
    javaClass<Role>(),
    0,
    RoleConverter()
) {
}

JSimpleDB doesn't export Guava by default, so I added the following overrides.xml to make sure the correct classes are visible to my application (I'm not using --auto-export-maven-depencies or --flat-classpath):

<overrides xmlns="http://www.ceylon-lang.org/xsd/overrides">
    <module groupId="org.jsimpledb" artifactId="jsimpledb-coreapi">
        <share groupId="com.google.guava" artifactId="guava" />
    </module>
    <module groupId="org.jsimpledb" artifactId="jsimpledb-main">
        <!-- guava is already shared by jsimpledb-coreapi -->
        <remove groupId="com.google.guava" artifactId="guava" />
        <share groupId="org.jsimpledb" artifactId="jsimpledb-coreapi" />
        <share groupId="org.jsimpledb" artifactId="jsimpledb-util" />
        <share groupId="org.dellroad" artifactId="dellroad-stuff-main" />
    </module>
</overrides>

This results in the following module hierarchy (my code is in fun.uschool.user.impl):

Module hierarchy

The correct com.google.guava:guava module should be exposed to my program, and indeed I can import Converter, but when I try to compile the above code I get the following error:

source/fun/uschool/user/impl/userImpl.ceylon:156: error: argument must be assignable to parameter 'arg2' of 'StringEncodedType': 'RoleConverter' is not assignable to 'Converter<Role,String>?'
    RoleConverter()
    ^
source/fun/uschool/user/impl/userImpl.ceylon:153: error: Ceylon backend error: no suitable constructor found for StringEncodedType(no arguments)
shared class RoleType() extends StringEncodedType<Role>(
^
    constructor StringEncodedType.StringEncodedType(Class<Role>,long,Converter<Role,String>) is not applicable
      (actual and formal argument lists differ in length)
    constructor StringEncodedType.StringEncodedType(String,Class<Role>,long,Converter<Role,String>) is not applicable
      (actual and formal argument lists differ in length)
Note: Created module fun.uschool.feature.spi/1.0.0
Note: Created module fun.uschool.user.api/1.0.0
Note: Created module fun.uschool.feature.impl/1.0.0
Note: Created module fun.uschool.user.impl/1.0.0
ceylon compile: There were 2 errors

So apparently somehow the wrong com.google.guava:guava imported, even though there's only 1 visible in the module dependencies tree. How do I import the right one?

Here's the output of ceylon info's dependency analysis:

$ ceylon info fun.uschool.user.impl/1.0.0 --dependency-depth=all
Namespace:   ceylon
Name:        fun.uschool.user.impl
Version:     1.0.0
Artifacts:   JVM (#8.1), Sources
Available:   On local system
Origin:      /home/ilmoeuro/Asiakirjat/Projektit/youschool/modules
Dependency Tree (up to depth ∞):
  ceylon.buffer/1.3.2
      ceylon.collection/1.3.2
          ceylon.language/1.3.2
      ceylon.interop.java/1.3.2
          shared ceylon.collection/1.3.2 (already imported)
          ceylon.language/1.3.2 (already imported)
          shared java.base/7
      ceylon.language/1.3.2 (already imported)
      java.base/7 (already imported)
  ceylon.interop.java/1.3.2 (already imported)
  ceylon.language/1.3.2 (already imported)
  ceylon.test/1.3.2
      ceylon.collection/1.3.2 (already imported)
      ceylon.file/1.3.2
          ceylon.language/1.3.2 (already imported)
          java.base/7 (already imported)
      ceylon.language/1.3.2 (already imported)
      ceylon.runtime/1.3.2
          shared ceylon.language/1.3.2 (already imported)
          shared com.redhat.ceylon.cli/1.3.2
              shared com.redhat.ceylon.common/1.3.2
                  shared java.base/7 (already imported)
                  java.desktop/7
                  shared java.logging/7
              shared com.redhat.ceylon.module-resolver/1.3.2
                  shared com.redhat.ceylon.common/1.3.2 (already imported)
                  shared com.redhat.ceylon.langtools.classfile/1.3.2
                      shared java.base/7 (already imported)
                  shared com.redhat.ceylon.model/1.3.2
                      shared com.redhat.ceylon.common/1.3.2 (already imported)
                      shared com.redhat.ceylon.langtools.classfile/1.3.2 (already imported)
                      shared java.base/7 (already imported)
                      shared java.logging/7 (already imported)
                  optional com.redhat.ceylon.module-resolver-aether/1.3.2
                  optional com.redhat.ceylon.module-resolver-javascript/1.3.2
                  optional com.redhat.ceylon.module-resolver-webdav/1.3.2
                  shared java.base/7 (already imported)
                  shared java.logging/7 (already imported)
                  javax.jaxws/7
                  javax.script/7
                  shared javax.xml/7
              shared java.base/7 (already imported)
              java.desktop/7 (already imported)
              shared java.logging/7 (already imported)
              shared optional org.tautua.markdownpapers.core/1.2.7
          shared com.redhat.ceylon.common/1.3.2 (already imported)
          shared com.redhat.ceylon.model/1.3.2 (already imported)
          shared com.redhat.ceylon.module-resolver/1.3.2 (already imported)
          com.redhat.ceylon.tool.provider/1.3.2
              ceylon.language/1.3.2 (already imported)
              shared com.redhat.ceylon.cli/1.3.2 (already imported)
              shared com.redhat.ceylon.common/1.3.2 (already imported)
              shared com.redhat.ceylon.compiler.java/1.3.2
                  ceylon.language/1.3.2 (already imported)
                  com.github.rjeschke.txtmark/0.13
                      shared java.base/7 (already imported)
                  shared com.redhat.ceylon.cli/1.3.2 (already imported)
                  shared com.redhat.ceylon.common/1.3.2 (already imported)
                  shared com.redhat.ceylon.langtools.classfile/1.3.2 (already imported)
                  shared com.redhat.ceylon.model/1.3.2 (already imported)
                  shared com.redhat.ceylon.module-resolver/1.3.2 (already imported)
                  shared com.redhat.ceylon.typechecker/1.3.2
                      shared com.redhat.ceylon.common/1.3.2 (already imported)
                      shared com.redhat.ceylon.model/1.3.2 (already imported)
                      shared com.redhat.ceylon.module-resolver/1.3.2 (already imported)
                      shared java.base/7 (already imported)
                      shared org.antlr.runtime/3.4
                          shared java.base/7 (already imported)
                          shared org.antlr.stringtemplate/3.2.1
                              shared java.base/7 (already imported)
                              shared java.desktop/7 (already imported)
                              shared org.antlr.antlr/2.7.7
                                  shared java.base/7 (already imported)
                                  shared java.desktop/7 (already imported)
                  shared java.base/7 (already imported)
                  shared java.compiler/7
                  java.desktop/7 (already imported)
                  java.logging/7 (already imported)
                  java.prefs/7
                  shared javax.xml/7 (already imported)
                  oracle.jdk.base/7
                  shared org.antlr.runtime/3.4 (already imported)
              com.redhat.ceylon.compiler.js/1.3.2
                  ceylon.language/1.3.2 (already imported)
                  shared com.redhat.ceylon.cli/1.3.2 (already imported)
                  shared com.redhat.ceylon.common/1.3.2 (already imported)
                  shared com.redhat.ceylon.model/1.3.2 (already imported)
                  shared com.redhat.ceylon.module-resolver/1.3.2 (already imported)
                  com.redhat.ceylon.module-resolver-javascript/1.3.2
                      net.minidev.json-smart/1.1.1
                          shared java.base/7 (already imported)
                  shared com.redhat.ceylon.typechecker/1.3.2 (already imported)
                  shared java.base/7 (already imported)
                  shared java.logging/7 (already imported)
                  net.minidev.json-smart/1.1.1 (already imported)
                  shared org.antlr.runtime/3.4 (already imported)
              com.redhat.ceylon.model/1.3.2 (already imported)
              com.redhat.ceylon.module-loader/1.3.2
                  ceylon.language/1.3.2 (already imported)
                  com.redhat.ceylon.common/1.3.2 (already imported)
                  com.redhat.ceylon.model/1.3.2 (already imported)
                  shared com.redhat.ceylon.module-resolver/1.3.2 (already imported)
                  shared java.base/7 (already imported)
                  optional org.jboss.modules/1.4.4.Final
              shared com.redhat.ceylon.module-resolver/1.3.2 (already imported)
              com.redhat.ceylon.typechecker/1.3.2 (already imported)
              shared java.base/7 (already imported)
              org.jboss.modules/1.4.4.Final
                  shared java.base/7 (already imported)
                  shared java.instrument/7
                  shared java.logging/7 (already imported)
                  java.management/7
                  java.prefs/7 (already imported)
                  shared javax.xml/7 (already imported)
                  oracle.jdk.base/7 (already imported)
          shared java.base/7 (already imported)
          java.compiler/7 (already imported)
          shared java.instrument/7 (already imported)
          javax.xml/7 (already imported)
          org.jboss.logmanager/2.0.3.Final
              shared java.base/7 (already imported)
              shared java.logging/7 (already imported)
              java.management/7 (already imported)
              shared java.tls/7
              optional org.jboss.modules/1.4.4.Final
          shared org.jboss.modules/1.4.4.Final (already imported)
      java.base/7 (already imported)
      org.jboss.modules/1.4.4.Final (already imported)
  shared fun.uschool.feature.impl/1.0.0
      ceylon.buffer/1.3.2 (already imported)
      ceylon.interop.java/1.3.2 (already imported)
      ceylon.language/1.3.2 (already imported)
      shared maven:com.moandjiezana.toml:toml4j/0.7.1
          maven:com.google.code.gson:gson/2.3.1
      shared fun.uschool.feature.spi/1.0.0
          ceylon.language/1.3.2 (already imported)
      shared java.base/8 (already imported other version)
      shared maven:org.jsimpledb:jsimpledb-main/3.5.0
          maven:com.google.code.findbugs:jsr305/3.0.1 PROVIDED
          maven:javax.el:javax.el-api/2.2.5
          maven:javax.validation:validation-api/1.1.0.Final
          maven:log4j:log4j/1.2.17 RUNTIME
              optional maven:javax.mail:mail/1.4.3
              optional maven:org.apache.geronimo.specs:geronimo-jms_1.1_spec/1.0
              maven:org.apache.openejb:javaee-api/5.0-2 PROVIDED
          maven:org.dellroad:dellroad-stuff-main/2.1.0
              optional maven:au.com.bytecode:opencsv/2.4
              maven:com.google.guava:guava/21.0
                  optional maven:com.google.code.findbugs:jsr305/1.3.9
                  optional maven:com.google.errorprone:error_prone_annotations/2.0.15
                  optional maven:com.google.j2objc:j2objc-annotations/1.1
                  optional maven:org.codehaus.mojo:animal-sniffer-annotations/1.14
              maven:javax.validation:validation-api/1.1.0.Final (already imported)
              optional maven:jline:jline/2.14.2
              optional maven:log4j:log4j/1.2.17
              optional maven:org.apache.ant:ant/1.9.7
              optional maven:org.hibernate.javax.persistence:hibernate-jpa-2.1-api/1.0.0.Final
              optional maven:org.hibernate:hibernate-core/5.0.7.Final
              maven:org.slf4j:slf4j-api/1.7.25
              maven:org.slf4j:slf4j-log4j12/1.7.25 RUNTIME
                  maven:log4j:log4j/1.2.17 (already imported)
                  maven:org.slf4j:slf4j-api/1.7.25 (already imported)
              optional maven:org.springframework:spring-context/4.3.7.RELEASE
          maven:org.hibernate:hibernate-validator/5.2.4.Final
              maven:com.fasterxml:classmate/1.1.0
              optional maven:com.thoughtworks.paranamer:paranamer/2.5.5
              maven:javax.el:javax.el-api/2.2.4 PROVIDED (already imported other version)
              maven:javax.validation:validation-api/1.1.0.Final (already imported)
              optional maven:joda-time:joda-time/2.7
              maven:org.glassfish.web:javax.el/2.2.4 PROVIDED
                  maven:javax.el:javax.el-api/2.2.4 (already imported other version)
              optional maven:org.hibernate.javax.persistence:hibernate-jpa-2.1-api/1.0.0.Final
              maven:org.jboss.logging:jboss-logging/3.2.1.Final
                  maven:log4j:log4j/1.2.16 PROVIDED (already imported other version)
                  maven:org.apache.logging.log4j:log4j-api/2.0 PROVIDED
                      maven:org.osgi:org.osgi.core/4.3.1 PROVIDED
                  maven:org.jboss.logmanager:jboss-logmanager/1.5.2.Final PROVIDED
                      optional maven:org.jboss.modules:jboss-modules/1.1.0.GA PROVIDED
                  maven:org.slf4j:slf4j-api/1.7.2 PROVIDED (already imported other version)
              maven:org.jboss.logging:jboss-logging-processor/1.2.0.Final PROVIDED
                  maven:org.jboss.jdeparser:jdeparser/1.0.0.Final
                  maven:org.jboss.logging:jboss-logging/3.1.2.GA PROVIDED (already imported other version)
                  maven:org.jboss.logging:jboss-logging-annotations/1.2.0.Final
                      maven:org.jboss.logging:jboss-logging/3.1.2.GA PROVIDED (already imported other version)
              optional maven:org.jsoup:jsoup/1.8.3
          shared maven:org.jsimpledb:jsimpledb-coreapi/3.5.0
              maven:com.google.code.findbugs:jsr305/3.0.1 PROVIDED (already imported)
              maven:commons-codec:commons-codec/1.10
              maven:log4j:log4j/1.2.17 RUNTIME (already imported other version)
              maven:org.dellroad:dellroad-stuff-main/2.1.0 (already imported)
              maven:org.jsimpledb:jsimpledb-kv/3.5.0
                  maven:com.google.code.findbugs:jsr305/3.0.1 PROVIDED (already imported)
                  maven:com.google.guava:guava/21.0 (already imported)
                  maven:log4j:log4j/1.2.17 RUNTIME (already imported other version)
                  maven:org.dellroad:dellroad-stuff-main/2.1.0 (already imported)
                  maven:org.jsimpledb:jsimpledb-util/3.5.0
                      maven:com.google.code.findbugs:jsr305/3.0.1 PROVIDED (already imported)
                      shared maven:com.google.guava:guava/21.0 (already imported)
                      maven:log4j:log4j/1.2.17 RUNTIME (already imported other version)
                      maven:org.slf4j:slf4j-api/1.7.25 (already imported other version)
                      maven:org.slf4j:slf4j-log4j12/1.7.25 RUNTIME (already imported)
                  maven:org.slf4j:slf4j-api/1.7.25 (already imported other version)
                  maven:org.slf4j:slf4j-log4j12/1.7.25 RUNTIME (already imported)
              shared maven:org.jsimpledb:jsimpledb-util/3.5.0 (already imported)
              maven:org.slf4j:slf4j-api/1.7.25 (already imported other version)
              maven:org.slf4j:slf4j-log4j12/1.7.25 RUNTIME (already imported)
          maven:org.jsimpledb:jsimpledb-kv/3.5.0 (already imported)
          maven:org.jsimpledb:jsimpledb-kv-simple/3.5.0
              maven:com.google.code.findbugs:jsr305/3.0.1 PROVIDED (already imported)
              maven:com.google.guava:guava/21.0 (already imported)
              maven:log4j:log4j/1.2.17 RUNTIME (already imported other version)
              maven:org.dellroad:dellroad-stuff-main/2.1.0 (already imported)
              maven:org.jsimpledb:jsimpledb-kv/3.5.0 (already imported)
              maven:org.jsimpledb:jsimpledb-util/3.5.0 (already imported)
              maven:org.slf4j:slf4j-api/1.7.25 (already imported other version)
              maven:org.slf4j:slf4j-log4j12/1.7.25 RUNTIME (already imported)
          maven:org.slf4j:slf4j-api/1.7.25 (already imported other version)
          maven:org.slf4j:slf4j-log4j12/1.7.25 RUNTIME (already imported)
  shared fun.uschool.feature.spi/1.0.0 (already imported)
  shared fun.uschool.user.api/1.0.0
      ceylon.language/1.3.2 (already imported)
      shared fun.uschool.feature.spi/1.0.0 (already imported)
      fun.uschool.user.impl/1.0.0
          ceylon.buffer/1.3.2 (already imported)
          ceylon.interop.java/1.3.2 (already imported)
          ceylon.language/1.3.2 (already imported)
          ceylon.test/1.3.2 (already imported)
          shared fun.uschool.feature.impl/1.0.0 (already imported)
          shared fun.uschool.feature.spi/1.0.0 (already imported)
          shared fun.uschool.user.api/1.0.0 (already imported)
          shared java.base/8 (already imported other version)
  shared java.base/8 (already imported other version)

Dependencies (up to depth ∞):
  ceylon.buffer/1.3.2
  ceylon.collection/1.3.2
  ceylon.file/1.3.2
  ceylon.interop.java/1.3.2
  ceylon.language/1.3.2
  ceylon.runtime/1.3.2
  ceylon.test/1.3.2
  com.fasterxml:classmate/1.1.0
  com.github.rjeschke.txtmark/0.13
  com.google.code.findbugs:jsr305/3.0.1
  com.google.code.gson:gson/2.3.1
  com.google.guava:guava/21.0
  com.moandjiezana.toml:toml4j/0.7.1
  com.redhat.ceylon.cli/1.3.2
  com.redhat.ceylon.common/1.3.2
  com.redhat.ceylon.compiler.java/1.3.2
  com.redhat.ceylon.compiler.js/1.3.2
  com.redhat.ceylon.langtools.classfile/1.3.2
  com.redhat.ceylon.model/1.3.2
  com.redhat.ceylon.module-loader/1.3.2
  com.redhat.ceylon.module-resolver/1.3.2
  com.redhat.ceylon.module-resolver-javascript/1.3.2
  com.redhat.ceylon.tool.provider/1.3.2
  com.redhat.ceylon.typechecker/1.3.2
  commons-codec:commons-codec/1.10
  fun.uschool.feature.impl/1.0.0
  fun.uschool.feature.spi/1.0.0
  fun.uschool.user.api/1.0.0
  fun.uschool.user.impl/1.0.0
  java.base: 7, 8
  java.compiler/7
  java.desktop/7
  java.instrument/7
  java.logging/7
  java.management/7
  java.prefs/7
  java.tls/7
  javax.el:javax.el-api: 2.2.4, 2.2.5
  javax.jaxws/7
  javax.script/7
  javax.validation:validation-api/1.1.0.Final
  javax.xml/7
  log4j:log4j: 1.2.16, 1.2.17
  net.minidev.json-smart/1.1.1
  oracle.jdk.base/7
  org.antlr.antlr/2.7.7
  org.antlr.runtime/3.4
  org.antlr.stringtemplate/3.2.1
  org.apache.logging.log4j:log4j-api/2.0
  org.apache.openejb:javaee-api/5.0-2
  org.dellroad:dellroad-stuff-main/2.1.0
  org.glassfish.web:javax.el/2.2.4
  org.hibernate:hibernate-validator/5.2.4.Final
  org.jboss.jdeparser:jdeparser/1.0.0.Final
  org.jboss.logging:jboss-logging: 3.1.2.GA, 3.2.1.Final
  org.jboss.logging:jboss-logging-annotations/1.2.0.Final
  org.jboss.logging:jboss-logging-processor/1.2.0.Final
  org.jboss.logmanager/2.0.3.Final
  org.jboss.logmanager:jboss-logmanager/1.5.2.Final
  org.jboss.modules/1.4.4.Final
  org.jsimpledb:jsimpledb-coreapi/3.5.0
  org.jsimpledb:jsimpledb-kv/3.5.0
  org.jsimpledb:jsimpledb-kv-simple/3.5.0
  org.jsimpledb:jsimpledb-main/3.5.0
  org.jsimpledb:jsimpledb-util/3.5.0
  org.osgi:org.osgi.core/4.3.1
  org.slf4j:slf4j-api: 1.7.2, 1.7.25
  org.slf4j:slf4j-log4j12/1.7.25

Dependencies version conflicts (up to depth ∞):
  java.base: 7, 8
  javax.el:javax.el-api: 2.2.4, 2.2.5
  log4j:log4j: 1.2.16, 1.2.17
  org.jboss.logging:jboss-logging: 3.1.2.GA, 3.2.1.Final
  org.slf4j:slf4j-api: 1.7.2, 1.7.25

原文:https://stackoverflow.com/questions/44923967
更新时间:2020-02-15 17:55

最满意答案

好的,我明白了。 问题是RoleConverter转换为ceylon.language.String ,而api期望转换为java.lang.String 。 现在修复它:

shared class RoleConverter() extends Converter<Role, JString>() {
    shared actual Role doBackward(JString? name) {
        "Cannot convert null to role."
        assert (exists name);
        return Role.ofName(name.string);
    }

    shared actual JString doForward(Role? role) {
        return JString(role?.name else "null");
    }
}

Okay, I got it. The problem was that RoleConverter converts to ceylon.language.String, while the api was expecting a converter to java.lang.String. Fixed it now:

shared class RoleConverter() extends Converter<Role, JString>() {
    shared actual Role doBackward(JString? name) {
        "Cannot convert null to role."
        assert (exists name);
        return Role.ofName(name.string);
    }

    shared actual JString doForward(Role? role) {
        return JString(role?.name else "null");
    }
}
2017-07-05

相关问答

更多

Guava:LinkedHashMultimap值为list而不是String(Guava : LinkedHashMultimap values as list and not String)

正如我们在javadoc中看到的, Multimap#entries()返回Collection<Map.Entry<K,V>> - 所以基本上,你迭代每个键/值对,而不是键/(值集)。 为此,请尝试将Multimap<K, V>为标准Map<K, List<V>> 。 你可以使用Multimap#asMap()来做到这一点,所以你的代码看起来像: mapLen.asMap().entrySet().stream().forEach(entry -> { System.out.printl ...

当总线上注册了同一个类的不同实例时,Guava EventBus抛出handlerExcetion(Guava EventBus throwing handlerExcetion when different instances of the same class are registered on the bus)

我发现了这个问题。 似乎将XYSeries设置为静态意味着它会在类的所有实例中传输,因此当为每个实例的系列添加新值时,在处理队列中的第一个实例后,其他实例将获得相同的值系列,当您尝试添加另一个具有与现有数据相同的X值的数据点时(您不允许这样做),它会抛出一个错误,该错误一直运行到guava事件。 最后实际上不是番石榴问题! 我所要做的就是让XYSeries成为非静态的 抱歉浪费时间! I have found the issue. It appears that making the XYSeri ...

番石榴,gwt和eclipse(guava, gwt and eclipse)

好的,看看你的进口线。 它看起来像这样吗? import com.google.gwt.thirdparty.guava.common.base.Predicate; 那是错的。 将其更改为: import com.google.common.base.Predicate; 如果您在Eclipse中使用完成辅助 - 控制空格键 - 请研究提供的完成列表。 不要只选择第一个。 向右看,它将以浅灰色文本标识完成源。 如果您正在查看thirdparty.guava,请转到下一个,直到您看到googl ...

在guava的AbstractService类中实现stop()(stop() implementation in guava's AbstractService class)

在RUNNING状态下调用stop()时,状态将更改为STOPPING并doStop()方法。 之后再次调用stop()不应该做任何事情。 doStop()实现应该调用notifyStopped() ,它将状态从STOPPING更改为TERMINATED 。 When you call stop() in the RUNNING state, the state is changed to STOPPING and the doStop() method gets called. Calling ...

来自Scala和Guava的Murmur3的不同结果(Different results from Murmur3 from Scala and Guava)

在我看来,像Scala的hashString将UTF-16 char的成对转换为int与Guava的hashUnencodedChars不同(没有Charset的hashUnencodedChars被重命名为)。 斯卡拉: val data = (str.charAt(i) << 16) + str.charAt(i + 1) 番石榴: int k1 = input.charAt(i - 1) | (input.charAt(i) << 16); 在Guava中,索引i处的char变为int的 ...

树中的第一个元素变为空?(First element in tree becoming null? Guava TreebasedTable)

rowKeySet()是所有行的集合, columnKeySet()是表的所有列的集合。 但是,对于行键和列键的每个组合,可能不存在值。 例如,您可能只为其中一个Data对象计算了某个RowValue的结果。 在这种情况下, RowValue对象(行键)和任何其他Data对象(列键)的组合将不会映射到Result 。 你可能会看到这样的事情。 要仅迭代有效映射,您需要执行以下操作: for (RowValue row : results.rowKeySet()) { // Only itera ...

Ceylon模块系统:Guava类不匹配,即使依赖树中只有一个Guava(Ceylon module system: Guava class mismatch even though there's only one Guava in dependencies tree)

好的,我明白了。 问题是RoleConverter转换为ceylon.language.String ,而api期望转换为java.lang.String 。 现在修复它: shared class RoleConverter() extends Converter<Role, JString>() { shared actual Role doBackward(JString? name) { "Cannot convert null to role." ...

使用Guava获取私有域名时出错(errors when using Guava to get the private domain name)

InternetDomainName没有name()方法。 它一直持续到15.0,但它在16.0被删除了。 使用toString() 。 InternetDomainName does not have a name() method. It did up until 15.0, but it was removed in 16.0. Use toString().

使用guava AbstractScheduledService(Using guava AbstractScheduledService)

AbstractScheduledServiced实现Service 。 Service接口描述了生命周期方法,包括startAsync 。 ServiceState枚举文字包含有关其含义的文档。 处于NEW状态的服务(刚刚创建): 处于此状态的服务处于非活动状态。 它做的工作量极少,占用资源极少。 要使服务执行某些有用的操作,您必须将其转换为RUNNING状态 此状态下的服务正在运行。 这就是为什么你必须在它做任何事之前启动服务的原因。 我还建议不要从构造函数中调用startAsync,而是从创 ...

GWT编译器找不到Collect.gwt.xml,但我将Guava作为依赖项(GWT Compiler cannot find Collect.gwt.xml, but I have Guava as a dependency)

您可能需要将guava-gwt-14.0-rc2.jar添加到依赖项中。 请注意,该名称中嵌入了-gwt-,并且您说您只有这些作为依赖项:guava-14.0-rc2.jar sources:guava-14.0-rc2-sources.jar guava-gwt-14.0-rc2.jar javadoc番石榴14.0 RC2-javadoc.jar 您可以检查jar是否合适,因为当您打开它时(它只是一个zip文件),您应该看到其中的Collect.gwt.xml文件。 You probably ...

相关文章

更多

最新问答

更多
  • 如何保护Solr只允许SELECT请求给用户并禁止其他任何东西?(How to secure Solr to allow SELECT request to only users and disallow anything else?)
  • XPath表达式无效/错误TFHpple SWIFT 1.2(XPath Expression not working/incorrect TFHpple SWIFT 1.2)
  • css3 3D变换不能平滑地制作动画(css3 3D transform doesn't animate smoothly)
  • 运行时错误'91'和Outlook.Application = <对象变量或没有设置块变量>?(Run-time error '91' & Outlook.Application = Object variable or With block variable not set?)
  • 慢的webservice问题(Slow webservice problem)
  • textview的不正确对齐方式(Improper alignment of a textview)
  • 在第一步“Hello World”中出现Java错误(Cannot run “Hello World” program in Eclipse)
  • 为什么十六进制地址是14个字符?(why the hex address is 14 character?)
  • 如何在Python中的不同类中使用变量?(How to use variable in different classes in Python?)
  • asp:GridView HYPERLINKFIELD - datanavigateurlformatstring中的asp代码(asp:GridView HYPERLINKFIELD - asp code inside datanavigateurlformatstring)
  • 关于adaboost算法(About adaboost algorithm)
  • 在Matlab上内置图像(Built in Images on Matlab)
  • java swing:输入键事件时焦点丢失(java swing: Focus lost on enter key event)
  • C#中的通用约束,T是相同的TSomethingElse,对吧?(Generic constraints in C#, T is the same TSomethingElse, right?)
  • 从mybatis中的光标获取数据(Fetching data from cursor in mybatis)
  • 在运行时从XML构建对象的最佳方法(Best way for building objects out of XMLs at runtime)
  • 在整个窗口中拉伸sf :: Sprite(Stretch sf::Sprite across entire window)
  • Selenium Node API Web驱动程序等待超时处理程序(Selenium Node API web driver wait timeout handler)
  • 函数使用并且是map的一部分(循环依赖?)(Function uses and is part of map (circular dependency?))
  • 是否可以在C ++ 14中使用可选模板参数创建类型元组?(Is possible to make a tuple of types with optional template parameters in C++14?)
  • PHP从窗帘后面打印/ f(PHP prints /f from behind the curtains)
  • JFrame的contentPane的LayoutManager(LayoutManager of JFrame's contentPane)
  • 用于Instagram Feed的图像滚动(Image Roll Overs for Instagram Feed)
  • 如何显示拉伸字体(双倍宽度/高度)?(How to display stretched font (double width/height)?)
  • 文件操作API在fileapi.h和stdio.h中的WP8差异?(WP8 differences between file manipulation APIs in fileapi.h and stdio.h?)
  • 保存失败后Rails没有回滚事务()(Rails not rolling back transaction after failed save())
  • jqgrid中的分页问题与数组数据(Pagination problem in jqgrid with array data)
  • 重定向时,通过其他页面上的URL调用javascript函数(Call javascript function through url on otherpage while Redirecting)
  • 如何使用InvokeCommandAction调用我的方法并传入参数?(How do I go about using InvokeCommandAction to call a method of mine and pass in parameters?)
  • Jquerymobile按钮仅显示页面的第一个外观(Jquerymobile buttons are shown only first apperance of the page)