Basically, line numbers are kept for debugging, so if you change your source code the way you did, your method starts at a different line and the compiled class reflects the difference.
Related Contents:
- Error:java: invalid source release: 8 in Intellij. What does it mean?
- javac : command not found
- Java: How can I compile an entire directory structure of code ?
- is it possible to disable javac’s inlining of static final variables?
- what’s the difference between -source and -target compatibility?
- Compile code fully in memory with javax.tools.JavaCompiler [duplicate]
- Why is 2 * (i * i) faster than 2 * i * i in Java?
- ant warning: “‘includeantruntime’ was not set”
- In which language are the Java compiler and JVM written?
- Is Java a Compiled or an Interpreted programming language ?
- Java 7 language features with Android
- Building vs. Compiling (Java)
- IntelliJ IDEA 13 uses Java 1.5 despite setting to 1.7
- Does the ‘java’ command compile Java programs?
- Java’s Virtual Machine and CLR
- javac not working in windows command prompt
- How can I compile a Java program in Eclipse without running it?
- How do I run Java .class files?
- How to intentionally cause a custom java compiler warning message?
- Do unused import and objects have a performance impact?
- Differences between MSIL and Java bytecode?
- Compiling and Running Java Code in Sublime Text 2
- Maven Unable to locate the Javac Compiler in:
- Difference between JVM’s LookupSwitch and TableSwitch?
- Why are Java 8 lambdas invoked using invokedynamic?
- What is the $1 in class file names?
- JDK 11.0.2 compilation fails with javac NPE on anonymous parameterized class type inference
- Two dimensional array initializer followed by square brackets
- Why does one long string take MORE space than lots of small strings?
- Why are arrays Objects, but can not be used as a base class?
- Infinite loop breaks method signature without compilation error [duplicate]
- Gradle “Entry .classpath is a duplicate but no duplicate handling strategy has been set”
- How to write code in Java 11, but target Java 8 and above?
- Is there a llvm java front end that converts java source to llvm’s intermediate form?
- What is a stack map frame
- Is there a performance difference between Javac debug on and off?
- Make javac treat warnings as errors
- Thread.sleep inside infinite while loop in lambda doesn’t require ‘catch (InterruptedException)’ – why not?
- Suppress javac warning “…is internal proprietary API and may be removed in a future release”
- How can I suppress javac warnings about deprecated api?
- In Java 8, why were Arrays not given the forEach method of Iterable?
- Is this valid Java?
- Using internal sun classes with javac
- java.lang.Exception: No tests found matching Method using Intellij IDEA
- What is sjavac, who is it for and how do I use it?
- The POM for project is missing, no dependency information available
- Are there any specific examples of backward incompatibilities between Java versions?
- IDEA JetBrains IntelliJ – Compile error on ‘make’ but fine when compiled using Maven and no errors reported by IntelliJ in the class file
- How do I compile a .java with support for older versions of Java?
- Is there a way to use maven property in Java class during compilation