wbh,

only one public class is permitted per compilation unit. I suggest 
moving WrongPathException inside AStarShortestPathFinder as a public 
static nested class. This will allow it to be referenced from other code 
as you require.

To issue a pull request:

(1) Create an account on GitHub: https://github.com/join

(2) Login and navigate to GeoTools

(3) Navigate to the GeoTools project: https://github.com/geotools/geotools

(4) Fork the GeoTools project into your account

(5) Clone the repository into your local computer using a git client

(6) Change the file

(7) Commit the change to your local git repository using a git client

(8) Push the change to your GitHub repository using a git client

(9) Use the GitHub web interface to create a pull request

Then ask Jody to review the pull request.

Kind regards,
Ben.


On 19/02/15 15:53, wbh wrote:
> Jody, would you please tell me how to submit the pull request?
>
>
>
>
>
>
> At 2015-02-19 01:25:08, "Jody Garnett" <jody.garn...@gmail.com> wrote:
>
> Perhaps the exception is package visible and not public, if so please submit 
> a pull request.
>
>
> --
> Jody Garnett
>
>
> On 18 February 2015 at 09:11, wbh <wangbaohua2...@163.com> wrote:
>
> Hi guys,
> I am trying to use Astar algorithm and have my code like this:
> Path astarPath;
> try {
> astarPath = astar.getPath();
> }
>   catch (WrongPathException e) {
> // TODO Auto-generated catch block
> e.printStackTrace();
> }
> To my surprise, the compiler reports the error: The type WrongPathException 
> is not visible.
> But this class does exist at the package org.geotools.graph.path....
> What makes my confuse is that I used AstarShortestPahtFinder in another 
> function in the same class, it does not need to throw this exception.
> Can anyone tell me why?
> Thx.
>
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
> _______________________________________________
> GeoTools-GT2-Users mailing list
> GeoTools-GT2-Users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>
>
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
>
>
>
> _______________________________________________
> GeoTools-GT2-Users mailing list
> GeoTools-GT2-Users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>

-- 
Ben Caradoc-Davies <b...@transient.nz>
Software Engineer
Transient Software <http://transient.nz>
New Zealand

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to