Bugs item #874163, was opened at 2004-01-10 01:17
Message generated for change (Comment added) made by loubyansky
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=874163&group_id=22866

Category: JBossCMP
Group: v3.2
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Raphael Drüner (rdruener)
>Assigned to: Alexey Loubyansky (loubyansky)
Summary: Error compiling EJB-QL with JDK 1.3.1

Initial Comment:
OS: Windows XP
JDK: SUN 1.3.1
JBOSS: 3.2.3

Hi,

the class JDBCEJBQLCompiler uses the method "public 
StringBuffer append(StringBuffer sb)" from the 
StringBuffer Class which is not available in JDK prior to 
version 1.4.

It's quite easy to reproduce as even simple SELECT 
queries leads to the following deployment exception:

java.lang.NoSuchMethodError
        at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLCompiler.visit
(JDBCEJBQLCompiler.java:932)
        at 
org.jboss.ejb.plugins.cmp.ejbql.ASTSelect.jjtAccept
(ASTSelect.java:25)
        at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLCompiler.visit
(JDBCEJBQLCompiler.java:487)
...

Bye,
Raphael

----------------------------------------------------------------------

>Comment By: Alexey Loubyansky (loubyansky)
Date: 2004-01-11 16:27

Message:
Logged In: YES 
user_id=543482

It is definitely not a bug in JBoss. StringBuffer in 1.3.1
still has append(Object obj). The problem is that you are
running Java code compiled with 1.4 compiler in 1.3.1
machine. If you recompile JBoss with 1.3.1 the problem will
go away.

I believe, there were performance reasons (avoid toString())
to add append(StringBuffer sb) while already having
append(Object o). I am not going to fix it right now unless
someone convinces me that I should.

In general, I think, it is a good practice to compile the
application with the compiler compliant with the target machine.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=874163&group_id=22866


-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to