]> git.uio.no Git - ifi-stolz-refaktor.git/commitdiff
Code example for submitted bug regarding the Move Method refactoring:
authorErlend Kristiansen <erlenkr@ifi.uio.no>
Wed, 30 Oct 2013 15:19:23 +0000 (16:19 +0100)
committerErlend Kristiansen <erlenkr@ifi.uio.no>
Wed, 30 Oct 2013 15:19:23 +0000 (16:19 +0100)
https://bugs.eclipse.org/bugs/show_bug.cgi?id=420726

software/no.uio.ifi.refaktor.moveRefactoringBug/.classpath [new file with mode: 0644]
software/no.uio.ifi.refaktor.moveRefactoringBug/.project [new file with mode: 0644]
software/no.uio.ifi.refaktor.moveRefactoringBug/src/no/uio/ifi/refaktor/moveRefactoringBug/A.java [new file with mode: 0644]
software/no.uio.ifi.refaktor.moveRefactoringBug/src/no/uio/ifi/refaktor/moveRefactoringBug/B.java [new file with mode: 0644]

diff --git a/software/no.uio.ifi.refaktor.moveRefactoringBug/.classpath b/software/no.uio.ifi.refaktor.moveRefactoringBug/.classpath
new file mode 100644 (file)
index 0000000..fb50116
--- /dev/null
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+       <classpathentry kind="src" path="src"/>
+       <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+       <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/software/no.uio.ifi.refaktor.moveRefactoringBug/.project b/software/no.uio.ifi.refaktor.moveRefactoringBug/.project
new file mode 100644 (file)
index 0000000..53e9165
--- /dev/null
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+       <name>no.uio.ifi.refaktor.moveRefactoringBug</name>
+       <comment></comment>
+       <projects>
+       </projects>
+       <buildSpec>
+               <buildCommand>
+                       <name>org.eclipse.jdt.core.javabuilder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+       </buildSpec>
+       <natures>
+               <nature>org.eclipse.jdt.core.javanature</nature>
+       </natures>
+</projectDescription>
diff --git a/software/no.uio.ifi.refaktor.moveRefactoringBug/src/no/uio/ifi/refaktor/moveRefactoringBug/A.java b/software/no.uio.ifi.refaktor.moveRefactoringBug/src/no/uio/ifi/refaktor/moveRefactoringBug/A.java
new file mode 100644 (file)
index 0000000..8362553
--- /dev/null
@@ -0,0 +1,7 @@
+package no.uio.ifi.refaktor.moveRefactoringBug;
+
+public class A {
+       void methodToMove(B b) {
+               b = new B();
+       }
+}
diff --git a/software/no.uio.ifi.refaktor.moveRefactoringBug/src/no/uio/ifi/refaktor/moveRefactoringBug/B.java b/software/no.uio.ifi.refaktor.moveRefactoringBug/src/no/uio/ifi/refaktor/moveRefactoringBug/B.java
new file mode 100644 (file)
index 0000000..19fbe28
--- /dev/null
@@ -0,0 +1,4 @@
+package no.uio.ifi.refaktor.moveRefactoringBug;
+
+public class B {
+}