Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6462447
Votes 0
Synopsis select/update query sharing parameter throws ArrayIndexOutOfBoundException
Category jdbc:eod
Reported Against
Release Fixed mustang(b98)
State 10-Fix Delivered, bug
Priority: 2-High
Related Bugs
Submit Date 22-AUG-2006
Description
Code :

interface I_Query005 extends BaseQuery {
    @Select(sql="SELECT * from query005 where firstName=?1 and lastName=?1")
    DataSet<Player> getPlayer(String fName);
}


This select statement will not work and throw ArrayIndexOutOfBoundException as both parameters need to be initialized by same argument.

This is applicable for update statement as well.
Posted Date : 2006-08-22 11:22:15.0
Work Around
N/A
Evaluation
The method field's type need to be properly assigned when setting parameter value
Posted Date : 2006-08-22 11:27:18.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang