[netbeans] 04/05: Add antlr-3.5.2.patch
Markus Koschany
apo-guest at moszumanska.debian.org
Thu Jul 23 15:43:25 UTC 2015
This is an automated email from the git hooks/post-receive script.
apo-guest pushed a commit to branch master
in repository netbeans.
commit dd8a3277fed74e48abc58040bef9fdd8a14cc12e
Author: Markus Koschany <apo at gambaru.de>
Date: Thu Jul 23 17:27:07 2015 +0200
Add antlr-3.5.2.patch
---
debian/patches/antlr-3.5.2.patch | 45 +++++++++++++++++++++++++++
debian/patches/antlr-NbParseTreeBuilder.patch | 21 -------------
debian/patches/series | 2 +-
3 files changed, 46 insertions(+), 22 deletions(-)
diff --git a/debian/patches/antlr-3.5.2.patch b/debian/patches/antlr-3.5.2.patch
new file mode 100644
index 0000000..66a1aed
--- /dev/null
+++ b/debian/patches/antlr-3.5.2.patch
@@ -0,0 +1,45 @@
+From: Markus Koschany <apo at gambaru.de>
+Date: Thu, 23 Jul 2015 17:02:28 +0200
+Subject: antlr 3.5.2
+
+Fix errors with antlr 3.5.2.
+
+Forwarded: not-needed
+---
+ css.lib/src/org/netbeans/modules/css/lib/NbParseTreeBuilder.java | 2 +-
+ .../java/j2seproject/ui/customizer/vmo/gen/CommandLineParser.java | 4 ++--
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/css.lib/src/org/netbeans/modules/css/lib/NbParseTreeBuilder.java b/css.lib/src/org/netbeans/modules/css/lib/NbParseTreeBuilder.java
+index bbb50fa..965481e 100644
+--- a/css.lib/src/org/netbeans/modules/css/lib/NbParseTreeBuilder.java
++++ b/css.lib/src/org/netbeans/modules/css/lib/NbParseTreeBuilder.java
+@@ -226,7 +226,7 @@ public class NbParseTreeBuilder extends BlankDebugEventListener {
+
+ RuleNode ruleNode = callStack.peek();
+ TokenNode elementNode = new TokenNode(source, (CommonToken) token);
+- elementNode.hiddenTokens = this.hiddenTokens;
++ elementNode.hiddenTokens = (List) this.hiddenTokens;
+ hiddenTokens.clear();
+ ruleNode.addChild(elementNode);
+
+diff --git a/java.j2seproject/src/org/netbeans/modules/java/j2seproject/ui/customizer/vmo/gen/CommandLineParser.java b/java.j2seproject/src/org/netbeans/modules/java/j2seproject/ui/customizer/vmo/gen/CommandLineParser.java
+index d639fc4..371661f 100644
+--- a/java.j2seproject/src/org/netbeans/modules/java/j2seproject/ui/customizer/vmo/gen/CommandLineParser.java
++++ b/java.j2seproject/src/org/netbeans/modules/java/j2seproject/ui/customizer/vmo/gen/CommandLineParser.java
+@@ -198,7 +198,7 @@ public class CommandLineParser extends Parser {
+ if (root instanceof JavaVMOption<?>) {
+ result.add((JavaVMOption<?>) root);
+ } else if (root != null) {
+- result.addAll(root.getChildren());
++ result.addAll((List) root.getChildren());
+ }
+ } catch (RecognitionException e) {
+ e.printStackTrace();
+@@ -1277,4 +1277,4 @@ public class CommandLineParser extends Parser {
+ public static final BitSet FOLLOW_TEXT_in_eText347 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_TEXT_in_nonSwitchOption359 = new BitSet(new long[]{0x0000000000000002L});
+
+-}
+\ No newline at end of file
++}
diff --git a/debian/patches/antlr-NbParseTreeBuilder.patch b/debian/patches/antlr-NbParseTreeBuilder.patch
deleted file mode 100644
index 6ad10e5..0000000
--- a/debian/patches/antlr-NbParseTreeBuilder.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-From: Markus Koschany <apo at gambaru.de>
-Date: Thu, 23 Jul 2015 17:02:28 +0200
-Subject: antlr NbParseTreeBuilder
-
----
- css.lib/src/org/netbeans/modules/css/lib/NbParseTreeBuilder.java | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/css.lib/src/org/netbeans/modules/css/lib/NbParseTreeBuilder.java b/css.lib/src/org/netbeans/modules/css/lib/NbParseTreeBuilder.java
-index bbb50fa..965481e 100644
---- a/css.lib/src/org/netbeans/modules/css/lib/NbParseTreeBuilder.java
-+++ b/css.lib/src/org/netbeans/modules/css/lib/NbParseTreeBuilder.java
-@@ -226,7 +226,7 @@ public class NbParseTreeBuilder extends BlankDebugEventListener {
-
- RuleNode ruleNode = callStack.peek();
- TokenNode elementNode = new TokenNode(source, (CommonToken) token);
-- elementNode.hiddenTokens = this.hiddenTokens;
-+ elementNode.hiddenTokens = (List) this.hiddenTokens;
- hiddenTokens.clear();
- ruleNode.addChild(elementNode);
-
diff --git a/debian/patches/series b/debian/patches/series
index 286f7ff..cf312bf 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -27,4 +27,4 @@ netbeans-slf4j.dummy.patch
netbeans-platform-o.n.bootstrap.patch
netbeans-include-junit.patch
reproducible-build.patch
-antlr-NbParseTreeBuilder.patch
+antlr-3.5.2.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/netbeans.git
More information about the pkg-java-commits
mailing list