“Code too large” compilation error in Java

后端 未结 13 1197
半阙折子戏
半阙折子戏 2020-11-22 14:33

Is there any maximum size for code in Java? I wrote a function with more than 10,000 lines. Actually, each line assigns a value to an array variable.

arts_b         


        
相关标签:
13条回答
  • 2020-11-22 15:16

    I have an enum that causes the .java file to be over 500KB in size. Eclipse can build it for some reason; the eclipse-exported ant build.xml cannot. I'm looking into this and will update this post.

    0 讨论(0)
提交回复
热议问题