build warnings

195 views
Skip to first unread message

generalenthu

unread,
Jul 31, 2012, 12:36:50 AM7/31/12
to jbook...@googlegroups.com
I am trying my hand at Java after a long long time and am getting 4 warnings when I try to build. I tried using the instructions for Windows on a Linux install of eclipse (4.2)

Here are the warnings. Can someone throw light on what is happening or are these OK to proceed with

Description Resource Path Location Type
Resource leak: '<unassigned Closeable value>' is never closed JBookTrader.java /JBookTrader/source/com/jbooktrader/platform/startup line 47 Java Problem
The enum constant TimeUpdate needs a corresponding case label in this enum switch on ModelListener.Event StrategyInformationDialog.java /JBookTrader/source/com/jbooktrader/platform/strategy line 35 Java Problem
The enum constant Error needs a corresponding case label in this enum switch on ModelListener.Event StrategyInformationDialog.java /JBookTrader/source/com/jbooktrader/platform/strategy line 35 Java Problem
The enum constant ModeChanged needs a corresponding case label in this enum switch on ModelListener.Event StrategyInformationDialog.java /JBookTrader/source/com/jbooktrader/platform/strategy line 35 Java Problem

generalenthu

unread,
Jul 31, 2012, 1:31:15 AM7/31/12
to jbook...@googlegroups.com

A little bit of digging tells me that the compiler is just being a little finicky here and I turned off the corresponding options. I am pretty sure there are no other configuration issues. It will be great if someone can confirm the same.

Thanks in advance!

Eugene Kononov

unread,
Dec 27, 2012, 9:12:15 AM12/27/12
to jbook...@googlegroups.com

"Exactly one argument must be passed. Usage: JBookTrader <JBookTraderDirectory>"



Use the provided scripts in the /run directory of the distribution to start JBookTrader:
JBookTrader.cmd (on Windows)
JBookTrader.sh (on Unix/Linux/OS X)


Eugene Kononov

unread,
Dec 27, 2012, 9:40:29 AM12/27/12
to jbook...@googlegroups.com

The enum constant TimeUpdate needs a corresponding case label in this enum switch on ModelListener.Event StrategyInformationDialog.java /JBookTrader/source/com/jbooktrader/platform/strategy line 35 Java Problem
The enum constant Error needs a corresponding case label in this enum switch on ModelListener.Event StrategyInformationDialog.java /JBookTrader/source/com/jbooktrader/platform/strategy line 35 Java Problem
The enum constant ModeChanged needs a corresponding case label in this enum switch on ModelListener.Event StrategyInformationDialog.java /JBookTrader/source/com/jbooktrader/platform/strategy line 35 Java Problem


Here is a long discussion on this topic:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=374605

My suggestion is to turn off the corresponding warning in Eclipse. Go to Windows|Preferences|Java|Compiler|Errors/Warnings dialog to reset it.

Jeffrey Zhou

unread,
Dec 27, 2012, 2:21:38 PM12/27/12
to jbook...@googlegroups.com
Thanks for the quick response! This is very helpful!
Reply all
Reply to author
Forward
0 new messages