Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.2Release
    • Fix Version/s: 2.5.0Release
    • Component/s: Inferencing Engine
    • Labels:
      None
    • Number of attachments :
      0

      Description

      In the snippet below, MyMap.get() should be inferred as the get() method on WeakReference, but it isn't.

      //@Typed
      class RemoteMessageChannel<M extends Serializable> {// extends MessageChannel<M> {
      
      //	static class MyMap<K,V> extends HashMap<K,WeakReference<V>> {
      	
      	static class MyMap extends HashMap<String,WeakReference<Class>> {	
      //		V putIfNotYet(K key, V value) {
      			
      	
      //		}
      	}
      	MyMap cache;
      	
      	void receiveBytes(String name) {
      		ClassLoader parent
      		if (name == this.class.name)
      			this.class
      		else { 
      			def res = cache.get(name)?.get()
      			if (res == this.class)
      				throw new ClassNotFoundException()
      			if (!res) {
      				try {
      					res = parent.loadClass(name)
      				}
      				catch (ClassNotFoundException e) {
      					cache.putIfNotYet(name, this.class)
      					throw e
      				}
      				cache.putIfNotYet(name, res)
      			}
      //			return res
      		}
      	}
      	
      }
      

        Activity

        Andrew Eisenberg made changes -
        Field Original Value New Value
        Assignee Andrew Eisenberg [ werdna ]
        Andrew Eisenberg made changes -
        Original Estimate 0 minutes [ 0 ]
        Remaining Estimate 0 minutes [ 0 ]
        Affects Version/s 2.1.2Release [ 16995 ]
        Fix Version/s 2.1.3Release [ 17240 ]
        Component/s Inferencing Engine [ 14687 ]
        Andrew Eisenberg made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Andrew Eisenberg
            Reporter:
            Andrew Eisenberg
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: