avatar
JSP is rubbish!# Java - 爪哇娇娃
xt
1
居然有个64K的file limit.不知道哪个粪叉做的.可以和给W2K做中文系统的那些弱智有一
比了.
avatar
t*s
2
谁说的?

【在 xt 的大作中提到】
: 居然有个64K的file limit.不知道哪个粪叉做的.可以和给W2K做中文系统的那些弱智有一
: 比了.

avatar
xt
3

有一
I just had tonnes of crashes due to javac.err.branch.too.big error. It's
because the generate files cannot exceed 64K.

【在 t**s 的大作中提到】
: 谁说的?
avatar
e*g
4

well then it's not JSP problem, rather javac. nowadays nobody write
that kind big source file anyway. try break your JSP into subpages, and
use dynamic includes.
that being said, JSP IS rubbish, I agree, for a handful reasons.

【在 xt 的大作中提到】
:
: 有一
: I just had tonnes of crashes due to javac.err.branch.too.big error. It's
: because the generate files cannot exceed 64K.

avatar
c*t
5
Not being able to compile greater than 64K byte code is really a problem
in certain applications. Mainly in the lexers and parsers where large
precomputed tables is stored and could easily exceed 64K.

【在 e***g 的大作中提到】
:
: well then it's not JSP problem, rather javac. nowadays nobody write
: that kind big source file anyway. try break your JSP into subpages, and
: use dynamic includes.
: that being said, JSP IS rubbish, I agree, for a handful reasons.

avatar
g*g
6
precomputed tables? Can't they be saved as external resources?

【在 c*****t 的大作中提到】
: Not being able to compile greater than 64K byte code is really a problem
: in certain applications. Mainly in the lexers and parsers where large
: precomputed tables is stored and could easily exceed 64K.

avatar
xt
7

The only thing I can tell you is that 64K is a very small limit for generated
java code. If you have a big form containing a couple of select boxes, it's
dead.

【在 g*****g 的大作中提到】
: precomputed tables? Can't they be saved as external resources?
avatar
m*t
8

JVM has certain limitations on the number of constants and a few
other things. I'm not aware of any limitation on the javac side.

【在 xt 的大作中提到】
:
: The only thing I can tell you is that 64K is a very small limit for generated
: java code. If you have a big form containing a couple of select boxes, it's
: dead.

avatar
F*l
9
Maybe you can convert it to servlet. If you have a jsp engine, it should not
be difficult to convert a html to a servlet. So you can try a servlet
instead a jsp, but they are euqal.
But I don't know if there is also such a limitation for java file.

【在 xt 的大作中提到】
:
: The only thing I can tell you is that 64K is a very small limit for generated
: java code. If you have a big form containing a couple of select boxes, it's
: dead.

avatar
xt
10

There is no such limitation to regular java code I guess. I have
written methods way larger than 64K if compiled into bytecode.
It's not difficult, but it is not what we are looking for.

【在 F*****l 的大作中提到】
: Maybe you can convert it to servlet. If you have a jsp engine, it should not
: be difficult to convert a html to a servlet. So you can try a servlet
: instead a jsp, but they are euqal.
: But I don't know if there is also such a limitation for java file.

avatar
xt
11

The size of bytecode from a method cannot be more than 64 for JSP.

【在 m******t 的大作中提到】
:
: JVM has certain limitations on the number of constants and a few
: other things. I'm not aware of any limitation on the javac side.

avatar
m*t
12

I'm sorry, I misread your original post. Yes, that 64K limitation
is the general limitation of the JVM I was talking about. It's not
just for jsp.

【在 xt 的大作中提到】
:
: The size of bytecode from a method cannot be more than 64 for JSP.

avatar
c*t
13
Not if you are trying to obtain the maximum speed. Also having external
resources would slightly complicate resource management a bit.

【在 g*****g 的大作中提到】
: precomputed tables? Can't they be saved as external resources?
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。