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

Eclipse compiler is unable to compile additional top-level classes

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            tcurdt Torsten Curdt
            jly Jingkei Ly

            Dates

              Created:
              Updated:

              Slack

                Issue deployment