×

Loading...
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。

State:Closed, will not be fixed

Certain filenames are reserved on Windows:

CON, COMx, LPTx, PRN, AUX, and NUL (I think that's all)

So javac and the VM should map these names to other filenames as
allowed by the specification.

We don't plan to fix it. This is arguably a problem in Windows.
Report

Replies, comments and Discussions:

  • 工作学习 / 专业技术讨论 / Java问题:这可咋办? 需要类名和业务元素名称一样,有个元素叫CON。可类名就是叫不成CON.java啊
    • what is 业务元素?
    • State:Closed, will not be fixed
      Certain filenames are reserved on Windows:

      CON, COMx, LPTx, PRN, AUX, and NUL (I think that's all)

      So javac and the VM should map these names to other filenames as
      allowed by the specification.

      We don't plan to fix it. This is arguably a problem in Windows.
    • 是Contract Number Detail... 操作系统真是事儿多,这他也管....
    • Bad design. 咋能这样呢!俺在上个世纪,菜鸟时,曾经把班级定义成Class,可把俺害苦了。所以从此以后,从来不用单word做任何名字。
      • 协议里定的没办法,变量里还多的是l1,l11之类的呢。名字上添些乱七八糟还不够来回掐头去尾的呢
    • 又一档子: main(args[]) 里面要求接受一个 *
      • 这个不难吧?命令行上*加引号就是了"*"
        • 这种毫不利己的精神还是值得称赞的.
          XB是动力?
        • 我咋试着不行啊?
          • so try '*'
            • 那输进去的就是 '*' 不是 *
              • I think this might work: set a=*; command $a.
                Or.

                command \nnn
                其实我是想叫你用八进制来写这个*. 但是进了ROLIA就已经给改了

                Just some guesses. check it yourself if you are interested.
                • It seemed It doesn't work. thanks anyway. you know what, I changed the ... somebody called it "design".
                  I put all the args together as one string seperated by commas. and then I split it in the main() , so I get the * ... It looks like : java abc.jar c:\temp\inputfile.txt,1,~,*
                  if the input is wrong I print a usage hint.....