Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-7675

Prevent javac warning '_' used as an identifier

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 2.2.0 beta 1
    • None
    • None

    Description

      Quick fix for these Java8 javac warnings:

          [javac] /Users/snazy/devel/cassandra/trunk/tools/stress/src/org/apache/cassandra/stress/settings/OptionDistribution.java:192: warning: '_' used as an identifier
          [javac]             } catch (Exception _)
          [javac]                                ^
          [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
          [javac] /Users/snazy/devel/cassandra/trunk/tools/stress/src/org/apache/cassandra/stress/settings/OptionDistribution.java:216: warning: '_' used as an identifier
          [javac]             } catch (Exception _)
          [javac]                                ^
          [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
          [javac] /Users/snazy/devel/cassandra/trunk/tools/stress/src/org/apache/cassandra/stress/settings/OptionDistribution.java:241: warning: '_' used as an identifier
          [javac]             } catch (Exception _)
          [javac]                                ^
          [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
          [javac] /Users/snazy/devel/cassandra/trunk/tools/stress/src/org/apache/cassandra/stress/settings/OptionDistribution.java:262: warning: '_' used as an identifier
          [javac]             } catch (Exception _)
          [javac]                                ^
          [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
          [javac] /Users/snazy/devel/cassandra/trunk/tools/stress/src/org/apache/cassandra/stress/settings/OptionDistribution.java:281: warning: '_' used as an identifier
          [javac]             } catch (Exception _)
          [javac]                                ^
          [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
          [javac] /Users/snazy/devel/cassandra/trunk/tools/stress/src/org/apache/cassandra/stress/settings/OptionReplication.java:83: warning: '_' used as an identifier
          [javac]                 } catch (Exception _)
          [javac]                                    ^
          [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
      

      Attachments

        1. 7675.txt
          4 kB
          Robert Stupp

        Activity

          People

            snazy Robert Stupp
            snazy Robert Stupp
            Robert Stupp
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: