This is awkward - I *was* running into this issue, ostensibly due to a newer version of DropWizard. IntelliJ would complain that I had the incorrect parameter type, mvn package would succeed, but actually running the JAR would fail.
As of DropWizard 1.0.5, IntelliJ still yells at me, but now I can actually run the JAR that mvn package spits out. I'm not sure if this is really a problem or not. On Tuesday, November 15, 2016 at 12:53:34 AM UTC-5, Matthew Cummings wrote: > > I'm brand new to Dropwizard, going through the Getting Started page to set > up my first project. I'm getting an incorrect parameter type error with > @QueryParam in the sayHello() method. This happens with both > java.util.Optional and com.google.common.base.Optional. I'm using Java > 1.8. I found this SO post but it didn't help: > http://stackoverflow.com/questions/27757877/simple-dropwizard-0-7-1-app-failing-over-optional-queryparam-w-java-8 > > Any help is appreciated, also the Getting Started page should probably be > update with a working example, or an additional one with a note about Java > 1.8, if this is in fact an issue only when you use Java 1.8. > > Thanks, > Matt > -- You received this message because you are subscribed to the Google Groups "dropwizard-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
