Bug 560702 - entry breakpoint not hit
Summary: entry breakpoint not hit
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.14   Edit
Hardware: PC Windows 10
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2020-03-02 13:22 EST by T. Orf CLA
Modified: 2024-02-20 01:40 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description T. Orf CLA 2020-03-02 13:22:49 EST
A method entry breakpoint for sun.net.www.protocol.http.HttpURLConnection.HttpInputStream.close() of lib/jrt-fs.jar is not hit. When I replace it with a breakpoint on the first line of its body, it works.

I don't get any warning about not being able to install that breakpoint. No entry in the "Error Log" view either.

I think I had the same problem with other methods from time to time, but don't remember which ones.

Here's a test program to get there:

import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLConnection;

public class ForHttpInputStreamBreakpointTest {
    public static void main(String[] args) throws Exception {
        URLConnection conn = new URL("http://www.eclipse.org").openConnection();
        conn.getContent();
        ((HttpURLConnection) conn).disconnect();
    }
}

Eclipse version: Eclipse IDE for Java Developers / Version: 2019-12 (4.14.0) / Build id: 20191212-1212

Java version (used to run both Eclipse and the test program):
  openjdk version "11.0.2" 2019-01-15 LTS
  OpenJDK Runtime Environment Zulu11.29+11-CA (build 11.0.2+9-LTS)
  OpenJDK 64-Bit Server VM Zulu11.29+11-CA (build 11.0.2+9-LTS, mixed mode)
Comment 1 Sarika Sinha CLA 2020-03-03 01:05:36 EST
I can reproduce this. Mostly because it is part of an inner class.
Comment 2 Eclipse Genie CLA 2022-02-22 08:34:41 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 3 T. Orf CLA 2022-02-23 04:12:28 EST
Still relevant. Reproduced with

Eclipse IDE for Enterprise Java and Web Developers
Version: 2021-12 (4.22.0)
Build id: 20211202-1639

openjdk version "11.0.13" 2021-10-19 LTS
OpenJDK Runtime Environment Zulu11.52+13-CA (build 11.0.13+8-LTS)
OpenJDK 64-Bit Server VM Zulu11.52+13-CA (build 11.0.13+8-LTS, mixed mode)
Comment 4 Sarika Sinha CLA 2022-02-23 06:11:53 EST
Anyone can look at fixing this?
Comment 5 Eclipse Genie CLA 2024-02-20 01:40:39 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.