Skip to content

Processing generics type info #924

Open
@Damtev

Description

@Damtev

Description

We need to improve our processing of generics type info:

  1. We may use info about parameter type of class to pass it to type info about its parametrized fields, for example:
class ParametrizedClass<T>  {
    T parametrizedField;
}

In this case, we may use the info that if an instance of ParametrizedClass is parametrized with type Integer (for example), thus field parametrizedField also has type Integer.

  1. Also, we may make a connection between the parameters of a method and its return type, for example:
<T> T returnFirstElement(List<T> list);

In this case, we may use the info that a return value has the type of elements in the provided list.

Metadata

Metadata

Assignees

Labels

comp-symbolic-engineIssue is related to the symbolic execution enginectg-enhancementNew feature, improvement or change request

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions