View Javadoc
1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   *   https://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  package org.apache.bcel.util;
20  
21  import static org.junit.jupiter.api.Assertions.assertEquals;
22  import static org.junit.jupiter.api.Assertions.assertFalse;
23  import static org.junit.jupiter.api.Assertions.assertNotNull;
24  import static org.junit.jupiter.api.Assertions.assertThrows;
25  import static org.junit.jupiter.api.Assertions.assertTrue;
26  
27  import java.io.BufferedInputStream;
28  import java.io.ByteArrayOutputStream;
29  import java.io.File;
30  import java.io.OutputStream;
31  import java.io.PrintStream;
32  import java.nio.charset.StandardCharsets;
33  import java.nio.file.Files;
34  import java.nio.file.Path;
35  import java.util.regex.Matcher;
36  import java.util.regex.Pattern;
37  
38  import org.apache.bcel.AbstractTest;
39  import org.apache.bcel.Const;
40  import org.apache.bcel.HelloWorldCreator;
41  import org.apache.bcel.classfile.ClassParser;
42  import org.apache.bcel.classfile.ConstantValue;
43  import org.apache.bcel.classfile.Field;
44  import org.apache.bcel.classfile.JavaClass;
45  import org.apache.bcel.classfile.Method;
46  import org.apache.bcel.classfile.Utility;
47  import org.apache.bcel.generic.BinaryOpCreator;
48  import org.apache.bcel.generic.ClassGen;
49  import org.apache.bcel.generic.ConstantPoolGen;
50  import org.apache.bcel.generic.FieldGen;
51  import org.apache.bcel.generic.InstructionConst;
52  import org.apache.bcel.generic.InstructionFactory;
53  import org.apache.bcel.generic.InstructionList;
54  import org.apache.bcel.generic.MethodGen;
55  import org.apache.bcel.generic.Type;
56  import org.apache.commons.lang3.SystemProperties;
57  import org.apache.commons.lang3.SystemUtils;
58  import org.junit.jupiter.api.Test;
59  import org.junit.jupiter.api.condition.DisabledForJreRange;
60  import org.junit.jupiter.api.condition.JRE;
61  import org.junit.jupiter.api.io.TempDir;
62  import org.junit.jupiter.params.ParameterizedTest;
63  import org.junit.jupiter.params.provider.CsvSource;
64  import org.junit.jupiter.params.provider.ValueSource;
65  
66  class BCELifierTest extends AbstractTest {
67  
68      private static Pattern CANON1 = Pattern.compile("#\\d+"); // numbers may vary in length
69      private static Pattern CANON2 = Pattern.compile(" +"); // collapse spaces
70      private static Pattern CANON3 = Pattern.compile("//.+");
71  
72      private static final String EOL = System.lineSeparator();
73      public static final String CLASSPATH = "." + File.pathSeparator + SystemProperties.getJavaClassPath();
74  
75      // Canonicalise the javap output so it compares better
76      private String canonHashRef(String input) {
77          input = CANON1.matcher(input).replaceAll("#n");
78          input = CANON2.matcher(input).replaceAll(" ");
79          return CANON3.matcher(input).replaceAll("");
80      }
81  
82      private String exec(final File workDir, final String... args) throws Exception {
83          // System.out.print(workDir + ": ");
84          // Stream.of(args).forEach(e -> System.out.print(e + " "));
85          // System.out.println();
86          final ProcessBuilder pb = new ProcessBuilder(args);
87          pb.directory(workDir);
88          pb.redirectErrorStream(true);
89          final Process proc = pb.start();
90          try (BufferedInputStream is = new BufferedInputStream(proc.getInputStream())) {
91              final byte[] buff = new byte[2048];
92              int len;
93  
94              final StringBuilder sb = new StringBuilder();
95              while ((len = is.read(buff)) != -1) {
96                  sb.append(new String(buff, 0, len));
97              }
98              final String output = sb.toString();
99              assertEquals(0, proc.waitFor(), output);
100             return output;
101         }
102     }
103 
104     private String getAppJava() {
105         return getJavaHomeApp("java");
106     }
107 
108     private String getAppJavaC() {
109         return getJavaHomeApp("javac");
110     }
111 
112     private String getAppJavaP() {
113         return getJavaHomeApp("javap");
114     }
115 
116     private String getJavaHomeApp(final String app) {
117         final Path path = getJavaHomeBinPath().resolve(app);
118         if (Files.exists(path)) {
119             return path.toAbsolutePath().toString();
120         }
121         if (SystemUtils.IS_OS_WINDOWS && Files.exists(getJavaHomeBinPath().resolve(app + ".exe"))) {
122             return path.toAbsolutePath().toString();
123         }
124         return app;
125     }
126 
127     private Path getJavaHomeBinPath() {
128         return SystemUtils.getJavaHomePath().resolve("bin");
129     }
130 
131     @ParameterizedTest
132     @ValueSource(strings = {
133     // @formatter:off
134         "iadd 3 2 = 5",
135         "isub 3 2 = 1",
136         "imul 3 2 = 6",
137         "idiv 3 2 = 1",
138         "irem 3 2 = 1",
139         "iand 3 2 = 2",
140         "ior 3 2 = 3",
141         "ixor 3 2 = 1",
142         "ishl 4 1 = 8",
143         "ishr 4 1 = 2",
144         "iushr 4 1 = 2",
145         "ladd 3 2 = 5",
146         "lsub 3 2 = 1",
147         "lmul 3 2 = 6",
148         "ldiv 3 2 = 1",
149         "lrem 3 2 = 1",
150         "land 3 2 = 2",
151         "lor 3 2 = 3",
152         "lxor 3 2 = 1",
153         "lshl 4 1 = 8",
154         "lshr 4 1 = 2",
155         "lushr 4 1 = 2",
156         "fadd 3 2 = 5.0",
157         "fsub 3 2 = 1.0",
158         "fmul 3 2 = 6.0",
159         "fdiv 3 2 = 1.5",
160         "frem 3 2 = 1.0",
161         "dadd 3 2 = 5.0",
162         "dsub 3 2 = 1.0",
163         "dmul 3 2 = 6.0",
164         "ddiv 3 2 = 1.5",
165         "drem 3 2 = 1.0"
166     // @formatter:on
167     })
168     void testBinaryOp(final String exp) throws Exception {
169         BinaryOpCreator.main(new String[] {});
170         final File workDir = new File("target");
171         final Pattern pattern = Pattern.compile("([a-z]{3,5}) ([-+]?\\d*\\.?\\d+) ([-+]?\\d*\\.?\\d+) = ([-+]?\\d*\\.?\\d+)");
172         final Matcher matcher = pattern.matcher(exp);
173         assertTrue(matcher.matches());
174         final String op = matcher.group(1);
175         final String a = matcher.group(2);
176         final String b = matcher.group(3);
177         final String expected = matcher.group(4);
178         final String javaAgent = getJavaAgent();
179         if (javaAgent == null) {
180             assertEquals(expected + EOL, exec(workDir, getAppJava(), "-cp", CLASSPATH, "org.apache.bcel.generic.BinaryOp", op, a, b));
181         } else {
182             final String runtimeExecJavaAgent = javaAgent.replace("jacoco.exec", "jacoco_org.apache.bcel.generic.BinaryOp.exec");
183             assertEquals(expected + EOL, exec(workDir, getAppJava(), runtimeExecJavaAgent, "-cp", CLASSPATH, "org.apache.bcel.generic.BinaryOp", op, a, b));
184         }
185     }
186 
187     @Test
188     void testBooleanConstantFieldInitValue() throws Exception {
189         // javac stores "static final boolean ON = true;" as a CONSTANT_Integer ConstantValue; the generated creator
190         // must call FieldGen.setInitValue(boolean), since setInitValue(int) throws for boolean fields.
191         final ClassGen cg = new ClassGen("Example", "java.lang.Object", "Example.java", Const.ACC_PUBLIC | Const.ACC_SUPER, new String[] {});
192         final ConstantPoolGen cp = cg.getConstantPool();
193         final FieldGen fg = new FieldGen(Const.ACC_PUBLIC | Const.ACC_STATIC | Const.ACC_FINAL, Type.BOOLEAN, "ON", cp);
194         fg.setInitValue(true);
195         cg.addField(fg.getField());
196 
197         final ByteArrayOutputStream os = new ByteArrayOutputStream();
198         new BCELifier(cg.getJavaClass(), os).start();
199         final String source = new String(os.toByteArray(), StandardCharsets.UTF_8);
200 
201         assertTrue(source.contains("field.setInitValue(true);"), source);
202         assertFalse(source.contains("field.setInitValue(1);"), source);
203 
204         final ByteArrayOutputStream compiledClassOutput = new ByteArrayOutputStream();
205         new BCELifier(BCELifier.getJavaClass("BooleanConstants"), compiledClassOutput).start();
206         final String compiledClassSource = new String(compiledClassOutput.toByteArray(), StandardCharsets.UTF_8);
207         assertTrue(compiledClassSource.contains("field.setInitValue(true);"), compiledClassSource);
208         assertTrue(compiledClassSource.contains("field.setInitValue(false);"), compiledClassSource);
209         assertFalse(compiledClassSource.contains("field.setInitValue(0);"), compiledClassSource);
210     }
211 
212     @ParameterizedTest
213     @CsvSource({ "0, false", "1, true", "2, false", "3, true", "-2, false", "-1, true" })
214     void testBooleanConstantFieldLowBit(final int value, final boolean expected) {
215         final ClassGen cg = new ClassGen("Example", "java.lang.Object", "Example.java", Const.ACC_PUBLIC | Const.ACC_SUPER, new String[] {});
216         final ConstantPoolGen cp = cg.getConstantPool();
217         final FieldGen fg = new FieldGen(Const.ACC_PUBLIC | Const.ACC_STATIC | Const.ACC_FINAL, Type.BOOLEAN, "VALUE", cp);
218         fg.addAttribute(new ConstantValue(cp.addUtf8("ConstantValue"), 2, cp.addInteger(value), cp.getConstantPool()));
219         cg.addField(fg.getField());
220 
221         final ByteArrayOutputStream os = new ByteArrayOutputStream();
222         new BCELifier(cg.getJavaClass(), os).start();
223         final String source = new String(os.toByteArray(), StandardCharsets.UTF_8);
224         assertTrue(source.contains("field.setInitValue(" + expected + ");"), source);
225     }
226 
227     @Test
228     void testClassNameRejectedWhenNotJavaIdentifier() {
229         // Class file names may contain characters the Java language forbids (JVMS 4.2.2 bans only . ; [ /).
230         // BCELifier must refuse to emit such a name in identifier position rather than let a crafted
231         // this_class inject statements into the generated source.
232         final ClassGen cg = new ClassGen("Evil {}\nclass Injected {}//", "java.lang.Object", "Evil.java", Const.ACC_PUBLIC | Const.ACC_SUPER,
233             new String[] {});
234         final BCELifier bcelifier = new BCELifier(cg.getJavaClass(), new ByteArrayOutputStream());
235         assertThrows(IllegalArgumentException.class, bcelifier::start);
236     }
237 
238     @Test
239     void testClassNamesEscapedInOutput() throws Exception {
240         // Superclass and source file names are constant-pool derived and can hold any UTF-8.
241         final String toEscapeSuper = "java.lang.Object\"); System.exit(1); _cg = new ClassGen(\"x";
242         final String toEscapeSource = "Example.java\"); System.exit(2); String s = (\"";
243         final ClassGen cg = new ClassGen("Example", toEscapeSuper, toEscapeSource, Const.ACC_PUBLIC | Const.ACC_SUPER, new String[] {});
244 
245         final ByteArrayOutputStream os = new ByteArrayOutputStream();
246         new BCELifier(cg.getJavaClass(), os).start();
247         final String source = new String(os.toByteArray(), StandardCharsets.UTF_8);
248 
249         assertTrue(source.contains(Utility.convertString(toEscapeSuper)), source);
250         assertTrue(source.contains(Utility.convertString(toEscapeSource)), source);
251         assertFalse(source.contains('"' + toEscapeSuper + '"'), source);
252         assertFalse(source.contains('"' + toEscapeSource + '"'), source);
253     }
254 
255     private void testClassOnPath(final String javaClassFileName) throws Exception {
256         final File workDir = new File("target", getClass().getSimpleName());
257         Files.createDirectories(workDir.getParentFile().toPath());
258         final File inFile = new File(javaClassFileName);
259         final JavaClass javaClass = BCELifier.getJavaClass(inFile.getName().replace(JavaClass.EXTENSION, ""));
260         assertNotNull(javaClass);
261         // Gets javap output of the input class
262         // System.out.println(exec(null, getJavaP(), "-version"));
263         final String javaClassName = javaClass.getClassName();
264         final String javapOutInital = exec(null, getAppJavaP(), "-cp", CLASSPATH, "-p", "-c", javaClassName);
265         final String outCreatorFileName = javaClass.getSourceFilePath().replace(".java", "Creator.java");
266         final File outCreatorFile = new File(workDir, outCreatorFileName);
267         Files.createDirectories(outCreatorFile.getParentFile().toPath());
268         final String javaAgent = getJavaAgent();
269         final String bcelifierClassName = BCELifier.class.getName();
270         final String creatorJavaSource;
271         // Creates the BCEL Java app source in creatorJavaSource
272         if (javaAgent == null) {
273             creatorJavaSource = exec(workDir, getAppJava(), "-cp", CLASSPATH, bcelifierClassName, javaClassName);
274         } else {
275             final String runtimeExecJavaAgent = javaAgent.replace("jacoco.exec", "jacoco_" + inFile.getName() + ".exec");
276             creatorJavaSource = exec(workDir, getAppJava(), runtimeExecJavaAgent, "-cp", CLASSPATH, bcelifierClassName, javaClassName);
277         }
278         // Write the BCEL Java app source to a file
279         Files.write(outCreatorFile.toPath(), creatorJavaSource.getBytes(StandardCharsets.UTF_8));
280         // Compiles the BCEL Java app
281         assertEquals("", exec(workDir, getAppJavaC(), "-cp", CLASSPATH, outCreatorFileName.toString()));
282         final String creatorClassName = javaClassName + "Creator";
283         // Runs the BCEL Java app to create a class file
284         if (javaAgent == null) {
285             assertEquals("", exec(workDir, getAppJava(), "-cp", CLASSPATH, creatorClassName));
286         } else {
287             final String runtimeExecJavaAgent = javaAgent.replace("jacoco.exec", "jacoco_" + Utility.pathToPackage(outCreatorFileName) + ".exec");
288             assertEquals("", exec(workDir, getAppJava(), runtimeExecJavaAgent, "-cp", CLASSPATH, creatorClassName));
289         }
290         // Runs javap on the BCEL generated class file
291         final String javapOutput = exec(workDir, getAppJavaP(), "-p", "-c", inFile.getName());
292         // Finally compares the output of the roundtrip
293         assertEquals(canonHashRef(javapOutInital), canonHashRef(javapOutput));
294         // javap -p -c does not show ConstantValue attributes. Check boolean constants explicitly.
295         final JavaClass regenerated = new ClassParser(new File(workDir, javaClassName + JavaClass.EXTENSION).getPath()).parse();
296         final Field[] originalFields = javaClass.getFields();
297         final Field[] regeneratedFields = regenerated.getFields();
298         assertEquals(originalFields.length, regeneratedFields.length);
299         for (int i = 0; i < originalFields.length; i++) {
300             final Field original = originalFields[i];
301             if (original.getType() == Type.BOOLEAN && original.getConstantValue() != null) {
302                 final Field actual = regeneratedFields[i];
303                 assertEquals(original.getName(), actual.getName());
304                 assertEquals(original.getSignature(), actual.getSignature());
305                 assertNotNull(actual.getConstantValue(), original.getName());
306                 final int expectedValue = original.getConstantPool().getConstantInteger(original.getConstantValue().getConstantValueIndex()).getBytes() & 1;
307                 assertEquals(expectedValue, actual.getConstantPool().getConstantInteger(actual.getConstantValue().getConstantValueIndex()).getBytes(),
308                     original.getName());
309             }
310         }
311     }
312 
313     @ParameterizedTest
314     @CsvSource({"true, 45, 2", "false, 45, 2", "true, 45, 3", "true, 46, 0"})
315     void testCompactCodeHeaderRoundTrip(final boolean compactCodeHeader, final int major, final int minor, @TempDir final Path directory) throws Exception {
316         final ClassParser parser = new ClassParser("src/test/resources/Java1OakExample.class");
317         parser.setCompactCodeHeaderEnabled(true);
318         final JavaClass original = parser.parse();
319         original.setMajor(major);
320         original.setMinor(minor);
321         for (final Method method : original.getMethods()) {
322             method.getCode().setCompactCodeHeader(compactCodeHeader);
323         }
324         final ByteArrayOutputStream source = new ByteArrayOutputStream();
325         new BCELifier(original, source).start();
326         Files.write(directory.resolve("Java1OakExampleCreator.java"), source.toByteArray());
327         final File workDir = directory.toFile();
328         exec(workDir, getAppJavaC(), "-source", "8", "-target", "8", "-cp", CLASSPATH, "Java1OakExampleCreator.java");
329         exec(workDir, getAppJava(), "-cp", CLASSPATH, "Java1OakExampleCreator");
330         final boolean expectedCompactCodeHeader = compactCodeHeader && major == 45 && minor < 3;
331         final ClassParser generatedParser = new ClassParser(directory.resolve("Java1OakExample.class").toString());
332         generatedParser.setCompactCodeHeaderEnabled(expectedCompactCodeHeader);
333         final JavaClass generated = generatedParser.parse();
334         assertEquals(major, generated.getMajor());
335         assertEquals(minor, generated.getMinor());
336         assertEquals(original.getMethods().length, generated.getMethods().length);
337         for (final Method method : generated.getMethods()) {
338             assertEquals(expectedCompactCodeHeader, method.getCode().isCompactCodeHeader());
339             assertEquals(1, method.getCode().getMaxLocals());
340         }
341     }
342 
343     @Test
344     void testCreateInvokeEscapesConstantPoolName() throws Exception {
345         // A hostile constant pool can hold any UTF-8 as a referenced method name.
346         final String toEscapeName = "evil\"); System.exit(1); il.append(\"";
347         final ClassGen cg = new ClassGen("Example", "java.lang.Object", "Example.java", Const.ACC_PUBLIC | Const.ACC_SUPER, new String[] {});
348         final ConstantPoolGen cp = cg.getConstantPool();
349         final InstructionFactory factory = new InstructionFactory(cg, cp);
350         final InstructionList il = new InstructionList();
351         il.append(InstructionConst.ALOAD_0);
352         il.append(factory.createInvoke("java.lang.Object", toEscapeName, Type.VOID, Type.NO_ARGS, Const.INVOKEVIRTUAL));
353         il.append(InstructionConst.RETURN);
354         final MethodGen mg = new MethodGen(Const.ACC_PUBLIC, Type.VOID, Type.NO_ARGS, new String[] {}, "m", "Example", il, cp);
355         mg.setMaxStack();
356         mg.setMaxLocals();
357         cg.addMethod(mg.getMethod());
358 
359         final ByteArrayOutputStream os = new ByteArrayOutputStream();
360         new BCELifier(cg.getJavaClass(), os).start();
361         final String source = new String(os.toByteArray(), StandardCharsets.UTF_8);
362 
363         assertTrue(source.contains("_factory.createInvoke(\"java.lang.Object\", \"" + Utility.convertString(toEscapeName) + "\", "), source);
364         assertFalse(source.contains('"' + toEscapeName + '"'), source);
365     }
366 
367     @Test
368     void testHelloWorld() throws Exception {
369         HelloWorldCreator.main(new String[] {});
370         final File workDir = new File("target");
371         final String javaAgent = getJavaAgent();
372         if (javaAgent == null) {
373             assertEquals("Hello World!" + EOL, exec(workDir, getAppJava(), "-cp", CLASSPATH, "org.apache.bcel.HelloWorld"));
374         } else {
375             final String runtimeExecJavaAgent = javaAgent.replace("jacoco.exec", "jacoco_org.apache.bcel.HelloWorld.exec");
376             assertEquals("Hello World!" + EOL, exec(workDir, getAppJava(), runtimeExecJavaAgent, "-cp", CLASSPATH, "org.apache.bcel.HelloWorld"));
377         }
378     }
379 
380     /*
381      * Dumps a class using "javap" and compare with the same class recreated using BCELifier, "javac", "java" and dumped with "javap".
382      *
383      * TODO: detect if JDK present and skip test if not
384      */
385     @ParameterizedTest
386     @ValueSource(strings = {
387     // @formatter:off
388         "org.apache.commons.lang.math.Fraction.class",
389         "org.apache.commons.lang.exception.NestableDelegate.class",
390         "org.apache.commons.lang.builder.CompareToBuilder.class",
391         "org.apache.commons.lang.builder.ToStringBuilder.class",
392         "org.apache.commons.lang.SerializationUtils.class",
393         "org.apache.commons.lang.ArrayUtils.class",
394         "target/test-classes/Java4Example.class",
395         "target/test-classes/BooleanConstants.class"
396     // @formatter:on
397     })
398     void testJavapCompare(final String pathToClass) throws Exception {
399         testClassOnPath(pathToClass);
400     }
401 
402     /*
403      * See https://issues.apache.org/jira/browse/BCEL-378
404      */
405     @ParameterizedTest
406     @ValueSource(strings = {
407     // @formatter:off
408         "target/test-classes/Java8Example.class",
409         "target/test-classes/Java8Example2.class",
410     // @formatter:on
411     })
412     @DisabledForJreRange(min = JRE.JAVA_25)
413     void testJavapCompareJava25KnownBroken(final String pathToClass) throws Exception {
414         testClassOnPath(pathToClass);
415     }
416 
417     @Test
418     void testMainNoArg() throws Exception {
419         final PrintStream sysout = System.out;
420         try {
421             final ByteArrayOutputStream out = new ByteArrayOutputStream();
422             System.setOut(new PrintStream(out));
423             BCELifier.main(new String[0]);
424             final String outputNoArgs = new String(out.toByteArray());
425             assertEquals("Usage: BCELifier className" + EOL + "\tThe class must exist on the classpath" + EOL, outputNoArgs);
426         } finally {
427             System.setOut(sysout);
428         }
429     }
430 
431     @Test
432     void testMethodNameEscapedInOutput() throws Exception {
433         // A hostile constant pool can hold any UTF-8 as a method name.
434         final String evilName = "evil\"); System.exit(1); String x = (\"";
435         final ClassGen cg = new ClassGen("Example", "java.lang.Object", "Example.java", Const.ACC_PUBLIC | Const.ACC_SUPER, new String[] {});
436         final ConstantPoolGen cp = cg.getConstantPool();
437         final InstructionList il = new InstructionList();
438         il.append(InstructionConst.RETURN);
439         final MethodGen mg = new MethodGen(Const.ACC_PUBLIC, Type.VOID, Type.NO_ARGS, new String[] {}, evilName, "Example", il, cp);
440         mg.setMaxStack();
441         mg.setMaxLocals();
442         cg.addMethod(mg.getMethod());
443 
444         final ByteArrayOutputStream os = new ByteArrayOutputStream();
445         new BCELifier(cg.getJavaClass(), os).start();
446         final String source = new String(os.toByteArray(), StandardCharsets.UTF_8);
447 
448         assertTrue(source.contains("\"" + Utility.convertString(evilName) + "\", \"Example\", il, _cp);"), source);
449         assertFalse(source.contains('"' + evilName + '"'), source);
450     }
451 
452     @ParameterizedTest
453     @ValueSource(strings = { "StackMapExample", "StackMapExample2" })
454     void testStackMap(final String className) throws Exception {
455         testJavapCompare(className);
456         final File workDir = new File("target");
457         assertEquals("Hello World" + EOL, exec(workDir, getAppJava(), "-cp", CLASSPATH, className, "Hello"));
458     }
459 
460     @Test
461     void testStart() throws Exception {
462         final OutputStream os = new ByteArrayOutputStream();
463         final JavaClass javaClass = BCELifier.getJavaClass("Java8Example");
464         assertNotNull(javaClass);
465         final BCELifier bcelifier = new BCELifier(javaClass, os);
466         bcelifier.start();
467     }
468 }