huixiangufl / aparapi

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

Aparapi parses static inner class, but fails to execute #70

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a kernel with a static inner class

What is the expected output? What do you see 
instead?
I expected to have an exception thrown, but instead it compiled and ran fine.  
The code reverted to JTP mode.

What version of the product are you using? On what operating system?
I'm running on windows 7 java 1.6

Please provide any additional information below.
The problem also occurs with nonstatic inner classes as long as you don't 
instantiate them.  Aparapi check for any "new" instructions.

This behavior seem inconsistent.

Original issue reported on code.google.com by Steven.L...@gmail.com on 14 Sep 2012 at 11:54

GoogleCodeExporter commented 8 years ago
Steven 

Were you accessing the static inner class?

Basically we dont allow accesses to any instance other than the derived kernel.

I think we should be allowed to relax some restrictions. For example references 
through static refences to inner classes.

Maybe we can list some use cases we expect to be able to use.

Gary

Original comment by frost.g...@gmail.com on 15 Sep 2012 at 12:00