Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access modifier of DatacenterBroker::cloudletsSubmitted #9

Closed
GoogleCodeExporter opened this issue Mar 18, 2015 · 2 comments
Closed

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Create a subclass of DatacenterBroker
2. Implement a method (new or overriden) that uses the 
DatacenterBroker::cloudletsSubmitted private field.
3.

What is the expected output? What do you see instead?

The new class won't inherit the private field 
DatacenterBroker::cloudletsSubmitted. This prevents it from compiling 
successfully.

What version of the product are you using? On what operating system?

CloudSim 2.1.1
OS: Linux and Windows

Please provide any additional information below.

Changing the field's access modifier to protected or public will solve this 
issue. An alternate solution is to create a public getter/setter, since this is 
the only field of this class that is not encapsulated.

Original issue reported on code.google.com by thiagot...@gmail.com on 2 Sep 2011 at 12:46

@GoogleCodeExporter
Copy link
Author

All fields from DatacenterBroker were changed from "private" to "protected" to 
allow easy extension.

Original comment by rodrigo.calheiros on 15 Dec 2011 at 3:45

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

Issue 16 has been merged into this issue.

Original comment by rodrigo.calheiros on 15 Dec 2011 at 3:48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant