假设您将代码更新为修订版10,该版本已损坏.你想回到修订版9,处理代码并等到有人修复构建:
svn merge -rHEAD:9 .
但它不起作用,为什么?
在Java中你可以:
public enum Enum {
    ONE {
        public String method() {
            return "1";
        }
    },
    TWO {
        public String method() {
            return "2";
        }
    },
    THREE {
        public String method() {
            return "3";
        }
    };
    public abstract String method();
}
你是如何在Scala中做到这一点的?
编辑/有用的链接:
如何在IntelliJ Idea中为Scala的项目设置/模块/依赖项创建模块SDK?
你如何用翻译准备Latex文档...我需要1个多语言文档.它应该是这样的:
\section{pl:Costam; en:Something}
然后我想用波兰语或英语来呈现它......
你有:
val array = new Array[Array[Cell]](height, width)
如何将所有元素初始化为新Cell("某物")?
谢谢,Etam(Scala新手).
Spring-WS生成WSDL而没有绑定标记中的操作......你知道为什么吗?
有我的spring-ws-service.xml:
    <import resource="classpath*:application-context.xml" />
    <!-- Register PayloadRootAnnotationMethodEndpointMapping -->
    <bean class="org.springframework.ws.server.endpoint.mapping.PayloadRootAnnotationMethodEndpointMapping" />
    <!-- Register Endpoint -->
    <bean id="tasktablerServiceEndpoint" class="tasktabler.mpk.service.TasktablerServiceEndpoint" />
    <!-- Configure XML Marshaller -->
    <bean class="org.springframework.ws.server.endpoint.adapter.GenericMarshallingMethodEndpointAdapter">
        <constructor-arg ref="marshaller" />
    </bean>
    <bean id="marshaller" class="org.springframework.oxm.jaxb.Jaxb2Marshaller">
        <property name="classesToBeBound">
            <list>
                <value>tasktabler.mpk.databinding.OptimizeRequest</value>
            </list>
        </property>
    </bean>
    <!-- Add automatic WSDL generation support -->
    <bean id="tasktabler" class="org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition">
        <property name="schema" ref="schema" />
        <property name="portTypeName" value="tasktabler" />
        <property name="locationUri" value="http://localhost:8080/tasktabler" />
        <property name="targetNamespace" value="http://tasktabler" />
    </bean>
    <bean id="schema" class="org.springframework.xml.xsd.SimpleXsdSchema">
        <property name="xsd" value="/WEB-INF/schema.xsd" />
    </bean>
并且有WSDL的wsdl绑定部分:
   <wsdl:binding name="tasktablerSoap11" type="tns:tasktabler"> …如何在SBT中创建Scala SWT项目?
我知道你可以使用GIT存储库:
RootProject(uri("http://git.eclipse.org/gitroot/platform/eclipse.platform.swt.binaries.git"))
但我不知道如何以及SWT是否可行.
在此先感谢,Etam.
编辑:
我不得不手动下载它.它编译但运行时我得到无效的线程访问错误:
***WARNING: Display must be created on main thread due to Cocoa restrictions.
[error] (run-main) org.eclipse.swt.SWTException: Invalid thread access
即使我使用:
javaOptions := Seq("-XstartOnFirstThread", "-d64")
这是主要类:
import org.eclipse.swt._
import org.eclipse.swt.layout._
import org.eclipse.swt.widgets._
object Main extends App {
    val display = new Display
    val shell = new Shell(display)
    shell.setLayout(new GridLayout())
    shell.pack
    shell.open
    while (!shell.isDisposed) {
        if (!display.readAndDispatch)
            display.sleep
    }
    display.dispose
}
再次感谢,Etam.
我来自Java世界,我想知道在编译代码时除了缺少错误外,Python中的动态类型有什么好处?
你喜欢Python的打字吗?你有一个例子,它在一个大项目中有所帮助吗?是不是有点容易出错?