Java

From Arnout Engelen

Jump to: navigation, search

System.out.println("::".split("(?<=(^|[^x])):").length);

Contents

[edit] Script to find out in which jar a class is:

find ~/.m2/repository/ -name *.jar | while read line ; do unzip -l "$line" | while read line2 ; do echo $line $line2 ; done ; done

(might take a long time, tee it into a cache file for speed ;))

[edit] Servlet deployment

When deploying a WAR, I got the error:

org.springframework.orm.hibernate3.support.OpenSessionInViewFilter cannot be cast to javax.servlet.Filter 

I figured it probably meant I was using incompatible versions of javax.servlet - turns out I was using the DevLoader while I shouldn't.

[edit] Distributed

http://i.cs.hku.hk/~wzzhu/jessica2/jessica2-howto.txt

[edit] Language improvements

Referencing fields, methods, ctors statically: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5043025

Personal tools