I am unable to understand the meaning of observable as talked about with respect to Scope of a Package as stated in JLS.
The only information I could get in this regard was the Observable class in the java.util package, which requires objects to be implemented with the Observer interface. This doesn't appear to be releavant to package declarations.
My questions are -
1. How do we set packages observable/not-observable. Sec7.4.3 states that a package is only observable is either a compilation
unit or a subpackage is observable??
2. How do we know whether a package is observable or not-observable
3. How do we set compilation units observable/or not-observable. Refer question 1 above.
4. What do you mean by the sentence above - "subpackage declarations are never in scope". You can always declare subpackages as - myPackage.mySubPackage.
Following are quotes from various sections of JLS -
JLS Scope of a Package Declaration states -
I have quoted from different parts of JLS Chap 7 which talk about "observable" in this regard -
JLS 7.2 -
JLS 7.3 -
JLS 7.4.3
[This message has been edited by Jane Griscti (edited March 08, 2001).]