Bug 120206 - Can not retrieve an existing legacy free ApplicationType
Can not retrieve an existing legacy free ApplicationType
Status: NEW
Product: Red Hat Web Application Framework
Classification: Retired
Component: other (Show other bugs)
nightly
All Linux
medium Severity medium
: ---
: ---
Assigned To: ccm-bugs-list
Jon Orris
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2004-04-06 15:37 EDT by Brett Prucha
Modified: 2008-05-01 11:39 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Brett Prucha 2004-04-06 15:37:58 EDT
Description of problem:

You can create a new, legacy free application by calling

    new ApplicationType(String, String)

However if you try to retrieve the new ApplicationType at another 
time, you can never get m_legacyFree == true.  This causes problems 
when you try and create an Application of the new ApplicationType 
where m_legacyFree == false and getPackageType() == null.  You will 
encounter null pointer exceptions.

I added the following lines to ApplicationType(DataObject) and 
ApplicationType(String)

        if(getPackageType() == null)
        	m_legacyFree = true;

Note You need to log in before you can comment on or make changes to this bug.