GenerateToStringPlugin - compiled with 1.5

I am forced to run IDEA using JRE 1.4.2 instead of built in 1.5, because Weblogic Deployer will not work with JRE 1.5 and Weblogic 8.
This is a problem with JMX versions, that cannot be resolved by Intellij right now.

Everything was fine, but GenerateToString is probably compiled with 1.5 and it will not work with my current JRE. Exception below.

Can this plugin be recompiled in 1.4? Or I just have to forget about it?

Original exception: org/intellij/idea/plugin/tostring/GenerateToStringPlugin (Unsupported major.minor version 49.0)
java.lang.UnsupportedClassVersionError: org/intellij/idea/plugin/tostring/GenerateToStringPlugin (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at java.lang.ClassLoader.defineClass(ClassLoader.java:448)
at com.intellij.ide.plugins.cl.IdeaClassLoader.a(IdeaClassLoader.java:27)
at com.intellij.ide.plugins.cl.IdeaClassLoader.findClass(IdeaClassLoader.java:22)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:8)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:219)
at com.intellij.openapi.components.impl.ComponentManagerImpl.loadComponentsConfiguration(ComponentManagerImpl.java:50)
at com.intellij.openapi.application.impl.ApplicationImpl.c(ApplicationImpl.java:143)
at com.intellij.openapi.application.impl.ApplicationImpl.(ApplicationImpl.java:50) at com.intellij.openapi.application.ex.ApplicationManagerEx.createApplication(ApplicationManagerEx.java) at com.intellij.idea.IdeaApplication.]]>(IdeaApplication.java:57)
at com.intellij.idea.Main.a(Main.java:18)
at com.intellij.idea.Main.access$000(Main.java:13)
at com.intellij.idea.Main$2.proceed(Main.java)
at com.intellij.ide.license.impl.IdeaLicense$1.proceed(IdeaLicense.java:2)
at com.intellij.ide.license.policy.Proceed.check(Proceed.java:1)
at com.intellij.ide.license.impl.LicenseAuthorizorImpl.checkPolicy(LicenseAuthorizorImpl.java:5)
at com.intellij.ide.license.impl.LicenseAuthorizorImpl.checkPolicy(LicenseAuthorizorImpl.java)
at com.intellij.ide.license.impl.IdeaLicense.startUp(IdeaLicense.java:16)
at com.intellij.idea.Main.mainImpl(Main.java:4)
at com.intellij.idea.Main.start(Main.java:2)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.intellij.ide.plugins.PluginManager$5.run(PluginManager.java:6)
at java.lang.Thread.run(Thread.java:534)

7 comments
Comment actions Permalink

Yeah the plugin is compiled with the JRE that ships with IDEA.

I can only think of a couple of places where I have used the new forloop. I haven't started to work with Annotations yet so I guess it could be possible to compile it using JDK1.4.

Have you tried yourself? The source is in the .jar file.

0
Comment actions Permalink

Claus

With the RetroweaverPlugin, it's a no-brainer to make your code run on 1.4.

Alain

0
Comment actions Permalink

Hi Claus,
Thank you for your answer.
I think it would be better if you did it globally for everyone because there might be many users that will be forced to use 1.4.2
(the details are in http://www.jetbrains.net/jira/browse/IDEA-1651 )

Of course everyone could compile it by themselves, but if as Alain said using Retroweaver can solve the problem, I would prefer to simply downolad a nev version of the plugin form the repository, instead of compiling it every time.

0
Comment actions Permalink

Okay sounds fair as I would also like to use the plugins out of the box.

And serving the users of the plugin is a priority, so Adam the next release will be compiled using a JDK1.4.

0
Comment actions Permalink

Hi Adam

I just released v3.17 of the plugin that has been compiled with JDK1.4

It's set to use the @since for IDEA 5.0 final so you'll have to have the latest IDEA installed to see the plugin in the plugin manager.

If that's a problem let me know and I can email you the plugin.

0
Comment actions Permalink

Hi Claus,

I have downloaded it and it works perfectly.
Thank you!

0
Comment actions Permalink

Glad I could help a user of the plugin.

0

Please sign in to leave a comment.