Update causes Eclipse to fail to be able to set breakpoints

Bug #1050988 reported by Carl Fletcher
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
openjdk-7 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The latest security update for openjdk (on 2012-09-11) now causes Eclipse to fail to be able to set a breakpoint in code.

Steps to reproduce:
1. Install Eclipse Juno
2. Create a Java project, with a class
3. Attempt to set a breakpoint on a line of code

What happens is you get a popup with the message "The chosen operation is not enabled". There is also an option in the context menu to "Toggle Breakpoint Enablement". This gives the same error popup. It did not appear to deposit anything in the Eclipse .log

The only way I've found to fix this is to install the Sun/Oracle JDK and use that instead, breakpoints work OK then.

Clearly this could be a bug in Eclipse, but it didn't happen at all, and then it started happening with the latest openjdk update, so I'm filing it here and will move it if I get guidance to do so.

My environment:
I am not using Eclipse from Ubuntu repositories, I am using the main download from eclipse.org (Build id: 20120614-1722)

Ubuntu 12.04.1 LTS

openjdk-7-jre:
  Installed: 7u7-2.3.2-1ubuntu0.12.04.1
  Candidate: 7u7-2.3.2-1ubuntu0.12.04.1
  Version table:
 *** 7u7-2.3.2-1ubuntu0.12.04.1 0
        500 http://gb.archive.ubuntu.com/ubuntu/ precise-updates/universe amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ precise-security/universe amd64 Packages
        100 /var/lib/dpkg/status
     7~u3-2.1.1~pre1-1ubuntu2 0
        500 http://gb.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages

description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in openjdk-7 (Ubuntu):
status: New → Confirmed
Revision history for this message
Massimo Vighetti (massimo-vighetti-gmail) wrote :

Same problem using Eclipse Juno on Kubuntu 12.4. No error reported in Eclipse error log

Revision history for this message
José Cabo (folcwine) wrote :

Any news of a workarround or something??¿¿

Revision history for this message
Massimo Vighetti (massimo-vighetti-gmail) wrote : Re: [Bug 1050988] Re: Update causes Eclipse to fail to be able to set breakpoints

Hi José

No news but I tried a simple workaround.

Install Sun Java JDK 1.7.0_7 (if you are using Ubuntu or Linux distro
with alternatives set it as default java with update-altervatives )
That fis the problem

Massimo

Revision history for this message
Carl Fletcher (jareth0205-2) wrote :

Workaround is to use the Oracle JDK, or install the previous version and pin it.

Revision history for this message
Carl Fletcher (jareth0205-2) wrote :

Confirmed this is now fixed. Thanks!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.