Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 343146

Summary: Type parameters in tooltip disappear when pressing F2
Product: [Tools] Xtend Reporter: Moritz Eysholdt <moritz.eysholdt>
Component: CoreAssignee: Project Inbox <xtend-inbox>
Status: CLOSED FIXED QA Contact:
Severity: minor    
Priority: P3 CC: Holger.Schill, sebastian.zarnekow, sven.efftinge
Version: 2.3.0Flags: sebastian.zarnekow: juno+
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

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.