You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Augmentin <au...@hkbn.net> on 2005/09/15 12:48:41 UTC

JDK 5 conflict with Tapestry Enum

Hi All,

After I upgraded to JDK 5, my project won't compile because all references 
to org.apache.commons.lang.enum.Enum in my programs conflict with the new 
Java keyword "enum".

Then I changed to use org.apache.commons.lang.enums.Enum to try to avoid the 
problem but then all the calls to new 
EnumPropertySelectionModel(Enum[],bundle,String) resulted in undefined 
constructor error because the EnumPropertySelectionModel constructor expects 
an org.apache.commons.lang.enum.Enum 1st argument instead of an 
org.apache.commons.lang.enums.Enum.

What's the simplest and quickest way to solve this problem? I am using 
Tapestry 3.0.3.

Thank you,
Raymond 


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: JDK 5 conflict with Tapestry Enum

Posted by Geoff Longman <gl...@gmail.com>.
The quickest and simplest way is to switch your enums from
commons.lang enums to JDK 1.5 enums. You didn't ask for backwards
compatibility ;-)

Geoff

On 9/15/05, Augmentin <au...@hkbn.net> wrote:
> Hi All,
> 
> After I upgraded to JDK 5, my project won't compile because all references
> to org.apache.commons.lang.enum.Enum in my programs conflict with the new
> Java keyword "enum".
> 
> Then I changed to use org.apache.commons.lang.enums.Enum to try to avoid the
> problem but then all the calls to new
> EnumPropertySelectionModel(Enum[],bundle,String) resulted in undefined
> constructor error because the EnumPropertySelectionModel constructor expects
> an org.apache.commons.lang.enum.Enum 1st argument instead of an
> org.apache.commons.lang.enums.Enum.
> 
> What's the simplest and quickest way to solve this problem? I am using
> Tapestry 3.0.3.
> 
> Thank you,
> Raymond
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 



-- 
The Spindle guy.           http://spindle.sf.net
Get help with Spindle:   
http://lists.sourceforge.net/mailman/listinfo/spindle-user
Announcement Feed:    
http://www.jroller.com/rss/glongman?catname=/Announcements
Feature Updates:            http://spindle.sf.net/updates

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: JDK 5 conflict with Tapestry Enum

Posted by Shing Hing Man <ma...@yahoo.com>.
Oohs ! You are right Markus. It should be "-source
1.4"

Shing 

--- Markus Eberle <Ma...@tngtech.com> wrote:

> Zitat von Shing Hing Man <ma...@yahoo.com>:
> 
> > You might like to try  adding the option "-source
> 1.5"
>                                                    
> ^^^
>                                   Shouldn't that be
> a 1.4 ?
> 
> Cheers,
>     Markus
> 
> > when you javac your orginal java 1.4 source files.
> >
> > Shing
> >
> >
> > --- Augmentin <au...@hkbn.net> wrote:
> >
> > > Hi All,
> > >
> > > After I upgraded to JDK 5, my project won't
> compile
> > > because all references
> > > to org.apache.commons.lang.enum.Enum in my
> programs
> > > conflict with the new
> > > Java keyword "enum".
> > >
> > > Then I changed to use
> > > org.apache.commons.lang.enums.Enum to try to
> avoid
> > > the
> > > problem but then all the calls to new
> > > EnumPropertySelectionModel(Enum[],bundle,String)
> > > resulted in undefined
> > > constructor error because the
> > > EnumPropertySelectionModel constructor expects
> > > an org.apache.commons.lang.enum.Enum 1st
> argument
> > > instead of an
> > > org.apache.commons.lang.enums.Enum.
> > >
> > > What's the simplest and quickest way to solve
> this
> > > problem? I am using
> > > Tapestry 3.0.3.
> > >
> > > Thank you,
> > > Raymond
> > >
> > >
> > >
> >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > > tapestry-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> > > tapestry-user-help@jakarta.apache.org
> > >
> > >
> >
> >
> > Home page :
> >   http://uk.geocities.com/matmsh/index.html
> >
> >
> >
> >
>
___________________________________________________________
> > To help you stay safe and secure online, we've
> developed the all new Yahoo!
> > Security Centre. http://uk.security.yahoo.com
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> tapestry-user-help@jakarta.apache.org
> >
> >
> 
> 
> --
> Markus Eberle
> TNG Technology Consulting
> markus.eberle@tngtech.com
> http://www.tngtech.com
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tapestry-user-help@jakarta.apache.org
> 
> 


Home page :
  http://uk.geocities.com/matmsh/index.html


	
	
		
___________________________________________________________ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: JDK 5 conflict with Tapestry Enum

Posted by Markus Eberle <Ma...@tngtech.com>.
Zitat von Shing Hing Man <ma...@yahoo.com>:

> You might like to try  adding the option "-source 1.5"
                                                    ^^^
                                  Shouldn't that be a 1.4 ?

Cheers,
    Markus

> when you javac your orginal java 1.4 source files.
>
> Shing
>
>
> --- Augmentin <au...@hkbn.net> wrote:
>
> > Hi All,
> >
> > After I upgraded to JDK 5, my project won't compile
> > because all references
> > to org.apache.commons.lang.enum.Enum in my programs
> > conflict with the new
> > Java keyword "enum".
> >
> > Then I changed to use
> > org.apache.commons.lang.enums.Enum to try to avoid
> > the
> > problem but then all the calls to new
> > EnumPropertySelectionModel(Enum[],bundle,String)
> > resulted in undefined
> > constructor error because the
> > EnumPropertySelectionModel constructor expects
> > an org.apache.commons.lang.enum.Enum 1st argument
> > instead of an
> > org.apache.commons.lang.enums.Enum.
> >
> > What's the simplest and quickest way to solve this
> > problem? I am using
> > Tapestry 3.0.3.
> >
> > Thank you,
> > Raymond
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > tapestry-user-help@jakarta.apache.org
> >
> >
>
>
> Home page :
>   http://uk.geocities.com/matmsh/index.html
>
>
>
> ___________________________________________________________
> To help you stay safe and secure online, we've developed the all new Yahoo!
> Security Centre. http://uk.security.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>


--
Markus Eberle
TNG Technology Consulting
markus.eberle@tngtech.com
http://www.tngtech.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: JDK 5 conflict with Tapestry Enum

Posted by Shing Hing Man <ma...@yahoo.com>.
You might like to try  adding the option "-source 1.5"
when you javac your orginal java 1.4 source files.

Shing


--- Augmentin <au...@hkbn.net> wrote:

> Hi All,
> 
> After I upgraded to JDK 5, my project won't compile
> because all references 
> to org.apache.commons.lang.enum.Enum in my programs
> conflict with the new 
> Java keyword "enum".
> 
> Then I changed to use
> org.apache.commons.lang.enums.Enum to try to avoid
> the 
> problem but then all the calls to new 
> EnumPropertySelectionModel(Enum[],bundle,String)
> resulted in undefined 
> constructor error because the
> EnumPropertySelectionModel constructor expects 
> an org.apache.commons.lang.enum.Enum 1st argument
> instead of an 
> org.apache.commons.lang.enums.Enum.
> 
> What's the simplest and quickest way to solve this
> problem? I am using 
> Tapestry 3.0.3.
> 
> Thank you,
> Raymond 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tapestry-user-help@jakarta.apache.org
> 
> 


Home page :
  http://uk.geocities.com/matmsh/index.html


		
___________________________________________________________ 
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org