No, I was using Scala - just tried it and it works fine in Java without joda convert on the classpath. Apologies, I should have tested it properly in Java before raising this with a snippet of Java code - it hadn't occurred to me that scalac would make more of a fuss about things like this.
----- Original Message ----- > From: "Stephen Colebourne" <scolebou...@joda.org> > To: "Discussion of the Joda project" <joda-interest@lists.sourceforge.net> > Sent: Thursday, 8 September, 2011 5:53:05 PM > Subject: Re: [Joda-interest] Why is joda convert an optional dependency of > joda-time 2.0? > Are you using Java? Its just an annotation, and they are optional. > > Stephen > > > On 7 September 2011 10:46, Robert Elliot <r...@lidalia.org.uk> wrote: > > Hi, > > > > I just upgraded to joda time v2, and was unable to compile the > > following line of code: > > > > Instant instant = new Instant(); > > > > It turns out you need joda convert on the compile classpath to use > > Instant. Looking in the joda time pom it is listed as an optional > > dependency, so you don't get it pulled in as a transitive > > dependency, you have to add it manually. If it's required to > > instantiate an Instant then it doesn't seem terribly optional to me? > > > > Thanks, > > Rob > > > > ------------------------------------------------------------------------------ > > Using storage to extend the benefits of virtualization and iSCSI > > Virtualization increases hardware utilization and delivers a new > > level of > > agility. Learn what those decisions are and how to modernize your > > storage > > and backup environments for virtualization. > > http://www.accelacomm.com/jaw/sfnl/114/51434361/ > > _______________________________________________ > > Joda-interest mailing list > > Joda-interest@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/joda-interest > > > > ------------------------------------------------------------------------------ > Doing More with Less: The Next Generation Virtual Desktop > What are the key obstacles that have prevented many mid-market > businesses > from deploying virtual desktops? How do next-generation virtual > desktops > provide companies an easier-to-deploy, easier-to-manage and more > affordable > virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ > _______________________________________________ > Joda-interest mailing list > Joda-interest@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/joda-interest ------------------------------------------------------------------------------ Doing More with Less: The Next Generation Virtual Desktop What are the key obstacles that have prevented many mid-market businesses from deploying virtual desktops? How do next-generation virtual desktops provide companies an easier-to-deploy, easier-to-manage and more affordable virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ _______________________________________________ Joda-interest mailing list Joda-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/joda-interest