[The Java Posse] Re: A quick and dirty way to throw unchecked exceptions

2009-08-25 Thread Christian Catchpole

Yeah, i was reading about that one.  But it's only in the Sun VMs and
probably subject to change.

But hey, I just listed this as an exercise.  It just shows the
difference between checked and unchecked is one little byte. :)

On Aug 26, 1:44 pm, Marcelo Fukushima  wrote:
> theres also a throwException(Throwable) in sun.misc.Unsafe - though to
> use that you really have to want to
>
> On Wed, Aug 26, 2009 at 12:30 AM, Christian
>
>
>
>
>
> Catchpole wrote:
>
> > Compile this..  (any package you like, or no package at all)
>
> > public class Rethrow {
> >    public static void unchecked(Throwable t) {
> >        t=t;
> >    }
> > }
>
> > javap reports the byte code as..
>
> > public static void unchecked(java.lang.Throwable);
> >  Code:
> >   Stack=1, Locals=1, Args_size=1
> >   0:   aload_0
> >   1:   astore_0
> >   2:   return
>
> > which in hex is:
>
> > 2A 4B B1
>
> > open the class file in the hex editor, search for that and change it
> > to:
>
> > 2A BF B1
>
> > javap now reports the byte code as..
>
> > public static void unchecked(java.lang.Throwable);
> >  Code:
> >   Stack=1, Locals=1, Args_size=1
> >   0:   aload_0
> >   1:   athrow
> >   2:   return
>
> > jar that class up or otherwise protect it from re-write.
>
> > In your code you can now call this without wrapping with a runtime
> > exception.  And the stack trace is still that of the original
> > exception.
>
> > } catch(Exception e) {
> >  Rethrow.unchecked(e);
> > }
>
> > Obviously, use at your own risk.  No warrenties etc. :)
>
> --http://mapsdev.blogspot.com/
> Marcelo Takeshi Fukushima
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to javaposse@googlegroups.com
To unsubscribe from this group, send email to 
javaposse+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en
-~--~~~~--~~--~--~---



[The Java Posse] Re: A quick and dirty way to throw unchecked exceptions

2009-08-25 Thread Marcelo Fukushima

theres also a throwException(Throwable) in sun.misc.Unsafe - though to
use that you really have to want to

On Wed, Aug 26, 2009 at 12:30 AM, Christian
Catchpole wrote:
>
> Compile this..  (any package you like, or no package at all)
>
> public class Rethrow {
>    public static void unchecked(Throwable t) {
>        t=t;
>    }
> }
>
> javap reports the byte code as..
>
> public static void unchecked(java.lang.Throwable);
>  Code:
>   Stack=1, Locals=1, Args_size=1
>   0:   aload_0
>   1:   astore_0
>   2:   return
>
> which in hex is:
>
> 2A 4B B1
>
> open the class file in the hex editor, search for that and change it
> to:
>
> 2A BF B1
>
> javap now reports the byte code as..
>
> public static void unchecked(java.lang.Throwable);
>  Code:
>   Stack=1, Locals=1, Args_size=1
>   0:   aload_0
>   1:   athrow
>   2:   return
>
> jar that class up or otherwise protect it from re-write.
>
> In your code you can now call this without wrapping with a runtime
> exception.  And the stack trace is still that of the original
> exception.
>
> } catch(Exception e) {
>  Rethrow.unchecked(e);
> }
>
> Obviously, use at your own risk.  No warrenties etc. :)
>
> >
>



-- 
http://mapsdev.blogspot.com/
Marcelo Takeshi Fukushima

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to javaposse@googlegroups.com
To unsubscribe from this group, send email to 
javaposse+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en
-~--~~~~--~~--~--~---



[The Java Posse] A quick and dirty way to throw unchecked exceptions

2009-08-25 Thread Christian Catchpole

Compile this..  (any package you like, or no package at all)

public class Rethrow {
public static void unchecked(Throwable t) {
t=t;
}
}

javap reports the byte code as..

public static void unchecked(java.lang.Throwable);
  Code:
   Stack=1, Locals=1, Args_size=1
   0:   aload_0
   1:   astore_0
   2:   return

which in hex is:

2A 4B B1

open the class file in the hex editor, search for that and change it
to:

2A BF B1

javap now reports the byte code as..

