netbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aldo Brucale (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (NETBEANS-2134) ClassCastException calling "Implement all abstract methods"
Date Mon, 18 Feb 2019 15:12:00 GMT

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

Aldo Brucale updated NETBEANS-2134:
-----------------------------------
    Environment: 
Ubuntu 18.04
Netbeans is running on OpenJDK 11.0.1+13-Ubuntu-3ubuntu118.04ppa1
The Java platform for the project is OpenJDK 1.8.0_191-8u191-b12-2ubuntu0.18.04.1-b12


> ClassCastException calling "Implement all abstract methods"
> -----------------------------------------------------------
>
>                 Key: NETBEANS-2134
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-2134
>             Project: NetBeans
>          Issue Type: Bug
>          Components: editor - Refactoring, java - Refactoring
>    Affects Versions: 10.0
>         Environment: Ubuntu 18.04
> Netbeans is running on OpenJDK 11.0.1+13-Ubuntu-3ubuntu118.04ppa1
> The Java platform for the project is OpenJDK 1.8.0_191-8u191-b12-2ubuntu0.18.04.1-b12
>            Reporter: Aldo Brucale
>            Priority: Major
>
> Invoking the "Implement all abstract methods" hint action produces this exception:
> {noformat}
> java.lang.ClassCastException: class com.sun.tools.javac.code.Type$ClassType cannot be
cast to class com.sun.tools.javac.code.Type$ErrorType (com.sun.tools.javac.code.Type$ClassType
and com.sun.tools.javac.code.Type$ErrorType are in unnamed module of loader org.netbeans.StandardModule$OneModuleClassLoader
@2fd0241)
> at org.netbeans.modules.java.source.builder.TreeFactory.Type(TreeFactory.java:797)
> at org.netbeans.api.java.source.TreeMaker.Type(TreeMaker.java:1083)
> at org.netbeans.api.java.source.GeneratorUtilities.resolveWildcard(GeneratorUtilities.java:1784)
> at org.netbeans.api.java.source.GeneratorUtilities.createMethod(GeneratorUtilities.java:818)
> at org.netbeans.api.java.source.GeneratorUtilities.createMethod(GeneratorUtilities.java:1693)
> at org.netbeans.api.java.source.GeneratorUtilities.createAbstractMethodImplementation(GeneratorUtilities.java:721)
> at org.netbeans.api.java.source.GeneratorUtilities.createAbstractMethodImplementations(GeneratorUtilities.java:705)
> at org.netbeans.modules.java.hints.errors.ImplementAllAbstractMethods.generateAllAbstractMethodImplementations(ImplementAllAbstractMethods.java:587)
> at org.netbeans.modules.java.hints.errors.ImplementAllAbstractMethods$ImplementFixBase.generateImplementation(ImplementAllAbstractMethods.java:402)
> at org.netbeans.modules.java.hints.errors.ImplementAllAbstractMethods$ImplementAbstractMethodsFix.executeRound(ImplementAllAbstractMethods.java:548)
> at org.netbeans.modules.java.hints.errors.ImplementAllAbstractMethods$ImplementFixBase.run(ImplementAllAbstractMethods.java:363)
> at org.netbeans.modules.java.hints.errors.ImplementAllAbstractMethods$ImplementFixBase.run(ImplementAllAbstractMethods.java:285)
> at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:672)
> at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:662)
> at org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:501)
> at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:586)
> at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:130)
> at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:114)
> at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:181)
> at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:178)
> at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:153)
> at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:335)
> at org.netbeans.modules.parsing.nb.DataObjectEnvFactory.runPriorityIO(DataObjectEnvFactory.java:118)
> at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:67)
> at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:178)
> at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:81)
> at org.netbeans.api.java.source.JavaSource.runUserActionTaskImpl(JavaSource.java:451)
> at org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:422)
> at org.netbeans.api.java.source.JavaSource.runModificationTask(JavaSource.java:683)
> at org.netbeans.modules.java.hints.errors.ImplementAllAbstractMethods$ImplementFixBase.implement(ImplementAllAbstractMethods.java:341)
> [catch] at org.netbeans.modules.editor.hints.HintsUI$1.run(HintsUI.java:810)
> at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
> at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
> at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
> at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
> {noformat}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
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


Mime
View raw message