Bug 784991

Summary: JON 3.0.1 RC#1 Cannot reference classes succinctly without package names
Product: [Other] RHQ Project Reporter: Mike Foley <mfoley>
Component: CLIAssignee: Ian Springer <ian.springer>
Status: CLOSED NOTABUG QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: high    
Version: 3.0.1CC: ccrouch, hrupp, ian.springer
Target Milestone: ---   
Target Release: JON 3.0.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-31 22:37:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 782579    

Description Mike Foley 2012-01-26 20:53:32 UTC
Description of problem:  JON 3.0.1 RC#1  CLI Doc example 2.3 incorrectly states that some classes can be referenced succinctly without package names


Version-Release number of selected component (if applicable):  JON 3.01 RC1


How reproducible: 100%


Steps to Reproduce:
1.  read JON CLI doc example 2.3
2.  type recommended succinct version:  var criteria = new ResourceCritiera();

  
Actual results:  error


Expected results:  variable is set


Additional info:  CLI Doc example 2.3 states ....

For example, the class org.rhq.core.domain.critiera.ResourceCriteria is commonly used to query resources. The entire class path can be given when calling that class:
var criteria = new org.rhq.core.domain.criteria.ResourceCriteria();
var resource = new org.rhq.core.domain.resource.Resource();
Because the domain class is already imported, this can be more succinctly written as:
var criteria = new ResourceCritiera();
var resource = new Resource();

Comment 1 Mike Foley 2012-01-30 16:25:53 UTC
12/30/2012 BZ triage meeting mfoley, ccrouch, loleary, asantos

Comment 3 Mike Foley 2014-09-29 14:38:53 UTC
.