JDK-6579119 : "ClassNotLoadedException: Type int[][] not loaded" when access type of local variable
  • Type: Bug
  • Component: core-svc
  • Sub-Component: debugger
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Won't Fix
  • OS: generic
  • CPU: generic
  • Submitted: 2007-07-11
  • Updated: 2023-12-14
  • Resolved: 2016-11-04
Related Reports
Relates :  
Relates :  
Description
This failure was found running different JDI tests in single VM.
Test scenario: debuggee starts test thread which in its 'run' method creates and uses variable of type 'int[][]' and then test thread is suspended at the end of method 'run'. Debugger first calls VirtualMachine.allClasses and then tries get type of local variables for current frame of test thread. Currently debugger gets ClassNotLoadedException when calls LocalVariable.type, but actually since local variable was already created and used looks like this exception shouldn't be thrown. This failure also reproduces with JDK6. Test is attached.

Test output example:

ServerThread: ServerSocket.accept()
Event: VMStartEvent in thread main
debuggee out>>>Try create socket (attempt 1)
debuggee out>>>Create socket
ServerThread: create streams
debuggee out>>>Create streams
debuggee out>>>Streams created
ServerThread: finish
debuggee out>>>Command received: RESUME_TEST_THREAD
debuggee out>>>Local variable: [[I@4b035d
Event: MethodExitEvent@LocalVariableTest_Debuggee$TestThread:42 in thread TestThread
Thread in method: LocalVariableTest_Debuggee$TestThread.run()
Variable: intArray in LocalVariableTest_Debuggee$TestThread.run()@LocalVariableTest_Debuggee$TestThread:40
Unexpected exception: com.sun.jdi.ClassNotLoadedException: Type int[][] not loaded
com.sun.jdi.ClassNotLoadedException: Type int[][] not loaded
	at com.sun.tools.jdi.VirtualMachineImpl.findBootType(VirtualMachineImpl.java:1051)
	at com.sun.tools.jdi.ReferenceTypeImpl.findType(ReferenceTypeImpl.java:1165)
	at com.sun.tools.jdi.LocalVariableImpl.findType(LocalVariableImpl.java:107)
	at com.sun.tools.jdi.LocalVariableImpl.type(LocalVariableImpl.java:102)
	at LocalVariableTest_Debugger$EventListener.run(LocalVariableTest_Debugger.java:285)
debuggee out>>>Command received: QUIT
debuggee out>>>Exit
Event: VMDeathEvent
Event: VMDisconnectEvent
Stop listen events
Exit code: 95
TEST FAIL

Comments
This is not on our list of current priorities. If this changes, please reopen this issue.
04-11-2016