public static void unchecked(java.lang.Throwable);
  Code:
   Stack=1, Locals=1, Args_size=1
   0:   aload_0
   1:   athrow
   2:   return

jar that class up or otherwise protect it from re-write.

In your code you can now call this without wrapping with a runtime
exception.  And the stack trace is still that of the original
exception.

} catch(Exception e) {
  Rethrow.unchecked(e);
}

Obviously, use at your own risk.  No warrenties etc. :)

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to javaposse@googlegroups.com
To unsubscribe from this group, send email to 
javaposse+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en
-~--~~~~--~~--~--~---



[The Java Posse] Re: What's a good webframework to use (wait, wait!)

2009-08-25 Thread Richard Vowles

If you want to use GAE and Google for Auth, GAELyk is probably the
best framework for a simple app.

On Aug 26, 12:56 am, Patrick Forhan  wrote:
> I'd second this.  A simple servlet environment, with some nifty Google
> services mixed in.  Directly integrated with eclipse, but you can also
> use ant bindings for all the same operations (run local, deploy, etc).

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to javaposse@googlegroups.com
To unsubscribe from this group, send email to 
javaposse+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en
-~--~~~~--~~--~--~---



[The Java Posse] Re: Has anybody else tried Lombok?

2009-08-25 Thread Roel Spilker

For fields of type boolean, Lombok will generate isFoo() unless a
method called getFoo() or hasFoo() exists :-)

On Aug 25, 5:58 pm, Casper Bang  wrote:
> Ah, the wonderful inconsistent world of Java pseudo "properties". So
> for boolean types, will we generate isFoo() or getFoo() or both?
>
> /Casper
>
> On 25 Aug., 13:34, Steve  wrote:
>
> > I hope they soon add knowledge of Eclipse's field prefixes so the
> > @Data class annotation will generate getters/setters without the
> > prefix.
>
> > Right now
>
> > class @Data Car
> > private int fSpeed;
>
> > produces
>
> > setFSpeed(int)
> > getFSpeed()
>
> > On Aug 24, 4:10 pm, Matt  wrote:
>
> > > I don't have much to go on either, it just does nothing. I get the
> > > import statement and add the annotation, then nothing. I haven't tried
> > > it on a fresh Eclipse though. I'll try it on my home machine when I
> > > get there.
>
> > > On Aug 24, 1:40 pm, Reinier Zwitserloot  wrote:
>
> > > > Hey Matt,
>
> > > > I really don't know what to say. There's not much to go on when all I
> > > > get is "it doesn't work for us". Are there errors in the error view?
> > > > Did you try downloading a fresh new eclipse? Give me _something_ to
> > > > work with.
>
> > > > On Aug 24, 7:28 pm, Matt  wrote:
>
> > > > > Yeah, we installed it to our Eclipses. That's what's weird, it seems
> > > > > like it works fine for everybody but both of us.
>
> > > > > On Aug 24, 11:07 am, Casper Bang  wrote:
>
> > > > > > Sure, works fine here on 64bit Ubuntu 9.04 and Eclipse 3.5. Did you
> > > > > > remember to install the extension to Eclipse (run lombok.jar as a 
> > > > > > Java
> > > > > > application and point to your eclipse installation folder)? The
> > > > > > checkedException prototype does not work for me however.
>
> > > > > > /Casper
>
> > > > > > On 24 Aug., 18:46, Matt  wrote:
>
> > > > > > > My coworker and I tried it a few weeks ago and got nothing. We 
> > > > > > > both
> > > > > > > got it to install but when we added the annotations and the import
> > > > > > > statements, nothing happened. Eclipse obviously saw the jar file 
> > > > > > > since
> > > > > > > it would auto-add the import like it should have, but then nothing
> > > > > > > happened. I posted in their forum but I only got basically "It 
> > > > > > > should
> > > > > > > have worked" in response. We'd love to use it but since it did 
> > > > > > > nothing
> > > > > > > for either of us we were a little disheartened. If it was just me 
> > > > > > > that
> > > > > > > would be one thing but neither of us got anything.
>
> > > > > > > Are we alone in having it not work for us?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to javaposse@googlegroups.com
To unsubscribe from this group, send email to 
javaposse+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en
-~--~~~~--~~--~--~---



[The Java Posse] Re: Has anybody else tried Lombok?

2009-08-25 Thread Roel Spilker

