google-code-export / umple

Automatically exported from code.google.com/p/umple
1 stars 0 forks source link

Many warnings in build causing clutter - test cases need cleaning up #617

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The build produces many warnings. We need to suppress them

The best approach would be to change the test case without changing the meaning 
of the test. 

compileJava:
     [java] testbed/src/TestHarness.ump
     [java] Warning 54 on line 63 of file "TestHarnessPooledStateMachine.ump":Success! Processed testbed/src/TestHarness.ump.
     [java] Transition e1 will be ignored due to a unguarded duplicate event
     [java] Warning 62 on line 78 of file "TestHarnessPooledStateMachine.ump":
     [java] 
     [java] (unspecified) must not be used in combination with Pooled State machine sm - it is treated such as other regular events - it is pooled
     [java] Warning 54 on line 59 of file "TestHarnessQueuedStateMachine.ump":
     [java] Transition e1 will be ignored due to a unguarded duplicate event
     [java] Warning 66 on line 290 of file "TestHarnessStateMachineJava.ump":
     [java] Transition to 'Sss2' has multiple possible destinations. Please use dot notation to clarify what state the transition should go to.
     [java] Warning 67 on line 103 of file "TestHarnessStateMachine.ump":
     [java] State 'Full' from StateMachine 'Off' is non-reachable.
     [java] Warning 67 on line 134 of file "TestHarnessStateMachine.ump":
     [java] State 'Full' from StateMachine 'Off' is non-reachable.
     [java] Warning 67 on line 205 of file "TestHarnessStateMachine.ump":
     [java] State 'Off' from StateMachine 'one' is non-reachable.
     [java] Warning 67 on line 271 of file "TestHarnessStateMachine.ump":
     [java] State 'black' from StateMachine 'Open' is non-reachable.
     [java] Warning 67 on line 278 of file "TestHarnessPooledStateMachine.ump":
     [java] State 's5' from StateMachine 'sm1' is non-reachable.
     [java] Warning 67 on line 349 of file "TestHarnessPooledStateMachine.ump":
     [java] State 's3' from StateMachine 'sm' is non-reachable.
     [java] Warning 67 on line 251 of file "TestHarnessQueuedStateMachine.ump":
     [java] State 's5' from StateMachine 'sm1' is non-reachable.
     [java] Warning 67 on line 323 of file "TestHarnessQueuedStateMachine.ump":
     [java] State 's3' from StateMachine 'sm' is non-reachable.
    [javac] Compiling 379 source files to /Users/tcl/Documents/7--Research/2-CRuiSE/codebase/googleumple/umple/testbed/bin
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
     [echo] Current Version: 1.20.2.4305

compilePhp:
     [java] testbed_php/src/TestHarnessPhp.ump
     [java] Warning 67 on line 103 of file "TestHarnessStateMachine.ump":
     [java] State 'Full' from StateMachine 'Off' is non-reachable.
     [java] Warning 67 on line 134 of file "TestHarnessStateMachine.ump":
     [java] State 'Full' from StateMachine 'Off' is non-reachable.
     [java] Warning 67 on line 205 of file "TestHarnessStateMachine.ump":
     [java] State 'Off' from StateMachine 'one' is non-reachable.
     [java] Warning 67 on line 271 of file "TestHarnessStateMachine.ump":
     [java] State 'black' from StateMachine 'Open' is non-reachable.
     [java] Success! Processed testbed_php/src/TestHarnessPhp.ump.

Original issue reported on code.google.com by TimothyCLethbridge on 5 Aug 2014 at 7:08

GoogleCodeExporter commented 9 years ago
There are fewer warnings now, but there are still some that could probably be 
fixed.

Early in the build:

umpleSelf:
     [java] cruise.umple/src/Master.ump
     [java] Success! Processed cruise.umple/src/Master.ump.
     [java] Warning 1009 on line 20 of file "Generator.ump":
     [java] Method 'setModel' has a name conflict with automatic generated getter/setter methods for attribute 'model'. The user definition is being disconsidered. Please use a different name
     [java] Warning 1009 on line 20 of file "Generator.ump":
     [java] Method 'setModel' has a name conflict with automatic generated getter/setter methods for attribute 'model'. The user definition is being disconsidered. Please use a different name
     [java] cruise.umple.validator/src/Master.ump
     [java] Success! Processed cruise.umple.validator/src/Master.ump.
     [java] cruise.umplificator/src/Master.ump
     [java] Success! Processed cruise.umplificator/src/Master.ump.
     [echo] Last Version: 1.21.0.4666

And later in the build:

compileJava:
     [java] testbed/src/TestHarness.ump
     [java] Success! Processed testbed/src/TestHarness.ump.
     [java] Warning 67 on line 365 of file "TestHarnessStateMachineJava.ump":
     [java] State 'Sss2' from StateMachine 'Ss1' is non-reachable.
     [java] Warning 50 on line 371 of file "TestHarnessStateMachineJava.ump":
     [java] State 'S1.Sss2' has not been declared, it is being treated as an new state
    [javac] Compiling 686 source files to /home/craigbryan/Documents/Work/UmpleDev/umple/testbed/bin
    [javac] Note: /home/craigbryan/Documents/Work/UmpleDev/umple/testbed/test/cruise/attributes/test/ManyAttributeTest.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
     [echo] Last Version: 1.21.0.4666

Original comment by CraigBry...@gmail.com on 8 Feb 2015 at 2:28

GoogleCodeExporter commented 9 years ago
More recently, the build has started spamming this message:

[java] Exception processing grammar rule in/umple_filter.grammar Failing Rule 
Number = 01 Likely no space before colon or space after rule before -. 
[java]  Rule=filter: filter ( [filterName] )? { ([[filterStatement]];)?}

It prints this message 176 times.

Original comment by CraigBry...@gmail.com on 22 Feb 2015 at 4:26