<classpath>
<classpathentry excluding="javassist/util/HotSwapper.java" kind="src" path="src/main"/>
<classpathentry kind="src" path="src/test"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="lib/junit.jar"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path="eclipse-output/classes"/>
</classpath>
if (token == '.') {
String member = ((Symbol)expr.oprand2()).get();
if (member.equals("length"))
- atArrayLength(expr);
+ try {
+ atArrayLength(expr);
+ }
+ catch (NoFieldException nfe) {
+ // length might be a class or package name.
+ atFieldRead(expr);
+ }
else if (member.equals("class"))
atClassObject(expr); // .class
else