clone() in com.intellij.execution.RuntimeConfiguration
Maxim,
I'm having a problem similar to the one described here:
http://www.intellij.net/forums/thread.jsp?forum=4&thread=136468&message=3545508&q=67656e6572696373#3546072
when compiling the Groovy plug-in's implementation of com.intellij.execution.RuntimeConfiguration with JDK 1.4 on Irida build #3354:
Error: line (40)clone() in com.intellij.execution.RuntimeConfiguration cannot implement clone() in com.intellij.execution.configurations.RunConfiguration; attempting to use incompatible return type
found : com.intellij.execution.RuntimeConfiguration
required: com.intellij.execution.configurations.RunConfiguration
Could you please changed the signature to "Object clone()" in a forthcoming Irida build?
Thanks in advance.
Regards,
Franck
Please sign in to leave a comment.
And the link to the corresponding JIRA entry is:
http://www.jetbrains.net/jira/browse/IDEA-2711
Franck,
we have lots of places where we've used 5.0 language features (though no, we
have not used a single 5.0 API)
The solution we use to support 1.4 platform is through instrumenting
bytecode with Retroweaver.
Probably you'd better go the same way.
Eugene.
"Franck Rasolo" <no_mail@jetbrains.com> wrote in message
news:26609048.1118703709621.JavaMail.itn@is.intellij.net...
>
>
>
>
>
>
>
>
>
>
Frank, is that acceptable?
-
Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"
Well, not really. Based on what Eugene said above, I do not understand why you accepted to change the signature of com.intellij.j2ee.run.configuration.ServerModel.clone() as discussed in the other thread.
Anyway, as a workaround, I'm compiling with -source 1.5 -target jsr14 which works pretty well.
RuntimeConfiguration is just a bit larger hierarchy and changing back to
Object will break some other plugins.
-
Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"
Irida build #3378 now indicates otherwise:
2005-06-21 22:19:46,023 ERROR - com.intellij.ide.IdeEventQueue - Error during dispatching of java.awt.event.MouseEvent[MOUSE_CLICKED,(131,17),button=1,modifiers=Button1,clickCount=1] on dialog0
2005-06-21 22:19:46,023 ERROR - com.intellij.ide.IdeEventQueue - IntelliJ IDEA (Irida) #3378 Build #3378
2005-06-21 22:19:46,023 ERROR - com.intellij.ide.IdeEventQueue - JDK: 1.4.2_03
2005-06-21 22:19:46,023 ERROR - com.intellij.ide.IdeEventQueue - VM: Java HotSpot(TM) Client VM
2005-06-21 22:19:46,023 ERROR - com.intellij.ide.IdeEventQueue - Vendor: Sun Microsystems Inc.
2005-06-21 22:19:46,023 ERROR - com.intellij.ide.IdeEventQueue - OS: Windows XP
2005-06-21 22:19:46,023 ERROR - com.intellij.ide.IdeEventQueue - Last Action:
2005-06-21 22:19:46,023 ERROR - com.intellij.ide.IdeEventQueue - Error during dispatching of java.awt.event.MouseEvent[MOUSE_CLICKED,(131,17),button=1,modifiers=Button1,clickCount=1] on dialog0
java.lang.NoSuchMethodError: java.lang.String.contains(Ljava/lang/CharSequence;)Z
at com.intellij.openapi.vfs.VirtualFile.skipUTF8BOM(VirtualFile.java:421)
at com.intellij.openapi.vfs.VirtualFile.getReader(VirtualFile.java:388)
at com.intellij.openapi.vfs.VirtualFile.getReader(VirtualFile.java:355)
at com.intellij.openapi.fileEditor.impl.LoadTextUtil.loadText(LoadTextUtil.java:11)
at com.intellij.openapi.project.impl.BaseFileConfigurable.a(BaseFileConfigurable.java:109)
at com.intellij.openapi.project.impl.BaseFileConfigurable.loadSavedConfiguration(BaseFileConfigurable.java:30)
at com.intellij.openapi.project.impl.ProjectManagerImpl.loadProject(ProjectManagerImpl.java:127)
at com.intellij.ide.impl.ProjectUtil.openProject(ProjectUtil.java:43)
at com.intellij.ide.RecentProjectsManager$ReopenProjectAction.actionPerformed(RecentProjectsManager.java:4)
at com.intellij.openapi.actionSystem.ex.ActionListPopup$1.run(ActionListPopup.java:3)
at com.intellij.ui.ListPopup.closePopup(ListPopup.java:86)
at com.intellij.ui.ListPopup$3.mouseClicked(ListPopup.java:0)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:212)
at java.awt.Component.processMouseEvent(Component.java:5103)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3207)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:102)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:52)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:104)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)