Giter Club home page Giter Club logo

Comments (3)

jcookems avatar jcookems commented on May 28, 2024

I tried this out on my Mac, and it works for me. This is my setup:

  • A 32-bit OSX 10.6 machine

    Mac OS X 10.6.8 (10K549)
    
  • My Java version, JDK 1.6.0

    ~ webxlab$ java -version
    java version "1.6.0_33"
    Java(TM) SE Runtime Environment (build 1.6.0_33-b03-424-10M3720)
    Java HotSpot(TM) Client VM (build 20.8-b03-424, mixed mode)
    

Looking at the metadata on newFactory and newInstance, (from /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar), we see that some of the newInstance methods are deprecated in favor of newFactory.

// Method descriptor #41 (Ljava/lang/String;Ljava/lang/ClassLoader;)
    Ljavax/xml/stream/XMLInputFactory; (deprecated)
// Stack: 4, Locals: 3
public static javax.xml.stream.XMLInputFactory newInstance(java.lang.String arg0, java.lang.ClassLoader arg1) throws javax.xml.stream.FactoryConfigurationError;

In particular, http://docs.oracle.com/javase/6/docs/api/javax/xml/stream/XMLInputFactory.html says:

... All newInstance methods have been replaced with corresponding newFactory methods ...

That indicated that newInstance should not be used in new code.

Can you verify your Java version and check the metadata for newInstance?

from azure-sdk-for-java.

javiercbk avatar javiercbk commented on May 28, 2024

On my pc
java -version
java version "1.6.0_33"
Java(TM) SE Runtime Environment (build 1.6.0_33-b03-424-11M3720)
Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03-424, mixed mode)

I'm goin to check if my classes are old and keep you up to date

from azure-sdk-for-java.

javiercbk avatar javiercbk commented on May 28, 2024

Ok...I'm closing this issue since it's not your problem. Sorry guys, best regards

from azure-sdk-for-java.

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.