You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Peter Davie (Jira)" <ji...@apache.org> on 2020/04/25 01:05:00 UTC

[jira] [Created] (NETBEANS-4240) Extract Interface refactoring produces exception

Peter Davie created NETBEANS-4240:
-------------------------------------

             Summary: Extract Interface refactoring produces exception
                 Key: NETBEANS-4240
                 URL: https://issues.apache.org/jira/browse/NETBEANS-4240
             Project: NetBeans
          Issue Type: Bug
          Components: editor - Refactoring
    Affects Versions: 11.2
         Environment: Product Version: Apache NetBeans IDE 11.2
Updates: NetBeans IDE is updated to version NetBeans 8.2 Patch 2
Java: 11.0.2; OpenJDK 64-Bit Server VM 11.0.2+9
Runtime: OpenJDK Runtime Environment 11.0.2+9
System: Windows 10 version 10.0 running on amd64; Cp1252; en_AU (nb)
            Reporter: Peter Davie


{color:#172b4d}Attempted to extract an interface from an existing (abstract) class and the following exception was reported.{color}

{color:#FF0000}Warning: {color}Module Java Refactoring threw java.lang.IllegalStateException: Cannot call getCompilationUnit() if current phase JavaSource.Phase.PARSED. You must call toPhase(Phase.PARSED) first.. Please report a bug against Java Refactoring module and attach your var/log/messages.log.

I don't know if it's relevant, but the class concerned has a spurious error reported about it being a JPA Entity class with no ID associated, it has an Id annotation defined on the identifier member field (but the error is reported in the editor, even though the code compiles correctly).

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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