New value added to Java Enum not available during debug The 2019 Stack Overflow Developer Survey Results Are InIs Java “pass-by-reference” or “pass-by-value”?How to get an enum value from a string value in Java?Get int value from enum in C#How to loop through all enum values in C#?Does Java support default parameter values?A 'for' loop to iterate over an enum in JavaHow do I determine whether an array contains a particular value in Java?Comparing Java enum members: == or equals()?Cast Int to enum in JavaUsing Enum values as String literals

Why didn't the Event Horizon Telescope team mention Sagittarius A*?

Why not take a picture of a closer black hole?

When should I buy a clipper card after flying to OAK?

Output the Arecibo Message

If I score a critical hit on an 18 or higher, what are my chances of getting a critical hit if I roll 3d20?

Is bread bad for ducks?

Which Sci-Fi work first showed weapon of galactic-scale mass destruction?

Feature engineering suggestion required

FPGA - DIY Programming

Are spiders unable to hurt humans, especially very small spiders?

Time travel alters history but people keep saying nothing's changed

Landlord wants to switch my lease to a "Land contract" to "get back at the city"

Multiply Two Integer Polynomials

Why is the Constellation's nose gear so long?

Why do we hear so much about the Trump administration deciding to impose and then remove tariffs?

Can we generate random numbers using irrational numbers like π and e?

Button changing it's text & action. Good or terrible?

How to check whether the reindex working or not in Magento?

Are there incongruent pythagorean triangles with the same perimeter and same area?

Loose spokes after only a few rides

slides for 30min~1hr skype tenure track application interview

Am I thawing this London Broil safely?

Ubuntu Server install with full GUI

What is the most effective way of iterating a std::vector and why?



New value added to Java Enum not available during debug



The 2019 Stack Overflow Developer Survey Results Are InIs Java “pass-by-reference” or “pass-by-value”?How to get an enum value from a string value in Java?Get int value from enum in C#How to loop through all enum values in C#?Does Java support default parameter values?A 'for' loop to iterate over an enum in JavaHow do I determine whether an array contains a particular value in Java?Comparing Java enum members: == or equals()?Cast Int to enum in JavaUsing Enum values as String literals



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I am having the following problem:



I have an Enum that was originally declared with 5 elements.



public enum GraphFormat {
DOT,
GML,
PUML,
JSON,
NEO4J,
TEXT
@Override
public String getFileExtension()
return ".txt";

;


Now I need to add an additional element to it (NEO4J). When I run my code or try to debug it I am getting an exception because the value can't be found in the enum.
Variables at debug time
I am using IntelliJ as my IDE, and have cleaned the cache, force a rebuild, etc.. and nothing happens. When I look at the .class file created on my target folder, it also has the new element.



Any ideas on what could be causing this issue ?










share|improve this question






















  • What folder is configured in Project Structure->Modules->Paths->Output path? Sometimes Intellij has out there instead of target (depending on how the project was created, I believe). And if you used maven or gradle to rebuild then the .class file in target might be up to date but not the one in out.

    – binoternary
    Mar 22 at 4:10











  • The few times this has happened to me, it was because I just forgot to relaunch the app I was debugging :|

    – walen
    Mar 22 at 9:54











  • @binotemary - I just checked the project output path and is pointing to the output folders. Note that if I open the .class file in the output folders it has the new element. It just looks like the debugger is running a byte code from somewhere else.

    – Cracoras
    Mar 22 at 13:33

















0















I am having the following problem:



I have an Enum that was originally declared with 5 elements.



public enum GraphFormat {
DOT,
GML,
PUML,
JSON,
NEO4J,
TEXT
@Override
public String getFileExtension()
return ".txt";

;


Now I need to add an additional element to it (NEO4J). When I run my code or try to debug it I am getting an exception because the value can't be found in the enum.
Variables at debug time
I am using IntelliJ as my IDE, and have cleaned the cache, force a rebuild, etc.. and nothing happens. When I look at the .class file created on my target folder, it also has the new element.



Any ideas on what could be causing this issue ?










share|improve this question






















  • What folder is configured in Project Structure->Modules->Paths->Output path? Sometimes Intellij has out there instead of target (depending on how the project was created, I believe). And if you used maven or gradle to rebuild then the .class file in target might be up to date but not the one in out.

    – binoternary
    Mar 22 at 4:10











  • The few times this has happened to me, it was because I just forgot to relaunch the app I was debugging :|

    – walen
    Mar 22 at 9:54











  • @binotemary - I just checked the project output path and is pointing to the output folders. Note that if I open the .class file in the output folders it has the new element. It just looks like the debugger is running a byte code from somewhere else.

    – Cracoras
    Mar 22 at 13:33













0












0








0








I am having the following problem:



I have an Enum that was originally declared with 5 elements.



public enum GraphFormat {
DOT,
GML,
PUML,
JSON,
NEO4J,
TEXT
@Override
public String getFileExtension()
return ".txt";

;


Now I need to add an additional element to it (NEO4J). When I run my code or try to debug it I am getting an exception because the value can't be found in the enum.
Variables at debug time
I am using IntelliJ as my IDE, and have cleaned the cache, force a rebuild, etc.. and nothing happens. When I look at the .class file created on my target folder, it also has the new element.



Any ideas on what could be causing this issue ?










share|improve this question














I am having the following problem:



I have an Enum that was originally declared with 5 elements.



public enum GraphFormat {
DOT,
GML,
PUML,
JSON,
NEO4J,
TEXT
@Override
public String getFileExtension()
return ".txt";

;


Now I need to add an additional element to it (NEO4J). When I run my code or try to debug it I am getting an exception because the value can't be found in the enum.
Variables at debug time
I am using IntelliJ as my IDE, and have cleaned the cache, force a rebuild, etc.. and nothing happens. When I look at the .class file created on my target folder, it also has the new element.



Any ideas on what could be causing this issue ?







java intellij-idea enums






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 22 at 3:56









CracorasCracoras

707




707












  • What folder is configured in Project Structure->Modules->Paths->Output path? Sometimes Intellij has out there instead of target (depending on how the project was created, I believe). And if you used maven or gradle to rebuild then the .class file in target might be up to date but not the one in out.

    – binoternary
    Mar 22 at 4:10











  • The few times this has happened to me, it was because I just forgot to relaunch the app I was debugging :|

    – walen
    Mar 22 at 9:54











  • @binotemary - I just checked the project output path and is pointing to the output folders. Note that if I open the .class file in the output folders it has the new element. It just looks like the debugger is running a byte code from somewhere else.

    – Cracoras
    Mar 22 at 13:33

















  • What folder is configured in Project Structure->Modules->Paths->Output path? Sometimes Intellij has out there instead of target (depending on how the project was created, I believe). And if you used maven or gradle to rebuild then the .class file in target might be up to date but not the one in out.

    – binoternary
    Mar 22 at 4:10











  • The few times this has happened to me, it was because I just forgot to relaunch the app I was debugging :|

    – walen
    Mar 22 at 9:54











  • @binotemary - I just checked the project output path and is pointing to the output folders. Note that if I open the .class file in the output folders it has the new element. It just looks like the debugger is running a byte code from somewhere else.

    – Cracoras
    Mar 22 at 13:33
















What folder is configured in Project Structure->Modules->Paths->Output path? Sometimes Intellij has out there instead of target (depending on how the project was created, I believe). And if you used maven or gradle to rebuild then the .class file in target might be up to date but not the one in out.

– binoternary
Mar 22 at 4:10





What folder is configured in Project Structure->Modules->Paths->Output path? Sometimes Intellij has out there instead of target (depending on how the project was created, I believe). And if you used maven or gradle to rebuild then the .class file in target might be up to date but not the one in out.

– binoternary
Mar 22 at 4:10













The few times this has happened to me, it was because I just forgot to relaunch the app I was debugging :|

– walen
Mar 22 at 9:54





The few times this has happened to me, it was because I just forgot to relaunch the app I was debugging :|

– walen
Mar 22 at 9:54













@binotemary - I just checked the project output path and is pointing to the output folders. Note that if I open the .class file in the output folders it has the new element. It just looks like the debugger is running a byte code from somewhere else.

– Cracoras
Mar 22 at 13:33





@binotemary - I just checked the project output path and is pointing to the output folders. Note that if I open the .class file in the output folders it has the new element. It just looks like the debugger is running a byte code from somewhere else.

– Cracoras
Mar 22 at 13:33












1 Answer
1






active

oldest

votes


















0














I found my problem and want to share here what was causing it. My code was actually for a Maven plug-in which I was pointing to another project of mine to run it as a goal. However the pom.xml of my target test project was pointing to the original version of the plug-in instead of the one I am working on, and that version of course is outdated and does not include the new value. Thank you.






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55292682%2fnew-value-added-to-java-enum-not-available-during-debug%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    I found my problem and want to share here what was causing it. My code was actually for a Maven plug-in which I was pointing to another project of mine to run it as a goal. However the pom.xml of my target test project was pointing to the original version of the plug-in instead of the one I am working on, and that version of course is outdated and does not include the new value. Thank you.






    share|improve this answer



























      0














      I found my problem and want to share here what was causing it. My code was actually for a Maven plug-in which I was pointing to another project of mine to run it as a goal. However the pom.xml of my target test project was pointing to the original version of the plug-in instead of the one I am working on, and that version of course is outdated and does not include the new value. Thank you.






      share|improve this answer

























        0












        0








        0







        I found my problem and want to share here what was causing it. My code was actually for a Maven plug-in which I was pointing to another project of mine to run it as a goal. However the pom.xml of my target test project was pointing to the original version of the plug-in instead of the one I am working on, and that version of course is outdated and does not include the new value. Thank you.






        share|improve this answer













        I found my problem and want to share here what was causing it. My code was actually for a Maven plug-in which I was pointing to another project of mine to run it as a goal. However the pom.xml of my target test project was pointing to the original version of the plug-in instead of the one I am working on, and that version of course is outdated and does not include the new value. Thank you.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 22 at 14:53









        CracorasCracoras

        707




        707





























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55292682%2fnew-value-added-to-java-enum-not-available-during-debug%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

            SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

            은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현