New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DefaultConstructionProxyFactory can throw SecurityException #64
Comments
From crazyboblee on March 14, 2007 17:53:48 Hmmmmm, why wouldn't setAccessible() work? |
From crazyboblee on March 14, 2007 19:34:33 Assuming you have permissions (Kevin does). |
From dhanji on March 14, 2007 21:14:38 other than a SecurityManager? nothing should... is there a specific message? |
From kevinb9n on March 14, 2007 21:22:45 oops, said my last comment in email only. Guice ended up trying to construct an instance of the class java.lang.Class. It was Anyway, apart from the java.lang.Class example, we ought to make sure that guice |
From limpbizkit on June 04, 2008 23:17:02 (No comment was entered for this change.) Labels: -Priority-Medium Priority-Low Milestone-Release2.0 |
From limpbizkit on July 12, 2008 10:18:51 Only Class.class and Constructor.class disallow setAccessible. These cases were indirectly fixed when we For the general SecurityManager case, this is probably not worth the effort. I tried to write a test that uses a Status: Fixed |
From kevinb9n on March 14, 2007 11:48:22
I accidentally ended up trying to inject a Class object, whose constructor
can't be made accessible by 'setAccessible(true)' (currently line 40 of
this class). We should catch this SecurityException and rethrow with one
of our trademark helpful error messages. :)
Original issue: http://code.google.com/p/google-guice/issues/detail?id=64
The text was updated successfully, but these errors were encountered: