Skip to main content



      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 11:25
Eclipse UserFriend
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 11:26] by Moderator

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


Current Time: Sun May 25 01:09:44 EDT 2025

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

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

Back to the top