Hmm. Even if we add knowlegde about Eclipse field prefixes, it would
mean that the same file compiled by javac would result in a different
file. Maybe we can have a -D command line parameter for javac and use
the Eclipse setting implicitly.

Is there a reason you are so fond of the field prefix? After all,
since you are using Eclipse, there is this nice syntax coloring to
indicate the identifier refers to a field.

Roel


On Aug 25, 1:34 pm, Steve  wrote:
> I hope they soon add knowledge of Eclipse's field prefixes so the
> @Data class annotation will generate getters/setters without the
> prefix.
>
> Right now
>
> class @Data Car
> private int fSpeed;
>
> produces
>
> setFSpeed(int)
> getFSpeed()
>
> On Aug 24, 4:10 pm, Matt  wrote:
>
> > I don't have much to go on either, it just does nothing. I get the
> > import statement and add the annotation, then nothing. I haven't tried
> > it on a fresh Eclipse though. I'll try it on my home machine when I
> > get there.
>
> > On Aug 24, 1:40 pm, Reinier Zwitserloot  wrote:
>
> > > Hey Matt,
>
> > > I really don't know what to say. There's not much to go on when all I
> > > get is "it doesn't work for us". Are there errors in the error view?
> > > Did you try downloading a fresh new eclipse? Give me _something_ to
> > > work with.
>
> > > On Aug 24, 7:28 pm, Matt  wrote:
>
> > > > Yeah, we installed it to our Eclipses. That's what's weird, it seems
> > > > like it works fine for everybody but both of us.
>
> > > > On Aug 24, 11:07 am, Casper Bang  wrote:
>
> > > > > Sure, works fine here on 64bit Ubuntu 9.04 and Eclipse 3.5. Did you
> > > > > remember to install the extension to Eclipse (run lombok.jar as a Java
> > > > > application and point to your eclipse installation folder)? The
> > > > > checkedException prototype does not work for me however.
>
> > > > > /Casper
>
> > > > > On 24 Aug., 18:46, Matt  wrote:
>
> > > > > > My coworker and I tried it a few weeks ago and got nothing. We both
> > > > > > got it to install but when we added the annotations and the import
> > > > > > statements, nothing happened. Eclipse obviously saw the jar file 
> > > > > > since
> > > > > > it would auto-add the import like it should have, but then nothing
> > > > > > happened. I posted in their forum but I only got basically "It 
> > > > > > should
> > > > > > have worked" in response. We'd love to use it but since it did 
> > > > > > nothing
> > > > > > for either of us we were a little disheartened. If it was just me 
> > > > > > that
> > > > > > would be one thing but neither of us got anything.
>
> > > > > > Are we alone in having it not work for us?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to javaposse@googlegroups.com
To unsubscribe from this group, send email to 
javaposse+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en
-~--~~~~--~~--~--~---



[The Java Posse] Re: Has anybody else tried Lombok?

2009-08-25 Thread Reinier Zwitserloot

isFoo() at the moment. If you want getFoo(), knock yourself out and
add it. @Data/@Getter is smart enough to not also generate isFoo() if
you already wrote getFoo(). With sufficient domain knowledge these
inconsistencies are quite managable.

NB: Steve, for those field prefixes, file an issue if there isn't one
already there to treat anything matching the pattern xFoo, where x is
a lowercase character and F is title or uppercase, to be named as
'foo' (where f is the lowercase form of F).

