diff options
author | Andrew Haley <aph@redhat.com> | 2012-12-18 09:57:48 +0000 |
---|---|---|
committer | Andrew Haley <aph@gcc.gnu.org> | 2012-12-18 09:57:48 +0000 |
commit | 45af64a72b4794566c2f9938ca6d4714c1784e62 (patch) | |
tree | 42bf542900544059c6eafeb4ae398dd7058a56c0 | |
parent | 93d3dd5997f8e051242a87af82672c838a4e040c (diff) | |
download | gcc-45af64a72b4794566c2f9938ca6d4714c1784e62.zip gcc-45af64a72b4794566c2f9938ca6d4714c1784e62.tar.gz gcc-45af64a72b4794566c2f9938ca6d4714c1784e62.tar.bz2 |
Main.java (parseClasses): Don't scan inner classes if our item is a file.
2012-12-17 Andrew Haley <aph@redhat.com>
* tools/gnu/classpath/tools/javah/Main.java (parseClasses): Don't
scan inner classes if our item is a file.
From-SVN: r194573
-rw-r--r-- | libjava/classpath/ChangeLog | 5 | ||||
-rw-r--r-- | libjava/classpath/tools/classes/gnu/classpath/tools/javah/Main.class | bin | 12769 -> 12780 bytes | |||
-rw-r--r-- | libjava/classpath/tools/gnu/classpath/tools/javah/Main.java | 19 |
3 files changed, 16 insertions, 8 deletions
diff --git a/libjava/classpath/ChangeLog b/libjava/classpath/ChangeLog index b1da426..83eac3f 100644 --- a/libjava/classpath/ChangeLog +++ b/libjava/classpath/ChangeLog @@ -1,3 +1,8 @@ +2012-12-17 Andrew Haley <aph@redhat.com> + + * tools/gnu/classpath/tools/javah/Main.java (parseClasses): Don't + scan inner classes if our item is a file. + 2012-09-14 David Edelsohn <dje.gcc@gmail.com> * configure: Regenerated. diff --git a/libjava/classpath/tools/classes/gnu/classpath/tools/javah/Main.class b/libjava/classpath/tools/classes/gnu/classpath/tools/javah/Main.class Binary files differindex 709b6d0..12f1a7d 100644 --- a/libjava/classpath/tools/classes/gnu/classpath/tools/javah/Main.class +++ b/libjava/classpath/tools/classes/gnu/classpath/tools/javah/Main.class diff --git a/libjava/classpath/tools/gnu/classpath/tools/javah/Main.java b/libjava/classpath/tools/gnu/classpath/tools/javah/Main.java index 894a5c4..2bea36c 100644 --- a/libjava/classpath/tools/gnu/classpath/tools/javah/Main.java +++ b/libjava/classpath/tools/gnu/classpath/tools/javah/Main.java @@ -370,16 +370,19 @@ public class Main results.put(filename, klass); parsed.add(item.toString()); - // Check to see if there are inner classes to also parse - Iterator<?> innerClasses = klass.innerClasses.iterator(); - HashSet<Object> innerNames = new HashSet<Object>(); - while (innerClasses.hasNext()) + if (! (item instanceof File)) { - String innerName = ((InnerClassNode) innerClasses.next()).name; - if (!parsed.contains(innerName)) - innerNames.add(innerName); + // Check to see if there are inner classes to also parse + Iterator<?> innerClasses = klass.innerClasses.iterator(); + HashSet<Object> innerNames = new HashSet<Object>(); + while (innerClasses.hasNext()) + { + String innerName = ((InnerClassNode) innerClasses.next()).name; + if (!parsed.contains(innerName)) + innerNames.add(innerName); + } + results.putAll(parseClasses(innerNames.iterator())); } - results.putAll(parseClasses(innerNames.iterator())); } return results; } |