cbuschka / beanshell2

Automatically exported from code.google.com/p/beanshell2
0 stars 0 forks source link

Cannot access methods of inner classes in Beanshell 2.1.7 #99

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

The following script works in 2.1.6, but fails in 2.1.7:

Map map = new HashMap();
map.put("key", "value");
print(map.entrySet().size());

What is the expected output? What do you see instead?

Expected output: 1

Actual output: // Error: EvalError: Error in method invocation: Method size() 
not found in class'java.util.HashMap$EntrySet' : at Line: 1 : in file: <unknown 
file> : .size ( ) 

What version of the product are you using? On what operating system?

BeanShell 2.1.7 on Windows 7.

Original issue reported on code.google.com by cwals...@gmail.com on 18 Feb 2014 at 5:41

GoogleCodeExporter commented 8 years ago

Original comment by pejob...@gmail.com on 20 Feb 2014 at 12:12