| Summary: | Schema tool fails with IBM 1.6 JDK | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise SOA Platform 5 | Reporter: | Len DiMaggio <ldimaggi> |
| Component: | Tooling, Build Process | Assignee: | Julian Coleman <jcoleman> |
| Status: | CLOSED NEXTRELEASE | QA Contact: | |
| Severity: | urgent | Docs Contact: | |
| Priority: | urgent | ||
| Version: | 5.1.0.ER1 | ||
| Target Milestone: | --- | ||
| Target Release: | 5.1.0.ER2 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| URL: | http://jira.jboss.org/jira/browse/SOA-2316 | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-02-25 05:56:56 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Len DiMaggio
2010-09-13 20:48:52 UTC
See: http://jira.codehaus.org/browse/GROOVY-4094 '...On Sun JVM, the ArrayList class has a private property called size, that's why list.size returns you the value of that property. On IBM JVM, the ArrayList class does not have any property called size, in that case groovy behavior is to apply the property on each member of the collection and collect values of all member.property in a collection and return. So, it now expects "size" property on each collection member, but that also fails because String class also does not have any size property. If you are interested in getting the size of the list then list.size is not the groovy-way to get it anyway - it is list.size(). To fix this - change line 387 in build.xml from:
if (db_driver.size == 0) {
to
if (db_driver.size() == 0) {
Fixed with revision 6558 of: build-tools/resource/schema-tool/build.xml Commit message: SOA-2316 Use list.size(), not list.size. From Len DiMaggio. Verified fixed in ER2 build. Temporarily reopening to update release note info. Release Notes Docs Status: Added: Not Required Writer: Added: dlesage |