Declaring a private boolean causes build crash
I have a Java project that builds using Apache Ant to a website. This is not my code I am trying to learn and modify it. When I alter an object that implements Serializable, and is extended by other objects in a very small way, such as declaring a private boolean the server is unable to load the site.
ERROR - RequestCycle - Can't instantiate page using constructor public foo.bar.exportconfiguration.ExportConfigurationList()
Any ideas on where to look for answers? Looking for advice or ideas.
I know this is kind of vague, I'll check back and add more details if I can find them. Doing searches on another boolean variable to try to replicate any checking,开发者_StackOverflow社区 or verifying behavior that applies to it.
Edit: To clarify, I am only declaring the boolean:
private boolean fooBarFlag;
The boolean is never used.
Thanks
The boolean is never used.
This is normally just a warning, however, I don't know if the build script is set up to fail on warnings.
Try and add @SuppressWarnings ( "unused" )
to the declaration:
@SuppressWarnings ( "unused" )
private boolean fooBarFlag;
精彩评论