Searching for references to classes does not consider constructor calls, generics and type bounds
When one searches for the references of a class, the calls to the constructors of that class are not reported.
Below is an example:
---------
Below is an example:
---------
class ReferredClass { }
class ReferringClass {
def foo = {
//problem: when asking for references of 'ReferredClass' the following line (the call to the constructor) is NOT found
println(new ReferredClass().toString);
}
}
Leave a comment
References to a type T are not identified also in the case when T occurs as 1) type bounds, or 2) inside a generic type definition.
class ReferredClass { }
//problem: reference not found
class ReferringClass[T <: ReferredClass] {
//problem: reference not found
type typedSet = HashSet[ReferredClass];
}
on 2010-07-09 17:17 *
By Daniel Ratiu
Summary changed from Searching for references to classes does not consider constructor calls to Searching for references to classes does not consider constructor calls, generics and type bounds
Updating tickets (#3255, #3262, #3271, #3277, #3279, #3287, #3313, #3317, #3318, #3320, #3329, #1000000, #1000002, #1000004, #1000005, #1000007, #1000011, #1000013, #1000018, #1000019, #1000020, #1000022, #1000023, #1000024, #1000025, #1000026, #1000028, #1000031, #1000033, #1000034, #1000037, #1000039, #1000040, #1000041, #1000057, #1000058, #1000060, #1000061, #1000063, #1000064, #1000065, #1000067, #1000070, #1000073, #1000076, #1000080, #1000082, #1000083, #1000084, #1000085, #1000087, #1000088, #1000089, #1000090, #1000092, #1000093, #1000094, #1000095, #1000097, #1000102, #1000104, #1000106, #1000108, #1000110, #1000111, #1000116, #1000124, #1000126, #1000127, #1000129, #1000132, #1000133, #1000136, #1000139, #1000143, #1000144, #1000145, #1000148, #1000149, #1000152, #1000154, #1000155, #1000157, #1000158, #1000159, #1000161, #1000169, #1000170, #1000172, #1000174, #1000176, #1000178, #1000179, #1000183, #1000185, #1000188, #1000189, #1000192, #1000196, #1000198)
on 2012-01-25 07:53 *
By skyluc
Type set to Enhancement
Version changed from 1.0.0-SNAPSHOT to 2.0.0-final-29
Eclipse version set to All
Assigned to changed from Daniel Ratiu to -none-
Component changed from None to JDT integration
Milestone changed from Backlog to Enhancements
Permission type changed from None to Public
on 2012-06-26 10:43 *
By Mirco Dotta
Assigned to set to Mirco Dotta
Status changed from Test to Fixed
(In scala-ide:14cbdb3b3802479a18a4440f05665d64b4a97eb1) Tested find references for both constructor and type
Created tests to check that:
Fix #1000063
Branch: master
Created tests to check that:
- class' constructor references are correctly reported.
- class' type references are correctly reported (also for type bounds).
Fix #1000063
Branch: master
on 2012-06-27 12:21 *
By Mirco Dotta
(In scala-ide:14cbdb3b3802479a18a4440f05665d64b4a97eb1) Tested find references for both constructor and type
Created tests to check that:
Fix #1000063
Branch: platform/juno
Created tests to check that:
- class' constructor references are correctly reported.
- class' type references are correctly reported (also for type bounds).
Fix #1000063
Branch: platform/juno
on 2012-06-28 10:20 *
By Mirco Dotta
(In scala-ide:1148dc0efbaac9220bbfd7d9b8745df741178e55) Tested find references for both constructor and type
Created tests to check that:
Fix #1000063
Branch: issue/code-analysis-1000629
Created tests to check that:
- class' constructor references are correctly reported.
- class' type references are correctly reported (also for type bounds).
Fix #1000063
Branch: issue/code-analysis-1000629