Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 343146 - Type parameters in tooltip disappear when pressing F2
Summary: Type parameters in tooltip disappear when pressing F2
Status: CLOSED FIXED
Alias: None
Product: Xtend
Classification: Tools
Component: Core (show other bugs)
Version: 2.3.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-18 08:42 EDT by Moritz Eysholdt CLA
Modified: 2017-10-31 10:58 EDT (History)
3 users (show)

See Also:
sebastian.zarnekow: juno+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Moritz Eysholdt CLA 2011-04-18 08:42:01 EDT
Steps to reproduce:

1. Create an Xtend2 file and open it in the editor.

2. Create contents that raises an error:
----
class Foo {
  test_fail() {
    newArrayList("ab", "abc").fold(0, [s,  max | Math::max(s.length, max)])
  }
}
-----

3. display the error message by moving the cursor over the error annotation on the left-hand side of the editor. 

4. press F2 to turn the tooltip into an actual window. 

-> the error message changes, it seems like the type parameters in the message are not displayed anymore. 

I.e., the message changes from:
---
Incompatible types. Expected org.eclipse.xtext.xbase.lib.Functions$Function2<java.lang.String,java.lang.Integer,? extends java.lang.Integer> but was org.eclipse.xtext.xbase.lib.Functions$Function2<java.lang.String,? extends java.lang.Object & super int,java.lang.Integer>
---

to

---
Incompatible types. Expected org.eclipse.xtext.xbase.lib.Functions$Function2 but was 
 org.eclipse.xtext.xbase.lib.Functions$Function2
---

this is kinda annoying when you want to copy'n'paste an error message ;)

This error does no appear with the tooltip over the underlined text.
Comment 1 Sebastian Zarnekow CLA 2012-04-02 16:29:08 EDT
Probably an HTML escaping thing with '<' and '>'
Comment 2 Holger Schill CLA 2012-05-29 11:03:19 EDT
Is already fixed in current head.
Comment 3 Eclipse Webmaster CLA 2017-10-31 10:47:51 EDT
Requested via bug 522520.

-M.
Comment 4 Eclipse Webmaster CLA 2017-10-31 10:58:54 EDT
Requested via bug 522520.

-M.