jidesoft / jide-oss

JIDE Common Layer
Other
185 stars 81 forks source link

Java version? #4

Closed ianp closed 11 years ago

ianp commented 11 years ago

If I try to compile with JDK 1.6 I run into the following error

[ERROR] /Users/ianp/Projects/jide-oss/src/com/jidesoft/popup/JidePopup.java:[1475,27] cannot find symbol
symbol  : method setAutoRequestFocus(boolean)
location: class com.jidesoft.swing.ResizableWindow

This is because the method is @since 1.7.

If I update the pom and try to compile with JDK 1.7 I get the following error:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project jide-oss: Compilation failure: Compilation failure:
[ERROR] /Users/ianp/Projects/jide-oss/src/com/jidesoft/plaf/windows/XPStyle.java:[639,29] error: cannot find symbol

Tis is because the class sun.awt.image.CachingSurfaceManager does not exist in JDK 1.7.

So, which version of Java are you guys using to build with?

Mac OS X 10.8.4.

jidesoft commented 11 years ago

I updated the JidePopup to remove the setAutoRequestFocus call as it was for testing purpose and was committed by accident a couple of days ago. We are still using JDK6 to compile during our release process because of the XPStyle. If you want to use use JDK7 to compile for whatever reason, you just need to comment the if (!SystemInfo.isJdk7Above()) block in XPStyle.

Thanks,

-David

From: Ian Phillips [mailto:notifications@github.com] Sent: Wednesday, July 03, 2013 2:47 AM To: jidesoft/jide-oss Subject: [jide-oss] Java version? (#4)

If I try to compile with JDK 1.6 I run into the following error

[ERROR] /Users/ianp/Projects/jide-oss/src/com/jidesoft/popup/JidePopup.java:[1475,27] cannot find symbol symbol : method setAutoRequestFocus(boolean) location: class com.jidesoft.swing.ResizableWindow

This is because the method is @since 1.7.

If I update the pom and try to compile with JDK 1.7 I get the following error:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project jide-oss: Compilation failure: Compilation failure: [ERROR] /Users/ianp/Projects/jide-oss/src/com/jidesoft/plaf/windows/XPStyle.java:[639,29] error: cannot find symbol

Tis is because the class sun.awt.image.CachingSurfaceManager does not exist in JDK 1.7.

So, which version of Java are you guys using to build with?

Mac OS X 10.8.4.

— Reply to this email directly or view it on GitHub https://github.com/jidesoft/jide-oss/issues/4 . https://github.com/notifications/beacon/GSFH9vrBE8CPW7RlOB43qZQnuaw-0GORekWU_TJbGsIknLUopkNlkC9ABcVuXNDE.gif

ianp commented 11 years ago

OK, thanks for the info!