title: The literal xyz of type int is out of range
body: <p>I am working with data types at the moment in Java, and if I have understood correctly the type <code>long</code> accepts a value between the ranges of -9,223,372,036,854,775,808 to +9,223,372,036,854,775,807. Now as you can see below, I have create a <code>long</code> variable called <code>testLong</code>, although when I insert 9223372036854775807 as the value, I get an error stating:</p>
  <blockquote>
  <p>The literal 9223372036854775807  of the type int is out of range.</p>
  </blockquote>
  <p>I don't know why it is referring to the <code>long</code> data type as an <code>int</code>.</p>
  <p>Anyone have any ideas?</p>
  <p>Code:</p>
  <pre><code>char testChar = 01;
  byte testByte = -128;
  int testInt = -2147483648;
  short testShort = -32768;
  long testLong = 9223372036854775807;
  float testFoat;
  double testDouble = 4.940656458412;
  boolean testBool = true;
  </code></pre>