getrailo/railo — pull request #225 by clitnak (2013-07-31 14:47:19+00:00)
Title: componentListPackage substring error

Long story short. I get an error with componentListPackage() when used inside an archive-first mapping. Unfortunately, it doesn't do it for all my archive-first mappings. BUT it does do it for the /railo-context mapping. If you switch that to be an "archive-first" mapping and login and view the datasource page in the admin, it will error. It looks like it can't find the 'tag' in the class's bytes. I think it might have to do with the default encoding when reading the file (as that has changed lately). I thought about adding a function to ClassUtils.java that will get the source name from class binary by reading the java file and looking up the 5th entry in the constant pool. I decided to make componentListPackage at least NOT error if it can't find in the class file.

If you want me to open a ticket for this let me know. I hesitate because I am not sure if I am just doing something wrong or not.