Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6579119

"ClassNotLoadedException: Type int[][] not loaded" when access type of local variable

XMLWordPrintable

    • generic
    • generic

      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

            Unassigned Unassigned
            sboikovsunw Semen Boikov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: