AMQ-6795 Apply patch to allow build on JDK 9

Apply patch to allow JDK 9 builds
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..4fd3911
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,33 @@
+*~
+*.swp
+.idea
+.idea/*
+*.iml
+*.ipr
+*.iws
+target
+.DS_Store
+.project
+.classpath
+.settings
+eclipse-classes
+activemq-unit-tests/ActiveMQConnections.dot
+activemq-unit-tests/KahaDB
+activemq-unit-tests/broker
+activemq-unit-tests/derby.log
+activemq-unit-tests/derbyDb
+activemq-unit-tests/LevelDB
+activemq-unit-tests/networkedBroker
+activemq-unit-tests/shared
+activemq-data
+activemq-leveldb-store/.cache
+activemq-leveldb-store/.cache-main
+activemq-leveldb-store/.cache-tests
+activemq-leveldb-store/.tmpBin
+activemq-runtime-config/src/main/resources/activemq.xsd
+activemq-amqp/amqp-trace.txt
+data/
+dependency-reduced-pom.xml
+velocity.log
+
+/.metadata
diff --git a/activemq-protobuf-test/pom.xml b/activemq-protobuf-test/pom.xml
index 34d16c8..bae9fa2 100644
--- a/activemq-protobuf-test/pom.xml
+++ b/activemq-protobuf-test/pom.xml
@@ -58,8 +58,8 @@
       <plugin>
         <artifactId>maven-compiler-plugin</artifactId>
         <configuration>
-          <source>1.5</source>
-          <target>1.5</target>
+          <source>1.7</source>
+          <target>1.7</target>
         </configuration>
       </plugin>
       <plugin>
diff --git a/activemq-protobuf/pom.xml b/activemq-protobuf/pom.xml
index c32b76c..5a5355c 100644
--- a/activemq-protobuf/pom.xml
+++ b/activemq-protobuf/pom.xml
@@ -62,8 +62,8 @@
       <plugin>
         <artifactId>maven-compiler-plugin</artifactId>
         <configuration>
-          <source>1.5</source>
-          <target>1.5</target>
+          <source>1.7</source>
+          <target>1.7</target>
         </configuration>
       </plugin>
       <plugin>
diff --git a/activemq-protobuf/src/main/java/org/apache/activemq/protobuf/compiler/MessageDescriptor.java b/activemq-protobuf/src/main/java/org/apache/activemq/protobuf/compiler/MessageDescriptor.java
index c407b44..44ad091 100644
--- a/activemq-protobuf/src/main/java/org/apache/activemq/protobuf/compiler/MessageDescriptor.java
+++ b/activemq-protobuf/src/main/java/org/apache/activemq/protobuf/compiler/MessageDescriptor.java
@@ -22,8 +22,6 @@
 import java.util.List;
 import java.util.Map;
 
-import com.sun.org.apache.bcel.internal.generic.BASTORE;
-
 
 public class MessageDescriptor implements TypeDescriptor {
 
diff --git a/pom.xml b/pom.xml
index e2ce7e7..cb02309 100644
--- a/pom.xml
+++ b/pom.xml
@@ -175,9 +175,10 @@
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-compiler-plugin</artifactId>
+        <version>3.6.2</version>
         <configuration>
-          <source>1.5</source>
-          <target>1.5</target>
+          <source>1.7</source>
+          <target>1.7</target>
           <optimize>true</optimize>
           <debug>true</debug>
           <showDeprecation>true</showDeprecation>
@@ -271,7 +272,7 @@
           -->
           <linksource>true</linksource>
           <maxmemory>900m</maxmemory>
-          <source>1.5</source>
+          <source>1.7</source>
         </configuration>
       </plugin>
     </plugins>