Jacob Kjome
Wed, 30 Jun 2010 13:59:03 -0700
What is the oldest supported JVM for Chainsaw?I always make it a point to build a project against the the oldest supported JVM version that I promise to support. You shouldn't be building against 1.6 at all if you state 1.5 compatibility. Same goes for Log4j. If Log4j claims 1.3 compatibility, then it should be built against 1.3, not 1.4, 1.5, nor 1.6... at least for testing and releases.
If you don't do this, you inevitably end up with these weird compatibility issues.
Jake On Wed, 30 Jun 2010 11:04:04 -0700 Scott Deboy <scott.de...@gmail.com> wrote:
I just checked the APIs and you found a 1.5/1.6 compatibity issue...mouseadapter in 1.5 did not implement mousemotionadapter, but it does in 1.6. I'll change the code to use a mousemotionadapter.. To update your working copy to svn HEAD, yes, just update your working copy using whatever tool you used to get Chainsaw from the Apache svn repository. I'll make the change, but if you don't need 1.5, I'd suggest installing the 1.6 JDK - you won't have problems building with that.. Thanks for the find. Scott On Wed, Jun 30, 2010 at 10:51 AM, Kent, Douglas H. <doug.k...@hp.com> wrote:Scott, Hope you don't mind me answering you directly - I am a newbie in the world of open source development, so please forgive any protocol faux paus - but to answer your question, I am developing on XP SP2 with java 1.5.0_15. I am also starting to learn my way around maven - how would I specify "updated your working copy to the svn HEAD revision of Chainsaw and companions?" Getting the HEAD version would pull in the bug fixes, would it not? Thanks, Doug -----Original Message----- From: Scott Deboy [mailto:scott.de...@gmail.com] Sent: Wednesday, June 30, 2010 12:31 PM To: Log4J Developers List Subject: Re: Chainsaw build error What java VM are you using to compile? is this a gcj issue (are you building on Linux), because java.awt.event.MouseAdapter implements java.awt.event.MouseMotionListener (you shouldn't have this compilation issue).. I'd make sure to use a Sun jdk to build..also, can you updated your working copy to the svn HEAD revision of Chainsaw and companions? Line 3250 of LogPanel.java for svn HEAD is the declaration line of a method: public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) There have been a number of bug fixes recently that you probably want to pull in. Scott On Wed, Jun 30, 2010 at 5:59 AM, Kent, Douglas H. <doug.k...@hp.com> wrote: Hello, I went through the HowToBuild.txt file and executed the mvn installs for all the projects as directed. Now getting this (any solutions/ideas appreciated) [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Compilation failure C:\Applications\apache-chainsaw\src\main\java\org\apache\log4j\chainsaw\LogPanel .java:[3250,12] addMouseMotionListener(java.awt.event.MouseMotionListener) in ja va.awt.Component cannot be applied to (<anonymous java.awt.event.MouseAdapter>) C:\Applications\apache-chainsaw\src\main\java\org\apache\log4j\chainsaw\LogPanel .java:[3250,12] addMouseMotionListener(java.awt.event.MouseMotionListener) in ja va.awt.Component cannot be applied to (<anonymous java.awt.event.MouseAdapter>) [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.BuildFailureException: Compilation failure C:\Applications\apache-chainsaw\src\main\java\org\apache\log4j\chainsaw\LogPanel .java:[3250,12] addMouseMotionListener(java.awt.event.MouseMotionListener) in ja va.awt.Component cannot be applied to (<anonymous java.awt.event.MouseAdapter>) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:580) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi fecycle(DefaultLifecycleExecutor.java:500) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:479) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:331) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:292) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:142) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:345) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:132) at org.apache.maven.cli.MavenCli.main(MavenCli.java:290) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation fail ure C:\Applications\apache-chainsaw\src\main\java\org\apache\log4j\chainsaw\LogPanel .java:[3250,12] addMouseMotionListener(java.awt.event.MouseMotionListener) in ja va.awt.Component cannot be applied to (<anonymous java.awt.event.MouseAdapter>) at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompiler Mojo.java:516) at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:559) ... 16 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: 8 seconds [INFO] Finished at: Wed Jun 30 08:26:39 EDT 2010 [INFO] Final Memory: 17M/33M [INFO] ------------------------------------------------------------------------ C:\Applications\apache-chainsaw> --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-dev-h...@logging.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-dev-h...@logging.apache.org
--------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-dev-h...@logging.apache.org