On Aug 25, 5:58 pm, Casper Bang  wrote:
> Ah, the wonderful inconsistent world of Java pseudo "properties". So
> for boolean types, will we generate isFoo() or getFoo() or both?
>
> /Casper
>
> On 25 Aug., 13:34, Steve  wrote:
>
>
>
> > I hope they soon add knowledge of Eclipse's field prefixes so the
> > @Data class annotation will generate getters/setters without the
> > prefix.
>
> > Right now
>
> > class @Data Car
> > private int fSpeed;
>
> > produces
>
> > setFSpeed(int)
> > getFSpeed()
>
> > On Aug 24, 4:10 pm, Matt  wrote:
>
> > > I don't have much to go on either, it just does nothing. I get the
> > > import statement and add the annotation, then nothing. I haven't tried
> > > it on a fresh Eclipse though. I'll try it on my home machine when I
> > > get there.
>
> > > On Aug 24, 1:40 pm, Reinier Zwitserloot  wrote:
>
> > > > Hey Matt,
>
> > > > I really don't know what to say. There's not much to go on when all I
> > > > get is "it doesn't work for us". Are there errors in the error view?
> > > > Did you try downloading a fresh new eclipse? Give me _something_ to
> > > > work with.
>
> > > > On Aug 24, 7:28 pm, Matt  wrote:
>
> > > > > Yeah, we installed it to our Eclipses. That's what's weird, it seems
> > > > > like it works fine for everybody but both of us.
>
> > > > > On Aug 24, 11:07 am, Casper Bang  wrote:
>
> > > > > > Sure, works fine here on 64bit Ubuntu 9.04 and Eclipse 3.5. Did you
> > > > > > remember to install the extension to Eclipse (run lombok.jar as a 
> > > > > > Java
> > > > > > application and point to your eclipse installation folder)? The
> > > > > > checkedException prototype does not work for me however.
>
> > > > > > /Casper
>
> > > > > > On 24 Aug., 18:46, Matt  wrote:
>
> > > > > > > My coworker and I tried it a few weeks ago and got nothing. We 
> > > > > > > both
> > > > > > > got it to install but when we added the annotations and the import
> > > > > > > statements, nothing happened. Eclipse obviously saw the jar file 
> > > > > > > since
> > > > > > > it would auto-add the import like it should have, but then nothing
> > > > > > > happened. I posted in their forum but I only got basically "It 
> > > > > > > should
> > > > > > > have worked" in response. We'd love to use it but since it did 
> > > > > > > nothing
> > > > > > > for either of us we were a little disheartened. If it was just me 
> > > > > > > that
> > > > > > > would be one thing but neither of us got anything.
>
> > > > > > > Are we alone in having it not work for us?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to javaposse@googlegroups.com
To unsubscribe from this group, send email to 
javaposse+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en
-~--~~~~--~~--~--~---



[The Java Posse] Re: Has anybody else tried Lombok?

2009-08-25 Thread Casper Bang

Ah, the wonderful inconsistent world of Java pseudo "properties". So
for boolean types, will we generate isFoo() or getFoo() or both?

/Casper

On 25 Aug., 13:34, Steve  wrote:
> I hope they soon add knowledge of Eclipse's field prefixes so the
> @Data class annotation will generate getters/setters without the
> prefix.
>
> Right now
>
> class @Data Car
> private int fSpeed;
>
> produces
>
> setFSpeed(int)
> getFSpeed()
>
> On Aug 24, 4:10 pm, Matt  wrote:
>
> > I don't have much to go on either, it just does nothing. I get the
> > import statement and add the annotation, then nothing. I haven't tried
> > it on a fresh Eclipse though. I'll try it on my home machine when I
> > get there.
>
> > On Aug 24, 1:40 pm, Reinier Zwitserloot  wrote:
>
> > > Hey Matt,
>
> > > I really don't know what to say. There's not much to go on when all I
> > > get is "it doesn't work for us". Are there errors in the error view?
> > > Did you try downloading a fresh new eclipse? Give me _something_ to
> > > work with.
>
> > > On Aug 24, 7:28 pm, Matt  wrote:
>
> > > > Yeah, we installed it to our Eclipses. That's what's weird, it seems
> > > > like it works fine for everybody but both of us.
>
> > > > On Aug 24, 11:07 am, Casper Bang  wrote:
>
> > > > > Sure, works fine here on 64bit Ubuntu 9.04 and Eclipse 3.5. Did you
> > > > > remember to install the extension to Eclipse (run lombok.jar as a Java
> > > > > application and point to your eclipse installation folder)? The
> > > > > checkedException prototype does not work for me however.
>
> > > > > /Casper
>
> > > > > On 24 Aug., 18:46, Matt  wrote:
>
> > > > > > My coworker and I tried it a few weeks ago and got nothing. We both
> > > > > > got it to install but when we added the annotations and the import
> > > > > > statements, nothing happened. Eclipse obviously saw the jar file 
> > > > > > since
> > > > > > it would auto-add the import like it should have, but then nothing
> > > > > > happened. I posted in their forum but I only got basically "It 
> > > > > > should
> > > > > > have worked" in response. We'd love to use it but since it did 
> > > > > > nothing
> > > > > > for either of us we were a little disheartened. If it was just me 
> > > > > > that
> > > > > > would be one thing but neither of us got anything.
>
> > > > > > Are we alone in having it not work for us?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to javaposse@googlegroups.com
To unsubscribe from this group, send email to 
javaposse+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en
-~--~~~~--~~--~--~---



