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;
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.
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
add a comment |
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.
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
What folder is configured inProject Structure->Modules->Paths->Output path
? Sometimes Intellij hasout
there instead oftarget
(depending on how the project was created, I believe). And if you used maven or gradle to rebuild then the .class file intarget
might be up to date but not the one inout
.
– 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
add a comment |
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.
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
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.
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
java intellij-idea enums
asked Mar 22 at 3:56
CracorasCracoras
707
707
What folder is configured inProject Structure->Modules->Paths->Output path
? Sometimes Intellij hasout
there instead oftarget
(depending on how the project was created, I believe). And if you used maven or gradle to rebuild then the .class file intarget
might be up to date but not the one inout
.
– 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
add a comment |
What folder is configured inProject Structure->Modules->Paths->Output path
? Sometimes Intellij hasout
there instead oftarget
(depending on how the project was created, I believe). And if you used maven or gradle to rebuild then the .class file intarget
might be up to date but not the one inout
.
– 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
add a comment |
1 Answer
1
active
oldest
votes
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.
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
answered Mar 22 at 14:53
CracorasCracoras
707
707
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
What folder is configured in
Project Structure->Modules->Paths->Output path
? Sometimes Intellij hasout
there instead oftarget
(depending on how the project was created, I believe). And if you used maven or gradle to rebuild then the .class file intarget
might be up to date but not the one inout
.– 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