diff --git a/MANIFEST.MF b/MANIFEST.MF
index 532d8da..9f2ffa1 100644
--- a/MANIFEST.MF
+++ b/MANIFEST.MF
@@ -3,7 +3,7 @@ Main-Class: org.eclipse.jdt.internal.compiler.batch.Main
 Bundle-ManifestVersion: 2
 Bundle-Name: Eclipse Compiler for Java(TM)
 Bundle-SymbolicName: org.eclipse.jdt.core.compiler.batch
-Bundle-Version: 3.10.0.qualifier
+Bundle-Version: 3.11.0.qualifier
 Bundle-ClassPath: .
 Bundle-Vendor: Eclipse.org
 Export-Package: org.eclipse.jdt.core,
diff --git a/ecj.spec b/ecj.spec
index 4ed14b0..5c3ba93 100644
--- a/ecj.spec
+++ b/ecj.spec
@@ -1,11 +1,11 @@
 Epoch: 1
 
-%global qualifier R-4.4.2-201502041700
+%global qualifier R-4.5-201506032000
 
 Summary: Eclipse Compiler for Java
 Name: ecj
-Version: 4.4.2
-Release: 2%{?dist}
+Version: 4.5
+Release: 1%{?dist}
 URL: http://www.eclipse.org
 License: EPL
 
@@ -38,6 +38,9 @@ the JDT Core batch compiler.
 
 sed -i -e 's|debuglevel=\"lines,source\"|debug=\"yes\"|g' build.xml
 sed -i -e "s/Xlint:none/Xlint:none -encoding cp1252/g" build.xml
+sed -i -e 's|1.6|1.7|g' build.xml
+sed -i -e 's|import org.eclipse.jdt.core.JavaCore;||g' org/eclipse/jdt/internal/compiler/batch/ClasspathDirectory.java
+sed -i -e 's|JavaCore.getOptions()||g' org/eclipse/jdt/internal/compiler/batch/ClasspathDirectory.java
 
 cp %{SOURCE3} pom.xml
 mkdir -p scripts/binary/META-INF/
@@ -79,6 +82,9 @@ install -m 644 -p ecj.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/ecj.1.gz
 %{_mandir}/man1/ecj.1.gz
 
 %changelog
+* Thu Jul 2 2015 Alexander Kurtakov <akurtako@redhat.com> 1:4.5-1
+- Update to upstream 4.5 release.
+
 * Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:4.4.2-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
 
diff --git a/sources b/sources
index 05e604a..9b9408b 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-bfa9fe02f1123d7ec1fe020e8921d87a  ecj-4.4.2.pom
-212445012540363e8b4a702c59ec9a43  ecjsrc-4.4.2.jar
+bb2427a9831a023d0a9ea1128ca27f8a  ecjsrc-4.5.jar
+ac89091d9516e39f94acf227abf5f192  ecj-4.5.pom