geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ingo Proetel (Created) (JIRA)" <>
Subject [jira] [Created] (GERONIMO-6199) Some Java vendor have less than six characters.
Date Thu, 20 Oct 2011 15:59:10 GMT
Some Java vendor have less than six characters.

                 Key: GERONIMO-6199
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: JVM-compatibility
            Reporter: Ingo Proetel
            Priority: Minor

The static initializer code in '' assumes that
the content of the 'java.vm.vendor' has at least six characters otherise the initialization
will fail. (This issue came up before in GERONIMO-4209.)

The following code could fix this issue:

String fullVendorName = getFullName();
boolean bApache = (fullVendorName.length() >= 6) &&  fullVendorName.substring(0,
6).equalsIgnoreCase("Apache"); // aka. Apache Harmony
boolean bIBM = (fullVendorName.length() >= 3) &&  fullVendorName.substring(0, 3).equalsIgnoreCase("IBM");
// aka. IBM, but not IBM Hybrid
boolean bSun = !bIBM && !bApache; // default all others to Sun
boolean bHP = (fullVendorName.length() >= 6) &&   fullVendorName.substring(0, 6).equalsIgnoreCase("Hewlet");
// aka. Hewlett-Packard Company
boolean bIBMHybrid = false;

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message