question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Generics are not translated correctly

See original GitHub issue

It appear generics are not translated correctly in the coverage report. They contain the backtick which would be what it would be if you just did Type.Name

So for example Converter<T> will incorrectly translate to Converter`1 in the report.

See this for an explanation

https://stackoverflow.com/questions/17480990/get-name-of-generic-class-without-tilde

It would make reading the reports easier

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
mikes-ghcommented, Feb 9, 2021
Screenshot 2021-02-09 at 21 28 23 This is the output from report generator you mentioned. You can see it is Hard to tell the generic types apart.
0reactions
mikes-ghcommented, Feb 11, 2021

@danielpalme Thank you. 🙏 I presume if @MarcoRossignoli provides the original generic type names in the source with &gt; &lt; your report will be fine with that too?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Incorrect var translation in class with generics : IDEA-326357
Incorrect var translation in class with generics. What steps will reproduce the issue? Enter this code in the editor:.
Read more >
Why doesn't Java allow generic subclasses of Throwable?
What's wrong with generic exceptions? (As far as I know, generics are simply compile-time syntactic sugar, and they will be translated to Object ......
Read more >
c# - How are generics implemented?
Not in .NET generics. The decision was made to exclude inheritance from type parameters, so it turns out that all instances of a...
Read more >
Generic statements require little evidence for acceptance ...
Thus, acceptance of a generic sentence is doubly dissociated from the prevalence of the property it refers to—not only can true generics refer...
Read more >
How To Use Generics in Go
In this way, generics provide a way to substitute a different type for the type parameters every time the generic type is used....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found