XFire

Java 5 module is broken on JRockit

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.1
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Activity

Hide
Dan Diephouse added a comment -

This is fixed now in SVN.

Show
Dan Diephouse added a comment - This is fixed now in SVN.
Hide
Tim Smith added a comment -

I have just experienced this problem using XFire 1.1RC on Weblogic 9.1 with JRockit 5.0.

From Java5TypeCreator.java lines 85-87:
if (m.getParameterAnnotations() == null || m.getParameterAnnotations().length > index

m.getParameterAnnotations()[index] == null)
return null;

It seems that the second or condition "m.getParameterAnnotations().length > index" is not correct and that it should be "m.getParameterAnnotations().length <= index".

Show
Tim Smith added a comment - I have just experienced this problem using XFire 1.1RC on Weblogic 9.1 with JRockit 5.0. From Java5TypeCreator.java lines 85-87: if (m.getParameterAnnotations() == null || m.getParameterAnnotations().length > index
m.getParameterAnnotations()[index] == null) return null;
It seems that the second or condition "m.getParameterAnnotations().length > index" is not correct and that it should be "m.getParameterAnnotations().length <= index".
Hide
Dan Diephouse added a comment -

Thanks Tim. I fixed this in SVN.

Show
Dan Diephouse added a comment - Thanks Tim. I fixed this in SVN.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: