persistence@glassfish.java.net

Problem in MetadataHelper

From: Adam Bien <abien_at_adam-bien.com>
Date: Fri, 04 Aug 2006 09:58:05 +0200

Hello,

I found a problem in the Class MetadataHelper.getAttributeNameFromMethodName

Problem:
java.lang.StringIndexOutOfBoundsException: String index out of range: 3
        at java.lang.String.substring(String.java:1765)
        at
oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataHelper.getAttributeNameFromMethodName(MetadataHelper.java:99)

The problem was: I named the attribute "id" which is too short. I
renamed the attribute and the it worked.

I would like to fix the problem. Can I contribute my bug fix, if yes, how?

regards,

adam

-- 
 Dipl. Inf. adam bien
 
 BEA Technical Director
 Sun Certified Java Programmer
 Sun Certified Enterprise Java Architect 
 Sun Enterprise Java Trainer
 
 Mobile: 0049(0)170 280 3144
 eMail:  abien_at_adam-bien.com
 Homepage: www.adam-bien.com
 Weblog: http://www.adam-bien.com/roller/page/abien 
 ----------
Book author:
   
   Enterprise Architekturen
   entwickler.press 2006
   ISBN: 393504299X
 
 and Enterprise Java Frameworks, 
 J2EE Patterns, J2EE HotSpots and Struts.