Bug 45 : StringIndexOutOfBoundsException when a entity bean does not have a package
Priority 
Low
Reported Version 
 
Logged By 
Rob
Status 
Fixed
Fixed Version 
0.9.8
Assigned To 
 
Product 
Ebean - core
Duplicate Of 
 
Created 
19/10/2008
Updated 
19/10/2008
Type 
Bug
 
Attachments 
No attachments

Hi Rob!

I found a nastly little bug that happens if a class is in the "root package" (not a good style of coding, but it was just a test-dummy):

java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1938)
at com.avaje.ebean.server.util.ClassPathSearch.searchFiles(ClassPathSearch.java:206)

 
Rob 19 Oct 09:02
Fixed in 0.9.8

Fixed in 0.9.8.

woResponse

Upload a file