GithubHelp home page GithubHelp logo

Comments (7)

gissuebot avatar gissuebot commented on May 14, 2024

From bslesinsky on April 07, 2007 19:43:38

I wonder if that has anything to do with this error?

java.lang.RuntimeException: java.lang.IllegalAccessException: Class
com.google.inject.ConstructionContext$DelegatingInvocationHandler can not access a
member of class CyclesGuiceTest$Writable with modifiers "public abstract"
        at
com.google.inject.ConstructionContext$DelegatingInvocationHandler.invoke(ConstructionContext.java:114)
        at $Proxy5.write(Unknown Source)
        at CyclesGuiceTest$Node.write(CyclesGuiceTest.java:97)
        at CyclesGuiceTest$Node.write(CyclesGuiceTest.java:97)
        at CyclesGuiceTest.testWithGuice(CyclesGuiceTest.java:18)

I was checking to see what happened when I put in a cycle using only constructors.  I
assumed that at some point there would be an error saying "you can't do that" and I
would make backlinks into setters, and ran into this undocumented (?) proxy thing.
Maybe the real error is that this is not a Helpful Error Message.

from guice.

gissuebot avatar gissuebot commented on May 14, 2024

From crazyboblee on April 07, 2007 20:55:54

This appears to be a Sun bug related to inner classes: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4071957

from guice.

gissuebot avatar gissuebot commented on May 14, 2024

From crazyboblee on April 07, 2007 20:59:22

We do need better error handling here though. There's actually a TODO in the code: http://fisheye3.cenqua.com/browse/google-guice/trunk/src/com/google/inject/ConstructionContext.java?r=253

from guice.

gissuebot avatar gissuebot commented on May 14, 2024

From bslesinsky on April 07, 2007 21:16:17

While cleaning up the test case, I found that adding "public" in a few places fixed
the problem.

So, it's nothing really to do with cycles.  But I was surprised that when I moved
some dependencies from constructors to setters to break cycles, so that no proxy is
really necessary, they are still there.

from guice.

gissuebot avatar gissuebot commented on May 14, 2024

From limpbizkit on April 26, 2009 14:04:45

Issue 349 has been merged into this issue.

from guice.

gissuebot avatar gissuebot commented on May 14, 2024

From christianedwardgruber on June 04, 2012 10:43:42

(No comment was entered for this change.)

Labels: Component-Core

from guice.

gissuebot avatar gissuebot commented on May 14, 2024

From [email protected] on November 18, 2013 13:02:55

Several changes have gone in to this - and without doing seriously invasive change, this is about as good as we're going to get it.

Status: Fixed

from guice.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.