You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Neil C Smith (Jira)" <ji...@apache.org> on 2021/11/16 12:19:00 UTC

[jira] [Updated] (NETBEANS-6089) Java type conversion error hint in editor vs compiler

     [ https://issues.apache.org/jira/browse/NETBEANS-6089?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Neil C Smith updated NETBEANS-6089:
-----------------------------------
    Priority: Major  (was: Blocker)

> Java type conversion error hint in editor vs compiler
> -----------------------------------------------------
>
>                 Key: NETBEANS-6089
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-6089
>             Project: NetBeans
>          Issue Type: Bug
>          Components: java - Source
>    Affects Versions: 12.5
>            Reporter: Bernard
>            Priority: Major
>         Attachments: messages.log
>
>
> Settings imported from IDE 12.4
> Project is fine with IDE 12.4
> Project compiles without errors in 12.4 and 12.5
> With 12.5, getting problems in the editor and in the Projects window as follows:
> On the following source code:
> final List<EvaluatedCandidate<CgpNetwork>> evaluatedPopulation = this.populationAccessibleEvolutionEngine.getEvaluatedPopulation();
> I get a red error hint:
> incompatible types: List<Object> cannot be converted to List<EvaluatedCandidate<CgpNetwork>>
> ----
> (Alt-Enter shows hints)
> and in the Project window, the project is marked red.
> The relevant source code:
> private final PopulationAccessibleEvolutionEngine<CgpNetwork> populationAccessibleEvolutionEngine;
> The above code has parameterized type CgpNetwork as seen below:
> public class PopulationAccessibleEvolutionEngine<T> extends GenerationalEvolutionEngine<T> implements EvaluatedPopulationAccessible<T> {
> In Project settings:
> Sources, Source/Binary Format: 1.8
> Build, Compile, Java Platform is JDK 14 (Default)



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists