Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4849935

jdk1.4.2. compilation fails when jdbc20x.zip is present in classpath

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.2
    • tools
    • None
    • generic
    • generic

      I compiled compile atached code under jdk 1.4.2 b19 and errors appeared (see below). Compiler cannot handle duplicated jdbc20 api library on the classpath. Compilation under jdk1.4.0, jdk1.4.1 is ok.



      e:\j2sdk1.4.2\bin\javac -classpath .;e:\s1s5_se\lib\ext\jdbc20x.zip;e:\s1s5_se\modules\ext\sql.jar;e:\s1s5_se\modules\ext\rowset.jar test/AnotherTest.java

      e:\s1s5_se\lib\ext\jdbc20x.zip(javax/sql/DataSource.java):32: class DataSource is public, should be declared in a file named DataSource.java
      (source unavailable)
      e:\s1s5_se\lib\ext\jdbc20x.zip(javax/sql/RowSet.java):62: class RowSet is public, should be declared in a file named RowSet.java
      (source unavailable)
      e:\s1s5_se\lib\ext\jdbc20x.zip(javax/sql/RowSetListener.java):30: class RowSetListener is public, should be declared in a file named RowSetListener.java
      (source unavailable)
      e:\s1s5_se\lib\ext\jdbc20x.zip(javax/sql/RowSetEvent.java):29: class RowSetEvent is public, should be declared in a file named RowSetEvent.java
      (source unavailable)
      4 errors

      ###@###.### 2003-04-17

            gafter Neal Gafter (Inactive)
            tbrandal Tomáš Brandalík (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: