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: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists