This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 267888

Summary: JNI tests: IDE hangs if user selected "Make Current" in Sessions tab
Product: cnd Reporter: soldatov <soldatov>
Component: DebuggerAssignee: Maria Tishkova <mromashova>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P2    
Version: 8.2   
Hardware: PC   
OS: Other   
Issue Type: DEFECT Exception Reporter:
Attachments: Stack Dump

Description soldatov 2016-09-05 18:34:06 UTC
Automatic test hangs in javamixed suite. 

Prepare JNI projects: 
- Launch NetBeans Dev 201609050002 on Ubuntu 16.04
- Create Java project 
- Add simple JNI code. For example: 
package javaapplication2; 

public class JavaApplication2 { 

public static void main(String[] args) { 
System.loadLibrary("CppJNILibrary_2"); 
foo(); 
} 
public static native void foo(); 
} 

- Build Java project 
- Call context menu on Java file in Project tab 
- Select Tools|Mixed Development|Generate JNI Library Project 
- Press Finish button in New Project wizard 
- Add "puts("Hi!");" into JavaApplication2.c 
- Build native library 
- Lainch Java project 
==> I see "Hi" message in Output tab

Scenario: 
- Set line breakpoint in "foo();" line in JavaApplication2.java 
- Push "Debug Project" button in tool bar 
- Push "Step Into" button in tool bar 
==> after small delay Dbx stopped on "puts("Hi!");" line 
- Open Sessions tab 
- Call context menu on "javaapplication2.JavaApplication2" row 
- Select "Make Current" 
==> IDE hangs
Comment 1 soldatov 2016-09-05 18:37:44 UTC
Created attachment 161914 [details]
Stack Dump
Comment 2 soldatov 2016-09-05 18:41:51 UTC
Originally I created CR24594030, but I can reproduce this problem on Ubuntu+GDB too.
Comment 3 Maria Tishkova 2016-11-30 13:12:51 UTC

*** This bug has been marked as a duplicate of bug 268802 ***