United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6621691 : (dc) test/java/nio/channels/DatagramChannel/NotBound.java missing public modifier

Details
Type:
Bug
Submit Date:
2007-10-25
Status:
Closed
Updated Date:
2010-04-02
Project Name:
JDK
Resolved Date:
2009-03-24
Component:
core-libs
OS:
generic
Sub-Component:
java.nio
CPU:
generic
Priority:
P4
Resolution:
Not an Issue
Affected Versions:
7
Fixed Versions:
7

Related Reports
Backport:

Sub Tasks

Description
TEST: java/nio/channels/DatagramChannel/NotBound.java
JDK under test: (/opt/jprt/temp/P2/T/165459.ab23780/testproduct/solaris_i586_5.10-product)
java version "1.7.0-2007-10-18-165459.ab23780.jsr203-master"
Java(TM) SE Runtime Environment (build 1.7.0-2007-10-18-165459.ab23780.jsr203-master-jprtadm_18_Oct_2007_10_05-b00)
Java HotSpot(TM) Client VM (build 11.0-b08, mixed mode)

ACTION: build -- Passed. Build successful
REASON: Named class compiled on demand
TIME:   0.716 seconds
messages:
command: build NotBound
reason: Named class compiled on demand
elapsed time (seconds): 0.716

ACTION: compile -- Passed. Compilation successful
REASON: .class file out of date or does not exist
TIME:   0.716 seconds
messages:
command: compile /tmp/jprt/temp/P2/T/165459.ab23780/source/test/java/nio/channels/DatagramChannel/NotBound.java
reason: .class file out of date or does not exist
elapsed time (seconds): 0.716
STDOUT:
STDERR:

ACTION: main -- Error. java.lang.IllegalAccessException: Class com.sun.javatest.regtest.MainWrapper$MainThread can not access a member of class NotBound with modifiers "public static"
REASON: Assumed action based on file name: run main NotBound 
TIME:   0.17 seconds
messages:
command: main NotBound
reason: Assumed action based on file name: run main NotBound 
elapsed time (seconds): 0.17
STDOUT:
STDERR:
java.lang.IllegalAccessException: Class com.sun.javatest.regtest.MainWrapper$MainThread can not access a member of class NotBound with modifiers "public static"
	at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:95)
	at java.lang.reflect.Method.invoke(Method.java:614)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:78)
	at java.lang.Thread.run(Thread.java:675)

JavaTest Message: Verify that the class defining the test is
JavaTest Message: declared public (test invoked via reflection)

STATUS:Error.java.lang.IllegalAccessException: Class com.sun.javatest.regtest.MainWrapper$MainThread can not access a member of class NotBound with modifiers "public static"

TEST RESULT: Error. java.lang.IllegalAccessException: Class com.sun.javatest.regtest.MainWrapper$MainThread can not access a member of class NotBound with modifiers "public static"



This bug was also reported on the core-lib-dev mailing list:
http://mail.openjdk.java.net/pipermail/core-libs-dev/2007-October/000095.html

                                    

Comments
EVALUATION

This test has been mostly replaced so this problem no longer exists.
                                     
2009-03-24
EVALUATION

This test will be replaced once 6621689 is integrated so for now tag the test with the @ignore tag.
                                     
2008-05-30



Hardware and Software, Engineered to Work Together