Menu

#43 Sourcepath not searched for interface files

closed-fixed
5
2004-01-18
2004-01-14
No

NoClassDefFound errors are thrown when compiling (only
Ant compiling tested) when an interface is required and
hasn't been compiled yet.

A.java:
class A implements B {
}

B.java:
interface B {
}

In my environment, A & B are both in the same package,
but not the same file.

Discussion

  • Arno Unkrig

    Arno Unkrig - 2004-01-18

    Logged In: YES
    user_id=865893

    You must have tested this on a pre-1.4 JDK.

    On pre-1.4 JDKs, "URLConnection.getLastModified()" returns
    zero for file URLs. This was interpreted as "file does not
    exist".
    Implemented a workaround.

    Fixed in 1.0.15.

     
  • Arno Unkrig

    Arno Unkrig - 2004-01-18
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB