Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Check if two TypeBindings are equal without verifying Parameterized types
Check if two TypeBindings are equal without verifying Parameterized types [message #1744829] Fri, 30 September 2016 15:25
Ivan Ivan is currently offline Ivan IvanFriend
Messages: 57
Registered: May 2015
Member
Hi, I have two classes and I want that classBinding1.isEqualTo(classBinding2) returns true (or maybe another method, actually doesn't matter)
There are keys of their bindings:
Landroid/os/C:\Workspace\Scanner\android\os\AsyncTask~AsyncTask<TParams;TProgress;TResult;>;
Landroid/os/C:\Workspace\Scanner\android\os\AsyncTask~AsyncTask<Ljava/lang/String;Ljava/lang/Void;Ljava/lang/String;>;

I assume that it fails to match these two things:
<TParams;TProgress;TResult;>
<Ljava/lang/String;Ljava/lang/Void;Ljava/lang/String;>

But TParams, TProgress and TResult are only delcaration types, not real.
public abstract class AsyncTask<Params, Progress, Result> {
// ...

How to match them correctly? Thanks

[Updated on: Fri, 30 September 2016 15:26]

Report message to a moderator

Previous Topic:Silent install for Eclipse IDE for Java Developers
Next Topic:Eclipse Neon refuse to compile JFileChooser
Goto Forum:
  


Current Time: Sat Oct 05 03:27:18 GMT 2024

Powered by FUDForum. Page generated in 0.03366 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top