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
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: 24187
    
  34

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: 39791
    
  28
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: 39791
    
  28
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What Does This Warning Mean?