Community
Participate
Working Groups
Given a SuperTeam with a role file. Given a SubTeam with an inline role. Trying to create a method binding inside the SubTeam's role throws: org.eclipse.core.runtime.CoreException: org.eclipse.jface.text.BadLocationException at org.eclipse.jdt.internal.ui.text.correction.proposals.CUCorrectionProposal.performChange(CUCorrectionProposal.java:354) at org.eclipse.jdt.internal.ui.text.correction.proposals.CUCorrectionProposal.apply(CUCorrectionProposal.java:311) at org.eclipse.jface.text.contentassist.CompletionProposalPopup.insertProposal(CompletionProposalPopup.java:935) at org.eclipse.jface.text.contentassist.CompletionProposalPopup.insertSelectedProposalWithMask(CompletionProposalPopup.java:881) ... ... Caused by: org.eclipse.jface.text.BadLocationException at org.eclipse.jface.text.link.LinkedPositionGroup.enforceDisjoint(LinkedPositionGroup.java:148) at org.eclipse.jface.text.link.LinkedPositionGroup.enforceDisjoint(LinkedPositionGroup.java:162) at org.eclipse.jface.text.link.LinkedModeModel.enforceDisjoint(LinkedModeModel.java:306) at org.eclipse.jface.text.link.LinkedModeModel.addGroup(LinkedModeModel.java:418) at org.eclipse.jdt.internal.ui.viewsupport.LinkedProposalModelPresenter.enterLinkedMode(LinkedProposalModelPresenter.java:98) at org.eclipse.jdt.internal.ui.text.correction.proposals.CUCorrectionProposal.performChange(CUCorrectionProposal.java:343)
Created attachment 195913 [details] project for reproducing This example project should help to reproduce. Go inside Role4. Do Ctrl-Space Select test() (method binding)
Created attachment 196292 [details] Fix All that matters to reproduce was a liftable method return type, for which we created two linked proposal groups: - one for changing return type to "void" - one for changing base return to a corresponding role Fixed by merging both groups into one (by using the same groupID)
Committed as r1620.
Verified using build 201105311237