Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Error message: "Branch target offset to large for short"



Looks like you've hit bug 70201
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=70201) which was fixed in
the tree earlier this week (download the latest development jar from the
AspectJ download page). The bug fix can't solve the fundamental problem
(that you have a single method which is bigger than the JVM limit of 64K),
but it will give you a better message indicating the type and method in
question.

Every case I've ever seen where someone hits these limits, it has been
because they are generating aspects programmatically. In the referenced bug
report for example, the generated aspect contained a pointcut with a very
large number of 'target(xxx)' elements. There were so many that the runtime
test generated blew the 64K limit. The solution is to change the code
generation to break things into smaller chunks.

-- Adrian.
adrian_colyer@xxxxxxxxxx





11 August 2004 09:38
To: aspectj-users@xxxxxxxxxxx
cc:
From: Holger Spiering <Holger.Spiering@xxxxxxxxxxxxxxx>
Subject: [aspectj-users] Error message: "Branch target offset to large for
short"



Hi,

i'm trying to integrate AspectJ 1.2 in an existing project. During the
compile/weaving process, i got the error message: "Branch target offset to
large for short". There was no other tip, in wich class the problem is
located. I found the class manually, that causes the error, but not a
reason why.

Can anyone help?

Thanks
Holger
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
 http://dev.eclipse.org/mailman/listinfo/aspectj-users



Back to the top