rvasa / jseat

Automatically exported from code.google.com/p/jseat
0 stars 0 forks source link

Javac error - incomparable types: java.lang.Class<T> and java.lang.Class<metric.core.vocabulary.History> #24

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compiling Though Ant using Javac
Error:
C:\research_old\JSEAT2\src\metric\core\model\MetricData.java:56:
incomparable types: java.lang.Class<T> and
java.lang.Class<metric.core.vocabulary.History>
[javac]             if (prop.getDeclaringClass() == History.class)
[javac]                                              ^
2. Possible Fix is:
if (((Class)prop.getDeclaringClass()) == ((Class)History.class)) 

What is the expected output? What do you see instead?
I expect it to compile first time everytime.

Original issue reported on code.google.com by captainh...@gmail.com on 5 Sep 2007 at 12:20