Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6378401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:00:02+00:00 2026-05-25T02:00:02+00:00

After I create classes in a certain package, and add an enum declaration inside

  • 0

After I create classes in a certain package, and add an enum declaration inside the class, I can no longer generate getters and setters. I suspect it has something to do with the project settings or setup, but I’m not sure where to look. If I make the same class in its own project, I don’t see the problem.

public class ExampleClass {

    private enum SampleEnum {
        A, B, C;
    }

    private SampleEnum e;

    private String variableToGenerateCodeOn;

}

When I try to generate getters and setters for variableToGenerateCodeOn, I get this error: cannot analyze selected field 'variableToGenerateCodeOn'

Edit
When I resolved the errors with tomcat, the problem didn’t go away. Of two others on my team, one was able to repro the bug with the same code, the other wasn’t. I am now guessing it has to do with some workspace settings, but I am open to additional ideas. The original thought is still preserved below:

Outdated/Ruled-out idea
I have several errors from some included tomcat files. One of them that might be applicable:

Description: Enumeration cannot be resolved to a type
On Detail: sessionDetail.jsp
In Folder: {myproject}/tomcat/webapps/manager/WEB-INF/jsp
Location: line 104
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T02:00:02+00:00Added an answer on May 25, 2026 at 2:00 am

    This is a defect in Eclipse Indigo. The presence of some nested declaration confuses the getter/setter code. You can report it in bugzilla. For now, move the enum out to its own file or type the getters and setters by paw. [dog joke]

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After being taught how to create a hash table in class, I don't understand
I use jquerylive plugin to add additional css classes to .field-validation-error class like this:
When I create a graph after using range.copy and range.paste it leaves the paste
After I renamed my PC, I couldn't create new paublications, for database replication in
I'm using the After Effects CS3 Javascript API to dynamically create and change text
This is what I currently have: CREATE OR REPLACE TRIGGER MYTRIGGER AFTER INSERT ON
Like many other SharePoint users, I've had to create a custom list definition. After
I'm creating an API for a module and after I created several methods inside
I want to assert that a certain registry value exists after installation, so I
Is it possible to create a custom @Aspect and apply it to the Classes/Methods

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.