[The Java Posse] Re: What's a good webframework to use (wait, wait!)

2009-08-25 Thread Patrick Forhan

I'd second this.  A simple servlet environment, with some nifty Google
services mixed in.  Directly integrated with eclipse, but you can also
use ant bindings for all the same operations (run local, deploy, etc).

Pat.

On Aug 25, 12:23 am, Mark Derricutt  wrote:
> One of the guys in the office pointed me to:
>
> http://code.google.com/appengine/docs/java/users/overview.html
>
> Which shows using the GAE's user service for auth.  Use BigTable for storage
> and you should be sweeet within about 5-10 minutes.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to javaposse@googlegroups.com
To unsubscribe from this group, send email to 
javaposse+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en
-~--~~~~--~~--~--~---



[The Java Posse] Re: Episode 274 - Lombok

2009-08-25 Thread Roel Spilker

Also, Lombok is the nickname of a small pepper: 
http://en.wikipedia.org/wiki/Naga_jolokia

The tag line on the Project Lombok webside is "Spice up your java"

On Aug 24, 5:27 am, Christian Catchpole 
wrote:
> Although walking into Starbucks and ordering a half-caf double-decaf
> grande Lombok (with a twist of lemon) doesn't quite sound the same. :)
>
> On Aug 24, 10:25 am, DJ  wrote:
>
> > Just heard episode 274, since Dick was wondering where Lombok name
> > came from, here is the answer:
>
> > Lombok is an island in Indonesia, located east of Bali.
> > On google map link below you can see Java, Bali, and Lombok next to
> > each other.
>
> >http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=lombok,+i...

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to javaposse@googlegroups.com
To unsubscribe from this group, send email to 
javaposse+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en
-~--~~~~--~~--~--~---



[The Java Posse] Re: Has anybody else tried Lombok?

2009-08-25 Thread Steve


I hope they soon add knowledge of Eclipse's field prefixes so the
@Data class annotation will generate getters/setters without the
prefix.

Right now

class @Data Car
private int fSpeed;

produces

setFSpeed(int)
getFSpeed()

On Aug 24, 4:10 pm, Matt  wrote:
> I don't have much to go on either, it just does nothing. I get the
> import statement and add the annotation, then nothing. I haven't tried
> it on a fresh Eclipse though. I'll try it on my home machine when I
> get there.
>
> On Aug 24, 1:40 pm, Reinier Zwitserloot  wrote:
>
>
>
> > Hey Matt,
>
> > I really don't know what to say. There's not much to go on when all I
> > get is "it doesn't work for us". Are there errors in the error view?
> > Did you try downloading a fresh new eclipse? Give me _something_ to
> > work with.
>
> > On Aug 24, 7:28 pm, Matt  wrote:
>
> > > Yeah, we installed it to our Eclipses. That's what's weird, it seems
> > > like it works fine for everybody but both of us.
>
> > > On Aug 24, 11:07 am, Casper Bang  wrote:
>
> > > > Sure, works fine here on 64bit Ubuntu 9.04 and Eclipse 3.5. Did you
> > > > remember to install the extension to Eclipse (run lombok.jar as a Java
> > > > application and point to your eclipse installation folder)? The
> > > > checkedException prototype does not work for me however.
>
> > > > /Casper
>
> > > > On 24 Aug., 18:46, Matt  wrote:
>
> > > > > My coworker and I tried it a few weeks ago and got nothing. We both
> > > > > got it to install but when we added the annotations and the import
> > > > > statements, nothing happened. Eclipse obviously saw the jar file since
> > > > > it would auto-add the import like it should have, but then nothing
> > > > > happened. I posted in their forum but I only got basically "It should
> > > > > have worked" in response. We'd love to use it but since it did nothing
> > > > > for either of us we were a little disheartened. If it was just me that
> > > > > would be one thing but neither of us got anything.
>
> > > > > Are we alone in having it not work for us?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to javaposse@googlegroups.com
To unsubscribe from this group, send email to 
javaposse+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en
-~--~~~~--~~--~--~---



