The following fragment of code gives error in netbeans IDE:
protected static <T extends TaskElement> T create(T taskElement,
TaskSource taskSource) {
taskElement.taskSource = taskSource;
error - "taskSource has private access in TaskElement"
and several errors of the same type "private access" in other three classes
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks! This commit fix all my compile errors.
For information: I use jdk 1.7 from Sun in windows (not OpenJDK as specified in commit) (and have this errors, with jdk 1.6 too)
and problem was not that the private member was accessed from static context but the fact that it was accessed from probably descendant ( T extend TaskElement). In my opinion…?
Sergey.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The following fragment of code gives error in netbeans IDE:
protected static <T extends TaskElement> T create(T taskElement,
TaskSource taskSource) {
taskElement.taskSource = taskSource;
error - "taskSource has private access in TaskElement"
and several errors of the same type "private access" in other three classes
This seems a problem with Java 7 that has been fixed in the following commit: http://libreplan.git.sourceforge.net/git/gitweb.cgi?p=libreplan/libreplan;a=commit;h=c5639974247a2857198e6e7adf0ef49738624705
This will be fixed in the next minor version. Meanwhile you can clone the repository with the following command:
I hope this helps. Bye,
Rego
Thanks! This commit fix all my compile errors.
For information: I use jdk 1.7 from Sun in windows (not OpenJDK as specified in commit) (and have this errors, with jdk 1.6 too)
and problem was not that the private member was accessed from static context but the fact that it was accessed from probably descendant ( T extend TaskElement). In my opinion…?
Sergey.