aspose file tools*
The moose likes Web Services and the fly likes What Does This Warning Mean? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "What Does This Warning Mean?" Watch "What Does This Warning Mean?" New topic
Author

What Does This Warning Mean?

Mark Wuest
Ranch Hand

Joined: Jun 07, 2003
Posts: 88
I'm not sure what eclipse/javac is trying to tell me here. Maybe I need more coffee... Anyone know what it means?

"Any data in the field "attribsToCopyInit" should not be specific to the caller of this service. Values in this field will not be consistent across operations or event handlers on this class."

"Any data in the field "attribsToCopy" should not be specific to the caller of this service. Values in this field will not be consistent across operations or event handlers on this class."

Here's the code:

Thanks,

Mark
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24168
    
  30

Makes no sense to me. Surely it's not a javac message; if it's an Eclipse message, maybe it's from some non-standard add-on? What sort of stuff have you got installed?


[Jess in Action][AskingGoodQuestions]
Mark Wuest
Ranch Hand

Joined: Jun 07, 2003
Posts: 88
I shoulda pasted the code instead of typing it - it's a web service. I edited the code to include the annotations...

It's "BEA Workshop for WebLogic Platform", eclipse based.

Mark
Mark Wuest
Ranch Hand

Joined: Jun 07, 2003
Posts: 88
Hmmm - the IDE started going nuts and crashing (and sending bug reports). I moved the HashSet to be method local (which means the HashSet gets re-initialized each time the method gets called) and it fixed things. Not effecient, but at least the IDE doesn't crash and I don't get warnings... Weird..

Mark
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36579
    
  16
If the HashSet always contains the same data, why don't you make it static? And maybe even final?
Mark Wuest
Ranch Hand

Joined: Jun 07, 2003
Posts: 88
Campbell Ritchie wrote:If the HashSet always contains the same data, why don't you make it static? And maybe even final?


Yeah - I intended to do that, but having it anything other than method-local makes the IDE crash. Weird, huh?

Mark
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36579
    
  16
Try navigating into your eclipse directories with a command line/terminal/shell, and compile and execute the classes from the terminal. See whether it still produces any errors. You might get complaints from Eclipse later if it finds two copies of a file, but you can sort that out easily enough.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: What Does This Warning Mean?
 
Similar Threads
Execution order of threads synced on a common object
In need of a method to convert to Mixed Case
i'm bit curious about the concatenated string literals with +
Problem with JSF remembering old values
Changing a component's properties from a bean