Uploaded image for project: 'Commons JCI'
  1. Commons JCI
  2. JCI-59

Eclipse compiler is unable to compile additional top-level classes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.1
    • 1.2
    • compiler eclipse
    • None

    Description

      When using the Eclipse compiler, I am unable to compile additional top-level classes. For example,

      package jci;
      public class Simple {
          public String toString() {
                return "Simple";
           }
      }
       class AdditionalTopLevel {
             public String toString() {
                  return "AdditionalTopLevel";
             }
      }
      
      

      Causes the compile error warning: The type AdditionalTopLevel collides with a package.

      This works fine with the Javac compiler and the Janino compiler.

      Attachments

        1. JCI-59-testcase-1.patch
          2 kB
          Jingkei Ly

        Activity

          People

            tcurdt Torsten Curdt
            jly Jingkei Ly
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: