Uploaded image for project: 'CAL10N'
  1. CAL10N
  2. CAL-48

Compiler breakage (no error and no class file produced)

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • None
    • None

    Description

      It works in 0.7.7 but it is broken in 0.8 and 0.8.1.

      There is a problem with this library because it is somehow breaking javac compiler.

      I am providing test-bug.zip file that has one error:

      • Properties.java has a class named Properties2 instead of Properties.

      When compiling from maven you don't get any classes generated in result jar.
      Maven reports that there was no error.

      Then comment the depedency for this library. The error is now:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.
      5.1:compile (default-compile) on project wierd-bug: Compilation failure: Compila
      tion failure:
      [ERROR] C:\test-bug\src\main\java\admin\SortedProperties.java:[3,7] error: class SortedP
      roperties2 is public, should be declared in a file named SortedProperties2.java
      [ERROR] C:\test-bug\src\main\java\GetList.java:[1,12] error: cannot access SortedPropert
      ies

      This is major issue because it corrupts the build output and no error is given.

      This happened in our environment due to busted git merge. The result was that empty jars were produced without any error reported!!!

      Attachments

        Activity

          People

            ceki Ceki Gülcü
            mspiller Matej Spiller-Muys
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: