Hi,
Code usage is easily visible when trying
JcloudsLocationTest.testCreateWithFlagsSubLocation.
In debug log it is visible a message that Locations.manage is being used
which was deprecated several releases ago.
The call chain is to get to the manage call is:
JcloudsLocation.newSublocation -> LocationManager.createLocation ->
InternalLocationFactory.createLocation -> AbstractLocation.setParent
...... AbstractLocation.addChild-> Locations.manage
I think the problem is in how setParent or works or
in the snippet in LocalLocationManager.createLocation:
T loc = locationFactory.createLocation(spec);
if (!createUnmanaged) {
manage(loc);
setParent uses manage in the first line of snippet in createLocation and
manage recursive is used on the third line of the snippet.
I see contradiction here.
I am off for today and will think about it tomorrow, however some early
feedback will be useful.
Valentin Aitken
Software Engineer
Cloudsoft Corporation Ltd.
www.cloudsoft.io