< prev index next >

test/runtime/Nestmates/membership/TestNestmateMembership.java

Print this page




   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug 8046171
  27  * @summary Test the various rules for nest members and nest-tops
  28  * @compile -XDdisablePrivateAccessors
  29  *          TestNestmateMembership.java
  30  *          PackagedNestTop.java
  31  *          PackagedNestTop2.java
  32  *          NotAMember2.java
  33  * @compile MissingNestTop.jcod
  34  *          ArrayNestTop.jcod
  35  *          NotAMember.jcod
  36  *          NotAMember2.jcod
  37  *          PackagedNestTop.jcod
  38  *          PackagedNestTop2Member.jcod
  39  * @run main/othervm TestNestmateMembership
  40  */
  41 
  42 // We test all the "illegal" relationships between a nest member and its nest-top
  43 // except for the case where the name of the nest-member matches the name listed
  44 // in the nest-top, but resolves to a different class. There doesn't seem to
  45 // be a way to construct that scenario.
  46 // For each nested class below there is a corresponding .jcod file which breaks one
  47 // of the rules regarding nest membership. For the package related tests we have
  48 // additional PackageNestTop*.java sources. We also have NotAMember2.java.
  49 // Note that all the .java files must be compiled in the same step, while all




   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug 8046171
  27  * @summary Test the various rules for nest members and nest-tops
  28  * @compile TestNestmateMembership.java

  29  *          PackagedNestTop.java
  30  *          PackagedNestTop2.java
  31  *          NotAMember2.java
  32  * @compile MissingNestTop.jcod
  33  *          ArrayNestTop.jcod
  34  *          NotAMember.jcod
  35  *          NotAMember2.jcod
  36  *          PackagedNestTop.jcod
  37  *          PackagedNestTop2Member.jcod
  38  * @run main/othervm TestNestmateMembership
  39  */
  40 
  41 // We test all the "illegal" relationships between a nest member and its nest-top
  42 // except for the case where the name of the nest-member matches the name listed
  43 // in the nest-top, but resolves to a different class. There doesn't seem to
  44 // be a way to construct that scenario.
  45 // For each nested class below there is a corresponding .jcod file which breaks one
  46 // of the rules regarding nest membership. For the package related tests we have
  47 // additional PackageNestTop*.java sources. We also have NotAMember2.java.
  48 // Note that all the .java files must be compiled in the same step, while all


< prev index next >