小编Ben*_*ler的帖子

git和"服务器中止了SSL握手"错误

通常,当我想推送到我的私人仓库时,我得到一个"服务器中止SSL握手"错误.经过几次尝试,它经常突然起作用.我还没有在互联网上找到解决方案:(

如果今天这不够烦人,我想通过安装火炬 git clone https://github.com/torch/distro.git ~/torch --recursive

它每次都在公共cutorch.git失败

致命:无法访问' https://github.com/torch/cutorch.git/ ':服务器中止了SSL握手致命:将" https://github.com/torch/cutorch.git " 克隆到子模块路径中额外/ cutorch'失败了

但是,当我自己执行此行时,它工作正常:

git clone https://github.com/torch/cutorch.git/ extra/cutorch
Run Code Online (Sandbox Code Playgroud)

现在我必须重新启动安装过程,因为该文件夹已经存在.除非这个问题得到解决,否则我没有火炬?

我安装了最新版本的git(2.8.1)并使用Mac OS 10.11.4.

如何解决这个烦人的SSL握手错误?

更新:可能是由我的ISP引起的.我有阶段,我也遇到了HTTPS和iTunes Store连接问题.

git ssh ssl github

10
推荐指数
1
解决办法
3万
查看次数

Java:继承类不能在方法参数中转换为超类

我有一个泛型类作为参数的此方法:

myMethod(Class myclass){
    Superclass superclass = myclass;
}
Run Code Online (Sandbox Code Playgroud)

然后我通过传递超类的子类来使用该方法

myMethod(Mychildclass.class)
Run Code Online (Sandbox Code Playgroud)

Netbeans正在警告我使用通用的"Class".但是这很好用.如果我将方法的参数更改为更具体的参数

myMethod(Class<Superclass> myclass){
    this.superclass = myclass;
}
Run Code Online (Sandbox Code Playgroud)

然后我在尝试使用我的方法时遇到错误:

incompatibles types: Class<Mychildclass> cannot be converted to Class<Superclass>
Run Code Online (Sandbox Code Playgroud)

所以我的问题:为什么这不起作用?如何让Netbeans高兴不给我任何警告和错误消息?

java parameters inheritance casting parameter-passing

5
推荐指数
1
解决办法
857
查看次数

标签 统计

casting ×1

git ×1

github ×1

inheritance ×1

java ×1

parameter-passing ×1

parameters ×1

ssh ×1

ssl ×1