[The Java Posse] Re: What's a good webframework to use (wait, wait!)

2009-08-25 Thread Ruben Reusser
I'd suggest going with a JCR (JSR-170, JSR-283) [1] based solution
(jackrabbit or day CRX) and a framework on top of that (for example apache
sling) [2] or any of the CMS systems that are built on top of JCR (for
example magnolia or day CQ5) [3].

- they implement security
- storage is hierarchical, node level security, also with table style sql
access
- they take care of most web things like security, caching
- they can cluster and scale
- they let you focus on what you want to build and allow you to make it
look  pretty very easily (that's what a CMS is for, isn't it?)

Ruben

[1] http://jackrabbit.apache.org/
[2] http://sling.apache.org/site/index.html
[3] http://www.magnnolia-cms.com/

On Mon, Aug 24, 2009 at 3:09 PM, Joshua Marinacci wrote:

>
> * implement authentication, securely, over https
> * create a user account database or hook into another one, along with
> account creation / password change, maintenance tools, etc.
> * handle fail over to other instances, including session affinity
> * persist the storage to disk in a threadsafe and reliable manner,
> possibly setting up my own sql db and jdbc connections.
>
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to javaposse@googlegroups.com
To unsubscribe from this group, send email to 
javaposse+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en
-~--~~~~--~~--~--~---



[The Java Posse] Re: Has anybody else tried Lombok?

2009-08-25 Thread Ed G

There's the Eclipse error log you can look at, when I'm having
problems with plugins sometimes exceptions show up there. You can get
to it by going to Help->About Eclipse (at the bottom) -> Configuration
Details -> View Error Log

On Aug 24, 4:10 pm, Matt  wrote:
> I don't have much to go on either, it just does nothing. I get the
> import statement and add the annotation, then nothing. I haven't tried
> it on a fresh Eclipse though. I'll try it on my home machine when I
> get there.
>
> On Aug 24, 1:40 pm, Reinier Zwitserloot  wrote:
>
> > Hey Matt,
>
> > I really don't know what to say. There's not much to go on when all I
> > get is "it doesn't work for us". Are there errors in the error view?
> > Did you try downloading a fresh new eclipse? Give me _something_ to
> > work with.
>
> > On Aug 24, 7:28 pm, Matt  wrote:
>
> > > Yeah, we installed it to our Eclipses. That's what's weird, it seems
> > > like it works fine for everybody but both of us.
>
> > > On Aug 24, 11:07 am, Casper Bang  wrote:
>
> > > > Sure, works fine here on 64bit Ubuntu 9.04 and Eclipse 3.5. Did you
> > > > remember to install the extension to Eclipse (run lombok.jar as a Java
> > > > application and point to your eclipse installation folder)? The
> > > > checkedException prototype does not work for me however.
>
> > > > /Casper
>
> > > > On 24 Aug., 18:46, Matt  wrote:
>
> > > > > My coworker and I tried it a few weeks ago and got nothing. We both
> > > > > got it to install but when we added the annotations and the import
> > > > > statements, nothing happened. Eclipse obviously saw the jar file since
> > > > > it would auto-add the import like it should have, but then nothing
> > > > > happened. I posted in their forum but I only got basically "It should
> > > > > have worked" in response. We'd love to use it but since it did nothing
> > > > > for either of us we were a little disheartened. If it was just me that
> > > > > would be one thing but neither of us got anything.
>
> > > > > Are we alone in having it not work for us?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to javaposse@googlegroups.com
To unsubscribe from this group, send email to 
javaposse+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en
-~--~~~~--~~--~--~---



[The Java Posse] Re: maven: multiple calls to a plugin

2009-08-25 Thread carljmosca


> That's possible (I don't know web services particularly).  The normal rule
> with maven is "one module produces one artifact."  

The funny part (at least to me) is I think what I have described is a
fairly common use case for these (now three) plugins which I have
tried but none eludes to or gives an example of what's "normal" for
maven.  This is not for lack of others asking.  Perhaps it's related
to the need to at least somewhat reorganize the project and maybe it's
assumed that is an issue beyond the scope of a single maven plugin.

:)

Carl
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to javaposse@googlegroups.com
To unsubscribe from this group, send email to 
javaposse+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en
-~--~~~~--~~--~--~---