Uploaded image for project: 'Sqoop (Retired)'
  1. Sqoop (Retired)
  2. SQOOP-1008

Test TestClassWriter.testNoClassGeneration is failing on JDK7

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.3
    • 1.4.4
    • None
    • None

    Description

      Test TestClassWriter.testNoClassGeneration is failing when using JDK7:

      Testcase: testNoClassGeneration took 0.016 sec
      	Caused an ERROR
      no source files
      java.lang.IllegalStateException: no source files
      	at com.sun.tools.javac.main.Main.error(Main.java:173)
      	at com.sun.tools.javac.main.Main.compile(Main.java:397)
      	at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:132)
      	at org.apache.sqoop.orm.CompilationManager.compile(CompilationManager.java:205)
      	at com.cloudera.sqoop.orm.TestClassWriter.runFailedGenerationTest(TestClassWriter.java:514)
      	at com.cloudera.sqoop.orm.TestClassWriter.testNoClassGeneration(TestClassWriter.java:541)
      

      I think that this due to changed API as JDK6 seems to be throwing IOException instead of IllegalStateException.

      Attachments

        1. bugSQOOP-1008.patch
          0.8 kB
          Jarek Jarcec Cecho

        Issue Links

          Activity

            People

              jarcec Jarek Jarcec Cecho
              jarcec Jarek Jarcec Cecho
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: